ExprVisitor

This interface defines a complete generic visitor for a parse tree produced by {@link ExprParser}.

@param Variant The return type of the visit operation. Use {@link void} for operations with no return type.

Members

Functions

visitAdd
Variant visitAdd(ExprParser.AddContext ctx)

Visit a parse tree produced by the {@code Add} labeled alternative in {@link ExprParser#expr}. @param ctx the parse tree @return the visitor result

visitBracketExpr
Variant visitBracketExpr(ExprParser.BracketExprContext ctx)

Visit a parse tree produced by the {@code BracketExpr} labeled alternative in {@link ExprParser#expr}. @param ctx the parse tree @return the visitor result

visitDiv
Variant visitDiv(ExprParser.DivContext ctx)

Visit a parse tree produced by the {@code Div} labeled alternative in {@link ExprParser#expr}. @param ctx the parse tree @return the visitor result

visitInt
Variant visitInt(ExprParser.IntContext ctx)

Visit a parse tree produced by the {@code Int} labeled alternative in {@link ExprParser#expr}. @param ctx the parse tree @return the visitor result

visitMul
Variant visitMul(ExprParser.MulContext ctx)

Visit a parse tree produced by the {@code Mul} labeled alternative in {@link ExprParser#expr}. @param ctx the parse tree @return the visitor result

visitProg
Variant visitProg(ExprParser.ProgContext ctx)

Visit a parse tree produced by {@link ExprParser#prog}. @param ctx the parse tree @return the visitor result

visitSub
Variant visitSub(ExprParser.SubContext ctx)

Visit a parse tree produced by the {@code Sub} labeled alternative in {@link ExprParser#expr}. @param ctx the parse tree @return the visitor result

Inherited Members

From ParseTreeVisitor

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.

visitTerminal
Variant visitTerminal(TerminalNode node)

Visit a terminal 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.

Meta