C# Class Antlr4.Analysis.LeftRecursiveRuleTransformer

Datei anzeigen Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
PRECEDENCE_OPTION_NAME string
TOKENINDEX_OPTION_NAME string
ast Antlr4.Tool.Ast.GrammarRootAST
g Antlr4.Tool.Grammar
rules ICollection
tool AntlrTool

Public Methods

Method Description
LeftRecursiveRuleTransformer ( GrammarRootAST ast, ICollection rules, Grammar g ) : Antlr4.Misc
ParseArtificialRule ( Grammar g, string ruleText ) : RuleAST
SetAltASTPointers ( LeftRecursiveRule r, RuleAST t ) : void
TranslateLeftRecursiveRule ( GrammarRootAST ast, LeftRecursiveRule r, string language ) : bool
TranslateLeftRecursiveRules ( ) : void

Method Details

LeftRecursiveRuleTransformer() public method

public LeftRecursiveRuleTransformer ( GrammarRootAST ast, ICollection rules, Grammar g ) : Antlr4.Misc
ast Antlr4.Tool.Ast.GrammarRootAST
rules ICollection
g Antlr4.Tool.Grammar
return Antlr4.Misc

ParseArtificialRule() public method

public ParseArtificialRule ( Grammar g, string ruleText ) : RuleAST
g Antlr4.Tool.Grammar
ruleText string
return Antlr4.Tool.Ast.RuleAST

SetAltASTPointers() public method

public SetAltASTPointers ( LeftRecursiveRule r, RuleAST t ) : void
r Antlr4.Tool.LeftRecursiveRule
t Antlr4.Tool.Ast.RuleAST
return void

TranslateLeftRecursiveRule() public method

public TranslateLeftRecursiveRule ( GrammarRootAST ast, LeftRecursiveRule r, string language ) : bool
ast Antlr4.Tool.Ast.GrammarRootAST
r Antlr4.Tool.LeftRecursiveRule
language string
return bool

TranslateLeftRecursiveRules() public method

public TranslateLeftRecursiveRules ( ) : void
return void

Property Details

PRECEDENCE_OPTION_NAME public_oe static_oe property

public static string PRECEDENCE_OPTION_NAME
return string

TOKENINDEX_OPTION_NAME public_oe static_oe property

public static string TOKENINDEX_OPTION_NAME
return string

ast public_oe property

public GrammarRootAST,Antlr4.Tool.Ast ast
return Antlr4.Tool.Ast.GrammarRootAST

g public_oe property

public Grammar,Antlr4.Tool g
return Antlr4.Tool.Grammar

rules public_oe property

public ICollection rules
return ICollection

tool public_oe property

public AntlrTool tool
return AntlrTool