ParseTreeVisitor

This interface defines the basic notion of a parse tree visitor. Generated visitors implement this interface and the {@code XVisitor} interface for grammar {@code X}.

@param <T> The return type of the visit operation. Use {@link Void} for operations with no return type.

Members

Functions

visit
Variant visit(ParseTree tree)

Visit a parse tree, and return a user-defined result of the operation.

visitChildren
Variant visitChildren(RuleNode node)

Visit the children of a node, and return a user-defined result of the operation.

visitErrorNode
Variant visitErrorNode(ErrorNode node)

Visit an error node, and return a user-defined result of the operation.

visitTerminal
Variant visitTerminal(TerminalNode node)

Visit a terminal node, and return a user-defined result of the operation.

Meta