C# Class Antlr4.Semantics.RuleCollector

Inheritance: GrammarTreeVisitor
Show file Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
altLabelToRuleName string>.IDictionary
errMgr Antlr4.Tool.ErrorManager
g Antlr4.Tool.Grammar
ruleToAltLabels GrammarAST>.Runtime.Misc.MultiMap
rules Rule>.OrderedHashMap

Public Methods

Method Description
DiscoverLexerRule ( RuleAST rule, GrammarAST ID, IList modifiers, GrammarAST block ) : void
DiscoverOuterAlt ( AltAST alt ) : void
DiscoverRule ( RuleAST rule, GrammarAST ID, IList modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, IList actions, GrammarAST block ) : void
GetErrorManager ( ) : ErrorManager
Process ( GrammarAST ast ) : void
RuleCollector ( Grammar g ) : System.Collections.Generic

Method Details

DiscoverLexerRule() public method

public DiscoverLexerRule ( RuleAST rule, GrammarAST ID, IList modifiers, GrammarAST block ) : void
rule Antlr4.Tool.Ast.RuleAST
ID Antlr4.Tool.Ast.GrammarAST
modifiers IList
block Antlr4.Tool.Ast.GrammarAST
return void

DiscoverOuterAlt() public method

public DiscoverOuterAlt ( AltAST alt ) : void
alt AltAST
return void

DiscoverRule() public method

public DiscoverRule ( RuleAST rule, GrammarAST ID, IList modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, IList actions, GrammarAST block ) : void
rule Antlr4.Tool.Ast.RuleAST
ID Antlr4.Tool.Ast.GrammarAST
modifiers IList
arg Antlr4.Tool.Ast.ActionAST
returns Antlr4.Tool.Ast.ActionAST
thrws Antlr4.Tool.Ast.GrammarAST
options Antlr4.Tool.Ast.GrammarAST
locals Antlr4.Tool.Ast.ActionAST
actions IList
block Antlr4.Tool.Ast.GrammarAST
return void

GetErrorManager() public method

public GetErrorManager ( ) : ErrorManager
return Antlr4.Tool.ErrorManager

Process() public method

public Process ( GrammarAST ast ) : void
ast Antlr4.Tool.Ast.GrammarAST
return void

RuleCollector() public method

public RuleCollector ( Grammar g ) : System.Collections.Generic
g Antlr4.Tool.Grammar
return System.Collections.Generic

Property Details

altLabelToRuleName public property

public IDictionary altLabelToRuleName
return string>.IDictionary

errMgr public property

public ErrorManager,Antlr4.Tool errMgr
return Antlr4.Tool.ErrorManager

g public property

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

ruleToAltLabels public property

public Runtime.Misc.MultiMap ruleToAltLabels
return GrammarAST>.Runtime.Misc.MultiMap

rules public property

public OrderedHashMap rules
return Rule>.OrderedHashMap