T - The return type of the visit operation. Use Void for
operations with no return type.public interface CalculatorVisitor<T>
extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
CalculatorParser.| Modifier and Type | Method and Description |
|---|---|
T |
visitAddSub(CalculatorParser.AddSubContext ctx)
Visit a parse tree produced by the
AddSub
labeled alternative in CalculatorParser.expr(). |
T |
visitAssign(CalculatorParser.AssignContext ctx)
Visit a parse tree produced by the
assign
labeled alternative in CalculatorParser.statement(). |
T |
visitBlank(CalculatorParser.BlankContext ctx)
Visit a parse tree produced by the
blank
labeled alternative in CalculatorParser.statement(). |
T |
visitId(CalculatorParser.IdContext ctx)
Visit a parse tree produced by the
id
labeled alternative in CalculatorParser.expr(). |
T |
visitInt(CalculatorParser.IntContext ctx)
Visit a parse tree produced by the
int
labeled alternative in CalculatorParser.expr(). |
T |
visitMulDiv(CalculatorParser.MulDivContext ctx)
Visit a parse tree produced by the
MulDiv
labeled alternative in CalculatorParser.expr(). |
T |
visitParenthese(CalculatorParser.ParentheseContext ctx)
Visit a parse tree produced by the
parenthese
labeled alternative in CalculatorParser.expr(). |
T |
visitPrint(CalculatorParser.PrintContext ctx)
Visit a parse tree produced by the
print
labeled alternative in CalculatorParser.statement(). |
T |
visitProgram(CalculatorParser.ProgramContext ctx)
Visit a parse tree produced by
CalculatorParser.program(). |
T visitProgram(CalculatorParser.ProgramContext ctx)
CalculatorParser.program().ctx - the parse treeT visitPrint(CalculatorParser.PrintContext ctx)
print
labeled alternative in CalculatorParser.statement().ctx - the parse treeT visitAssign(CalculatorParser.AssignContext ctx)
assign
labeled alternative in CalculatorParser.statement().ctx - the parse treeT visitBlank(CalculatorParser.BlankContext ctx)
blank
labeled alternative in CalculatorParser.statement().ctx - the parse treeT visitMulDiv(CalculatorParser.MulDivContext ctx)
MulDiv
labeled alternative in CalculatorParser.expr().ctx - the parse treeT visitAddSub(CalculatorParser.AddSubContext ctx)
AddSub
labeled alternative in CalculatorParser.expr().ctx - the parse treeT visitParenthese(CalculatorParser.ParentheseContext ctx)
parenthese
labeled alternative in CalculatorParser.expr().ctx - the parse treeT visitId(CalculatorParser.IdContext ctx)
id
labeled alternative in CalculatorParser.expr().ctx - the parse treeT visitInt(CalculatorParser.IntContext ctx)
int
labeled alternative in CalculatorParser.expr().ctx - the parse treeCopyright © 2025. All rights reserved.