C# Class Antlr4.Runtime.Tree.ParseTreeWalker

Datei anzeigen Open project: antlr/antlr4 Class Usage Examples

Public Properties

Property Type Description
Default ParseTreeWalker

Public Methods

Method Description
Walk ( IParseTreeListener listener, IParseTree t ) : void

Protected Methods

Method Description
EnterRule ( IParseTreeListener listener, IRuleNode r ) : void

The discovery of a rule node, involves sending two events: the generic IParseTreeListener.EnterEveryRule(Antlr4.Runtime.ParserRuleContext) and a Antlr4.Runtime.RuleContext -specific event. First we trigger the generic and then the rule specific. We to them in reverse order upon finishing the node.

ExitRule ( IParseTreeListener listener, IRuleNode r ) : void

Method Details

EnterRule() protected method

The discovery of a rule node, involves sending two events: the generic IParseTreeListener.EnterEveryRule(Antlr4.Runtime.ParserRuleContext) and a Antlr4.Runtime.RuleContext -specific event. First we trigger the generic and then the rule specific. We to them in reverse order upon finishing the node.
protected EnterRule ( IParseTreeListener listener, IRuleNode r ) : void
listener IParseTreeListener
r IRuleNode
return void

ExitRule() protected method

protected ExitRule ( IParseTreeListener listener, IRuleNode r ) : void
listener IParseTreeListener
r IRuleNode
return void

Walk() public method

public Walk ( IParseTreeListener listener, IParseTree t ) : void
listener IParseTreeListener
t IParseTree
return void

Property Details

Default public_oe static_oe property

public static ParseTreeWalker,Antlr4.Runtime.Tree Default
return ParseTreeWalker