T
- The return type of the visit operation. Use Void
for
operations with no return type.public interface BasicVisitor<T> extends ParseTreeVisitor<T>
BasicParser
.Modifier and Type | Method and Description |
---|---|
T |
visitAssign(BasicParser.AssignContext ctx)
Visit a parse tree produced by the
assign
labeled alternative in BasicParser.singleExpr() . |
T |
visitBlock(BasicParser.BlockContext ctx)
Visit a parse tree produced by the
block
labeled alternative in BasicParser.singleExpr() . |
T |
visitBool(BasicParser.BoolContext ctx)
Visit a parse tree produced by the
bool
labeled alternative in BasicParser.singleExpr() . |
T |
visitChar(BasicParser.CharContext ctx)
Visit a parse tree produced by the
char
labeled alternative in BasicParser.singleExpr() . |
T |
visitDeclare(BasicParser.DeclareContext ctx)
Visit a parse tree produced by the
declare
labeled alternative in BasicParser.singleExpr() . |
T |
visitExpr(BasicParser.ExprContext ctx)
Visit a parse tree produced by
BasicParser.expr() . |
T |
visitIf(BasicParser.IfContext ctx)
Visit a parse tree produced by the
if
labeled alternative in BasicParser.singleExpr() . |
T |
visitInfix1(BasicParser.Infix1Context ctx)
Visit a parse tree produced by the
infix1
labeled alternative in BasicParser.singleExpr() . |
T |
visitInfix2(BasicParser.Infix2Context ctx)
Visit a parse tree produced by the
infix2
labeled alternative in BasicParser.singleExpr() . |
T |
visitInfix3(BasicParser.Infix3Context ctx)
Visit a parse tree produced by the
infix3
labeled alternative in BasicParser.singleExpr() . |
T |
visitInfix4(BasicParser.Infix4Context ctx)
Visit a parse tree produced by the
infix4
labeled alternative in BasicParser.singleExpr() . |
T |
visitInfix5(BasicParser.Infix5Context ctx)
Visit a parse tree produced by the
infix5
labeled alternative in BasicParser.singleExpr() . |
T |
visitNumber(BasicParser.NumberContext ctx)
Visit a parse tree produced by the
number
labeled alternative in BasicParser.singleExpr() . |
T |
visitParens(BasicParser.ParensContext ctx)
Visit a parse tree produced by the
parens
labeled alternative in BasicParser.singleExpr() . |
T |
visitPrefix1(BasicParser.Prefix1Context ctx)
Visit a parse tree produced by the
prefix1
labeled alternative in BasicParser.singleExpr() . |
T |
visitProgram(BasicParser.ProgramContext ctx)
Visit a parse tree produced by
BasicParser.program() . |
T |
visitRead(BasicParser.ReadContext ctx)
Visit a parse tree produced by the
read
labeled alternative in BasicParser.singleExpr() . |
T |
visitType(BasicParser.TypeContext ctx)
Visit a parse tree produced by
BasicParser.type() . |
T |
visitVar(BasicParser.VarContext ctx)
Visit a parse tree produced by the
var
labeled alternative in BasicParser.singleExpr() . |
T |
visitVariable(BasicParser.VariableContext ctx)
Visit a parse tree produced by
BasicParser.variable() . |
T |
visitWhile(BasicParser.WhileContext ctx)
Visit a parse tree produced by the
while
labeled alternative in BasicParser.singleExpr() . |
T |
visitWrite(BasicParser.WriteContext ctx)
Visit a parse tree produced by the
write
labeled alternative in BasicParser.singleExpr() . |
visit, visitChildren, visitErrorNode, visitTerminal
T visitProgram(BasicParser.ProgramContext ctx)
BasicParser.program()
.ctx
- the parse treeT visitExpr(BasicParser.ExprContext ctx)
BasicParser.expr()
.ctx
- the parse treeT visitParens(BasicParser.ParensContext ctx)
parens
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitRead(BasicParser.ReadContext ctx)
read
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitDeclare(BasicParser.DeclareContext ctx)
declare
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitBool(BasicParser.BoolContext ctx)
bool
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitVar(BasicParser.VarContext ctx)
var
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitInfix2(BasicParser.Infix2Context ctx)
infix2
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitInfix3(BasicParser.Infix3Context ctx)
infix3
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitInfix1(BasicParser.Infix1Context ctx)
infix1
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitWhile(BasicParser.WhileContext ctx)
while
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitInfix4(BasicParser.Infix4Context ctx)
infix4
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitInfix5(BasicParser.Infix5Context ctx)
infix5
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitNumber(BasicParser.NumberContext ctx)
number
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitChar(BasicParser.CharContext ctx)
char
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitBlock(BasicParser.BlockContext ctx)
block
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitWrite(BasicParser.WriteContext ctx)
write
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitIf(BasicParser.IfContext ctx)
if
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitPrefix1(BasicParser.Prefix1Context ctx)
prefix1
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitAssign(BasicParser.AssignContext ctx)
assign
labeled alternative in BasicParser.singleExpr()
.ctx
- the parse treeT visitType(BasicParser.TypeContext ctx)
BasicParser.type()
.ctx
- the parse treeT visitVariable(BasicParser.VariableContext ctx)
BasicParser.variable()
.ctx
- the parse tree