C# Class Antlr4.Analysis.LeftRecursiveRuleAnalyzer

Inheritance: LeftRecursiveRuleWalker
Datei anzeigen Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
altAssociativity ASSOC>.IDictionary
binaryAlts LeftRecursiveRuleAltInfo>.LinkedHashMap
language string
leftRecursiveRuleRefLabels string>>.IList
prefixAndOtherAlts IList
retvals Antlr4.Tool.Ast.GrammarAST
ruleName string
suffixAlts LeftRecursiveRuleAltInfo>.LinkedHashMap
ternaryAlts LeftRecursiveRuleAltInfo>.LinkedHashMap
tokenStream Antlr.Runtime.ITokenStream
tool AntlrTool

Public Methods

Method Description
AddPrecedenceArgToRules ( AltAST t, int prec ) : AltAST
BinaryAlt ( AltAST originalAltTree, int alt ) : void
GetArtificialOpPrecRule ( ) : string
HasImmediateRecursiveRuleRefs ( GrammarAST t, string ruleName ) : bool
LeftRecursiveRuleAnalyzer ( GrammarAST ruleAST, AntlrTool tool, string ruleName, string language ) : System.Collections.Generic
LoadPrecRuleTemplates ( ) : void
NextPrecedence ( int alt ) : int
OtherAlt ( AltAST originalAltTree, int alt ) : void
Precedence ( int alt ) : int
PrefixAlt ( AltAST originalAltTree, int alt ) : void
SetAltAssoc ( AltAST t, int alt ) : void
SetReturnValues ( GrammarAST t ) : void
StripAltLabel ( GrammarAST altAST ) : void
StripLeftRecursion ( GrammarAST altAST ) : GrammarAST
SuffixAlt ( AltAST originalAltTree, int alt ) : void
Text ( GrammarAST t ) : string
ToString ( ) : string

Method Details

AddPrecedenceArgToRules() public method

public AddPrecedenceArgToRules ( AltAST t, int prec ) : AltAST
t AltAST
prec int
return AltAST

BinaryAlt() public method

public BinaryAlt ( AltAST originalAltTree, int alt ) : void
originalAltTree AltAST
alt int
return void

GetArtificialOpPrecRule() public method

public GetArtificialOpPrecRule ( ) : string
return string

HasImmediateRecursiveRuleRefs() public static method

public static HasImmediateRecursiveRuleRefs ( GrammarAST t, string ruleName ) : bool
t Antlr4.Tool.Ast.GrammarAST
ruleName string
return bool

LeftRecursiveRuleAnalyzer() public method

public LeftRecursiveRuleAnalyzer ( GrammarAST ruleAST, AntlrTool tool, string ruleName, string language ) : System.Collections.Generic
ruleAST Antlr4.Tool.Ast.GrammarAST
tool AntlrTool
ruleName string
language string
return System.Collections.Generic

LoadPrecRuleTemplates() public method

public LoadPrecRuleTemplates ( ) : void
return void

NextPrecedence() public method

public NextPrecedence ( int alt ) : int
alt int
return int

OtherAlt() public method

public OtherAlt ( AltAST originalAltTree, int alt ) : void
originalAltTree AltAST
alt int
return void

Precedence() public method

public Precedence ( int alt ) : int
alt int
return int

PrefixAlt() public method

public PrefixAlt ( AltAST originalAltTree, int alt ) : void
originalAltTree AltAST
alt int
return void

SetAltAssoc() public method

public SetAltAssoc ( AltAST t, int alt ) : void
t AltAST
alt int
return void

SetReturnValues() public method

public SetReturnValues ( GrammarAST t ) : void
t Antlr4.Tool.Ast.GrammarAST
return void

StripAltLabel() public method

public StripAltLabel ( GrammarAST altAST ) : void
altAST Antlr4.Tool.Ast.GrammarAST
return void

StripLeftRecursion() public method

public StripLeftRecursion ( GrammarAST altAST ) : GrammarAST
altAST Antlr4.Tool.Ast.GrammarAST
return Antlr4.Tool.Ast.GrammarAST

SuffixAlt() public method

public SuffixAlt ( AltAST originalAltTree, int alt ) : void
originalAltTree AltAST
alt int
return void

Text() public method

public Text ( GrammarAST t ) : string
t Antlr4.Tool.Ast.GrammarAST
return string

ToString() public method

public ToString ( ) : string
return string

Property Details

altAssociativity public_oe property

public IDictionary altAssociativity
return ASSOC>.IDictionary

binaryAlts public_oe property

public LinkedHashMap binaryAlts
return LeftRecursiveRuleAltInfo>.LinkedHashMap

language public_oe property

public string language
return string

leftRecursiveRuleRefLabels public_oe property

public IList> leftRecursiveRuleRefLabels
return string>>.IList

prefixAndOtherAlts public_oe property

public IList prefixAndOtherAlts
return IList

retvals public_oe property

public GrammarAST,Antlr4.Tool.Ast retvals
return Antlr4.Tool.Ast.GrammarAST

ruleName public_oe property

public string ruleName
return string

suffixAlts public_oe property

public LinkedHashMap suffixAlts
return LeftRecursiveRuleAltInfo>.LinkedHashMap

ternaryAlts public_oe property

public LinkedHashMap ternaryAlts
return LeftRecursiveRuleAltInfo>.LinkedHashMap

tokenStream public_oe property

public Antlr.Runtime.ITokenStream tokenStream
return Antlr.Runtime.ITokenStream

tool public_oe property

public AntlrTool tool
return AntlrTool