public interface ParseTreeListener
ParseTreeWalker
. E.g.,
ParseTreeWalker walker = new ParseTreeWalker();
walker.walk(myParseTreeListener, myParseTree); <-- triggers events in your listener
If you want to trigger events in multiple listeners during a single
tree walk, you can use the ParseTreeDispatcher object available at
https://github.com/antlr/antlr4/issues/841Modifier and Type | Method and Description |
---|---|
void |
enterEveryRule(ParserRuleContext ctx) |
void |
exitEveryRule(ParserRuleContext ctx) |
void |
visitErrorNode(ErrorNode node) |
void |
visitTerminal(TerminalNode node) |
void visitTerminal(TerminalNode node)
void visitErrorNode(ErrorNode node)
void enterEveryRule(ParserRuleContext ctx)
void exitEveryRule(ParserRuleContext ctx)
Copyright © 1992–2017 ANTLR. All rights reserved.