C# Class Antlr4.Semantics.SymbolCollector

Inheritance: GrammarTreeVisitor
Exibir arquivo Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
channelDefs IList
currentRule Antlr4.Tool.Rule
errMgr Antlr4.Tool.ErrorManager
g Antlr4.Tool.Grammar
qualifiedRulerefs IList
rulerefs IList
strings ISet
terminals IList
tokenIDRefs IList
tokensDefs IList

Public Methods

Method Description
ActionInAlt ( ActionAST action ) : void
BlockOption ( GrammarAST ID, GrammarAST valueAST ) : void
DefineChannel ( GrammarAST ID ) : void
DefineToken ( GrammarAST ID ) : void
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
ElementOption ( GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST ) : void
FinallyAction ( ActionAST action ) : void
GetErrorManager ( ) : ErrorManager
GlobalNamedAction ( GrammarAST scope, GrammarAST ID, ActionAST action ) : void
GrammarOption ( GrammarAST ID, GrammarAST valueAST ) : void
Label ( GrammarAST op, GrammarAST ID, GrammarAST element ) : void
Process ( GrammarAST ast ) : void
RuleCatch ( GrammarAST arg, ActionAST action ) : void
RuleOption ( GrammarAST ID, GrammarAST valueAST ) : void
RuleRef ( GrammarAST @ref, ActionAST arg ) : void
SempredInAlt ( PredAST pred ) : void
StringRef ( TerminalAST @ref ) : void
SymbolCollector ( Grammar g ) : System.Collections.Generic
TokenRef ( TerminalAST @ref ) : void

Private Methods

Method Description
SetActionResolver ( GrammarAST valueAST ) : void

Method Details

ActionInAlt() public method

public ActionInAlt ( ActionAST action ) : void
action Antlr4.Tool.Ast.ActionAST
return void

BlockOption() public method

public BlockOption ( GrammarAST ID, GrammarAST valueAST ) : void
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
return void

DefineChannel() public method

public DefineChannel ( GrammarAST ID ) : void
ID Antlr4.Tool.Ast.GrammarAST
return void

DefineToken() public method

public DefineToken ( GrammarAST ID ) : void
ID Antlr4.Tool.Ast.GrammarAST
return void

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

ElementOption() public method

public ElementOption ( GrammarASTWithOptions t, GrammarAST ID, GrammarAST valueAST ) : void
t Antlr4.Tool.Ast.GrammarASTWithOptions
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
return void

FinallyAction() public method

public FinallyAction ( ActionAST action ) : void
action Antlr4.Tool.Ast.ActionAST
return void

GetErrorManager() public method

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

GlobalNamedAction() public method

public GlobalNamedAction ( GrammarAST scope, GrammarAST ID, ActionAST action ) : void
scope Antlr4.Tool.Ast.GrammarAST
ID Antlr4.Tool.Ast.GrammarAST
action Antlr4.Tool.Ast.ActionAST
return void

GrammarOption() public method

public GrammarOption ( GrammarAST ID, GrammarAST valueAST ) : void
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
return void

Label() public method

public Label ( GrammarAST op, GrammarAST ID, GrammarAST element ) : void
op Antlr4.Tool.Ast.GrammarAST
ID Antlr4.Tool.Ast.GrammarAST
element Antlr4.Tool.Ast.GrammarAST
return void

Process() public method

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

RuleCatch() public method

public RuleCatch ( GrammarAST arg, ActionAST action ) : void
arg Antlr4.Tool.Ast.GrammarAST
action Antlr4.Tool.Ast.ActionAST
return void

RuleOption() public method

public RuleOption ( GrammarAST ID, GrammarAST valueAST ) : void
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
return void

RuleRef() public method

public RuleRef ( GrammarAST @ref, ActionAST arg ) : void
@ref Antlr4.Tool.Ast.GrammarAST
arg Antlr4.Tool.Ast.ActionAST
return void

SempredInAlt() public method

public SempredInAlt ( PredAST pred ) : void
pred Antlr4.Tool.Ast.PredAST
return void

StringRef() public method

public StringRef ( TerminalAST @ref ) : void
@ref Antlr4.Tool.Ast.TerminalAST
return void

SymbolCollector() public method

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

TokenRef() public method

public TokenRef ( TerminalAST @ref ) : void
@ref Antlr4.Tool.Ast.TerminalAST
return void

Property Details

channelDefs public_oe property

public IList channelDefs
return IList

currentRule public_oe property

public Rule,Antlr4.Tool currentRule
return Antlr4.Tool.Rule

errMgr public_oe property

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

g public_oe property

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

qualifiedRulerefs public_oe property

public IList qualifiedRulerefs
return IList

rulerefs public_oe property

public IList rulerefs
return IList

strings public_oe property

public ISet strings
return ISet

terminals public_oe property

public IList terminals
return IList

tokenIDRefs public_oe property

public IList tokenIDRefs
return IList

tokensDefs public_oe property

public IList tokensDefs
return IList