Interface ExpressionVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Superinterfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- All Known Implementing Classes:
DefaultExpressionVisitor
interface ExpressionVisitor<T>
extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
This interface defines a complete generic visitor for a parse tree produced
by
ExpressionParser.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byExpressionParser.block().Visit a parse tree produced by theExprAddlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprAndlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprDivlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprEqlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprFunctionCalllabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprGcdlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprGelabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprGtlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprIndexlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprIntlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprLambdalabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprLcmlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprLelabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprLtlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprMatrixlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprModlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprMullabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprNeglabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprNeqlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprNotlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprOrlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprParenlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprPoslabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprPowlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprReallabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprRemlabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprSublabeled alternative inExpressionParser.expression().Visit a parse tree produced by theExprVariablelabeled alternative inExpressionParser.expression().Visit a parse tree produced by theForlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theFunctionDeclarationlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theIflabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theLocalFunctionDeclarationlabeled alternative inExpressionParser.declaration().Visit a parse tree produced byExpressionParser.main().Visit a parse tree produced byExpressionParser.matrix().Visit a parse tree produced by theMatrixAssignmentlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theReturnlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theSimpleAssignmentlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theSimpleFunctionDeclarationlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theSimpleIflabeled alternative inExpressionParser.expression().Visit a parse tree produced by theSimpleLocalAssignmentlabeled alternative inExpressionParser.declaration().Visit a parse tree produced by theSimpleLocalFunctionDeclarationlabeled alternative inExpressionParser.declaration().Visit a parse tree produced byExpressionParser.toplevel().Visit a parse tree produced by theWhilelabeled alternative inExpressionParser.declaration().Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitMain
Visit a parse tree produced byExpressionParser.main().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitToplevel
Visit a parse tree produced byExpressionParser.toplevel().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced byExpressionParser.block().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleAssignment
Visit a parse tree produced by theSimpleAssignmentlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleLocalAssignment
Visit a parse tree produced by theSimpleLocalAssignmentlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMatrixAssignment
Visit a parse tree produced by theMatrixAssignmentlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleFunctionDeclaration
Visit a parse tree produced by theSimpleFunctionDeclarationlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionDeclaration
Visit a parse tree produced by theFunctionDeclarationlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleLocalFunctionDeclaration
Visit a parse tree produced by theSimpleLocalFunctionDeclarationlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalFunctionDeclaration
Visit a parse tree produced by theLocalFunctionDeclarationlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIf
Visit a parse tree produced by theIflabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhile
Visit a parse tree produced by theWhilelabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFor
Visit a parse tree produced by theForlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturn
Visit a parse tree produced by theReturnlabeled alternative inExpressionParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprGcd
Visit a parse tree produced by theExprGcdlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleIf
Visit a parse tree produced by theSimpleIflabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprIndex
Visit a parse tree produced by theExprIndexlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprNeg
Visit a parse tree produced by theExprNeglabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprNot
Visit a parse tree produced by theExprNotlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprPos
Visit a parse tree produced by theExprPoslabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprDiv
Visit a parse tree produced by theExprDivlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprOr
Visit a parse tree produced by theExprOrlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprSub
Visit a parse tree produced by theExprSublabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprMul
Visit a parse tree produced by theExprMullabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprGe
Visit a parse tree produced by theExprGelabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprLambda
Visit a parse tree produced by theExprLambdalabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprMod
Visit a parse tree produced by theExprModlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprLe
Visit a parse tree produced by theExprLelabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprParen
Visit a parse tree produced by theExprParenlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprInt
Visit a parse tree produced by theExprIntlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprMatrix
Visit a parse tree produced by theExprMatrixlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprGt
Visit a parse tree produced by theExprGtlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprEq
Visit a parse tree produced by theExprEqlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprAnd
Visit a parse tree produced by theExprAndlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprPow
Visit a parse tree produced by theExprPowlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprFunctionCall
Visit a parse tree produced by theExprFunctionCalllabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprLcm
Visit a parse tree produced by theExprLcmlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprLt
Visit a parse tree produced by theExprLtlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprRem
Visit a parse tree produced by theExprRemlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprNeq
Visit a parse tree produced by theExprNeqlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprReal
Visit a parse tree produced by theExprReallabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprVariable
Visit a parse tree produced by theExprVariablelabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprAdd
Visit a parse tree produced by theExprAddlabeled alternative inExpressionParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMatrix
Visit a parse tree produced byExpressionParser.matrix().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-