VAlgoLangParserVisitor

interface VAlgoLangParserVisitor<T> : ParseTreeVisitor<T>

This interface defines a complete generic visitor for a parse tree produced by VAlgoLangParser.

Parameters

<T>

The return type of the visit operation. Use Void for operations with no return type.

Functions

visit
Link copied to clipboard
abstract fun visit(p: ParseTree): T
visitAnimationSpeedUpAnnotation
Link copied to clipboard
Visit a parse tree produced by the {@code AnimationSpeedUpAnnotation} labeled alternative in annotation.
visitAnnotationStatement
Link copied to clipboard
abstract fun visitAnnotationStatement(ctx: VAlgoLangParser.AnnotationStatementContext): T
Visit a parse tree produced by the {@code AnnotationStatement} labeled alternative in stat.
visitArgumentList
Link copied to clipboard
abstract fun visitArgumentList(ctx: VAlgoLangParser.ArgumentListContext): T
Visit a parse tree produced by the {@code ArgumentList} labeled alternative in arg_list.
visitArray_elem
Link copied to clipboard
abstract fun visitArray_elem(ctx: VAlgoLangParser.Array_elemContext): T
Visit a parse tree produced by array_elem.
visitArrayElemAssignment
Link copied to clipboard
abstract fun visitArrayElemAssignment(ctx: VAlgoLangParser.ArrayElemAssignmentContext): T
Visit a parse tree produced by the {@code ArrayElemAssignment} labeled alternative in assignment_lhs.
visitArrayElemExpr
Link copied to clipboard
abstract fun visitArrayElemExpr(ctx: VAlgoLangParser.ArrayElemExprContext): T
Visit a parse tree produced by the {@code ArrayElemExpr} labeled alternative in expr.
visitArrayType
Link copied to clipboard
abstract fun visitArrayType(ctx: VAlgoLangParser.ArrayTypeContext): T
Visit a parse tree produced by the {@code ArrayType} labeled alternative in data_structure_type.
visitAssignmentStatement
Link copied to clipboard
abstract fun visitAssignmentStatement(ctx: VAlgoLangParser.AssignmentStatementContext): T
Visit a parse tree produced by the {@code AssignmentStatement} labeled alternative in stat.
visitBinaryExpression
Link copied to clipboard
abstract fun visitBinaryExpression(ctx: VAlgoLangParser.BinaryExpressionContext): T
Visit a parse tree produced by the {@code BinaryExpression} labeled alternative in expr.
visitBool
Link copied to clipboard
abstract fun visitBool(ctx: VAlgoLangParser.BoolContext): T
Visit a parse tree produced by bool.
visitBooleanLiteral
Link copied to clipboard
abstract fun visitBooleanLiteral(ctx: VAlgoLangParser.BooleanLiteralContext): T
Visit a parse tree produced by the {@code BooleanLiteral} labeled alternative in expr.
visitBoolType
Link copied to clipboard
abstract fun visitBoolType(ctx: VAlgoLangParser.BoolTypeContext): T
Visit a parse tree produced by the {@code BoolType} labeled alternative in primitive_type.
visitBracketedExpression
Link copied to clipboard
abstract fun visitBracketedExpression(ctx: VAlgoLangParser.BracketedExpressionContext): T
Visit a parse tree produced by the {@code BracketedExpression} labeled alternative in expr.
visitBreakStatement
Link copied to clipboard
abstract fun visitBreakStatement(ctx: VAlgoLangParser.BreakStatementContext): T
Visit a parse tree produced by the {@code BreakStatement} labeled alternative in loop_stat.
visitCastExpression
Link copied to clipboard
abstract fun visitCastExpression(ctx: VAlgoLangParser.CastExpressionContext): T
Visit a parse tree produced by the {@code CastExpression} labeled alternative in expr.
visitCharacterLiteral
Link copied to clipboard
abstract fun visitCharacterLiteral(ctx: VAlgoLangParser.CharacterLiteralContext): T
Visit a parse tree produced by the {@code CharacterLiteral} labeled alternative in expr.
visitCharType
Link copied to clipboard
abstract fun visitCharType(ctx: VAlgoLangParser.CharTypeContext): T
Visit a parse tree produced by the {@code CharType} labeled alternative in primitive_type.
visitChildren
Link copied to clipboard
abstract fun visitChildren(p: RuleNode): T
visitCodeTrackingAnnotation
Link copied to clipboard
abstract fun visitCodeTrackingAnnotation(ctx: VAlgoLangParser.CodeTrackingAnnotationContext): T
Visit a parse tree produced by the {@code CodeTrackingAnnotation} labeled alternative in annotation.
visitConsecutiveStatement
Link copied to clipboard
abstract fun visitConsecutiveStatement(ctx: VAlgoLangParser.ConsecutiveStatementContext): T
Visit a parse tree produced by the {@code ConsecutiveStatement} labeled alternative in stat.
visitContinueStatement
Link copied to clipboard
abstract fun visitContinueStatement(ctx: VAlgoLangParser.ContinueStatementContext): T
Visit a parse tree produced by the {@code ContinueStatement} labeled alternative in loop_stat.
visitData_structure_initialiser
Link copied to clipboard
Visit a parse tree produced by data_structure_initialiser.
visitDataStructureConstructor
Link copied to clipboard
Visit a parse tree produced by the {@code DataStructureConstructor} labeled alternative in expr.
visitDataStructureType
Link copied to clipboard
abstract fun visitDataStructureType(ctx: VAlgoLangParser.DataStructureTypeContext): T
Visit a parse tree produced by the {@code DataStructureType} labeled alternative in type.
visitDeclarationStatement
Link copied to clipboard
abstract fun visitDeclarationStatement(ctx: VAlgoLangParser.DeclarationStatementContext): T
Visit a parse tree produced by the {@code DeclarationStatement} labeled alternative in stat.
visitElseIf
Link copied to clipboard
abstract fun visitElseIf(ctx: VAlgoLangParser.ElseIfContext): T
Visit a parse tree produced by elseIf.
visitErrorNode
Link copied to clipboard
abstract fun visitErrorNode(p: ErrorNode): T
visitForStatement
Link copied to clipboard
abstract fun visitForStatement(ctx: VAlgoLangParser.ForStatementContext): T
Visit a parse tree produced by the {@code ForStatement} labeled alternative in stat.
visitFunction
Link copied to clipboard
abstract fun visitFunction(ctx: VAlgoLangParser.FunctionContext): T
Visit a parse tree produced by function.
visitFunctionCall
Link copied to clipboard
abstract fun visitFunctionCall(ctx: VAlgoLangParser.FunctionCallContext): T
Visit a parse tree produced by the {@code FunctionCall} labeled alternative in method_call.
visitIdentifier
Link copied to clipboard
abstract fun visitIdentifier(ctx: VAlgoLangParser.IdentifierContext): T
Visit a parse tree produced by the {@code Identifier} labeled alternative in expr.
visitIdentifierAssignment
Link copied to clipboard
abstract fun visitIdentifierAssignment(ctx: VAlgoLangParser.IdentifierAssignmentContext): T
Visit a parse tree produced by the {@code IdentifierAssignment} labeled alternative in assignment_lhs.
visitIfStatement
Link copied to clipboard
abstract fun visitIfStatement(ctx: VAlgoLangParser.IfStatementContext): T
Visit a parse tree produced by the {@code IfStatement} labeled alternative in stat.
visitInitialiser_list
Link copied to clipboard
abstract fun visitInitialiser_list(ctx: VAlgoLangParser.Initialiser_listContext): T
Visit a parse tree produced by initialiser_list.
visitListType
Link copied to clipboard
abstract fun visitListType(ctx: VAlgoLangParser.ListTypeContext): T
Visit a parse tree produced by the {@code ListType} labeled alternative in data_structure_type.
visitLoopStatement
Link copied to clipboard
abstract fun visitLoopStatement(ctx: VAlgoLangParser.LoopStatementContext): T
Visit a parse tree produced by the {@code LoopStatement} labeled alternative in stat.
visitMethodCall
Link copied to clipboard
abstract fun visitMethodCall(ctx: VAlgoLangParser.MethodCallContext): T
Visit a parse tree produced by the {@code MethodCall} labeled alternative in method_call.
visitMethodCallExpression
Link copied to clipboard
abstract fun visitMethodCallExpression(ctx: VAlgoLangParser.MethodCallExpressionContext): T
Visit a parse tree produced by the {@code MethodCallExpression} labeled alternative in expr.
visitMethodCallStatement
Link copied to clipboard
abstract fun visitMethodCallStatement(ctx: VAlgoLangParser.MethodCallStatementContext): T
Visit a parse tree produced by the {@code MethodCallStatement} labeled alternative in stat.
visitNode_elem
Link copied to clipboard
abstract fun visitNode_elem(ctx: VAlgoLangParser.Node_elemContext): T
Visit a parse tree produced by node_elem.
visitNode_elem_access
Link copied to clipboard
abstract fun visitNode_elem_access(ctx: VAlgoLangParser.Node_elem_accessContext): T
Visit a parse tree produced by node_elem_access.
visitNode_type
Link copied to clipboard
abstract fun visitNode_type(ctx: VAlgoLangParser.Node_typeContext): T
Visit a parse tree produced by node_type.
visitNodeElemAssignment
Link copied to clipboard
abstract fun visitNodeElemAssignment(ctx: VAlgoLangParser.NodeElemAssignmentContext): T
Visit a parse tree produced by the {@code NodeElemAssignment} labeled alternative in assignment_lhs.
visitNodeElemExpr
Link copied to clipboard
abstract fun visitNodeElemExpr(ctx: VAlgoLangParser.NodeElemExprContext): T
Visit a parse tree produced by the {@code NodeElemExpr} labeled alternative in expr.
visitNodeType
Link copied to clipboard
abstract fun visitNodeType(ctx: VAlgoLangParser.NodeTypeContext): T
Visit a parse tree produced by the {@code NodeType} labeled alternative in data_structure_type.
visitNullLiteral
Link copied to clipboard
abstract fun visitNullLiteral(ctx: VAlgoLangParser.NullLiteralContext): T
Visit a parse tree produced by the {@code NullLiteral} labeled alternative in expr.
visitNumberLiteral
Link copied to clipboard
abstract fun visitNumberLiteral(ctx: VAlgoLangParser.NumberLiteralContext): T
Visit a parse tree produced by the {@code NumberLiteral} labeled alternative in expr.
visitNumberType
Link copied to clipboard
abstract fun visitNumberType(ctx: VAlgoLangParser.NumberTypeContext): T
Visit a parse tree produced by the {@code NumberType} labeled alternative in primitive_type.
visitParameter
Link copied to clipboard
abstract fun visitParameter(ctx: VAlgoLangParser.ParameterContext): T
Visit a parse tree produced by the {@code Parameter} labeled alternative in param.
visitParameterList
Link copied to clipboard
abstract fun visitParameterList(ctx: VAlgoLangParser.ParameterListContext): T
Visit a parse tree produced by the {@code ParameterList} labeled alternative in param_list.
visitPrimitiveType
Link copied to clipboard
abstract fun visitPrimitiveType(ctx: VAlgoLangParser.PrimitiveTypeContext): T
Visit a parse tree produced by the {@code PrimitiveType} labeled alternative in type.
visitProgram
Link copied to clipboard
abstract fun visitProgram(ctx: VAlgoLangParser.ProgramContext): T
Visit a parse tree produced by program.
visitRangeHeader
Link copied to clipboard
abstract fun visitRangeHeader(ctx: VAlgoLangParser.RangeHeaderContext): T
Visit a parse tree produced by the {@code RangeHeader} labeled alternative in forHeader.
visitReturnStatement
Link copied to clipboard
abstract fun visitReturnStatement(ctx: VAlgoLangParser.ReturnStatementContext): T
Visit a parse tree produced by the {@code ReturnStatement} labeled alternative in stat.
visitSleepStatement
Link copied to clipboard
abstract fun visitSleepStatement(ctx: VAlgoLangParser.SleepStatementContext): T
Visit a parse tree produced by the {@code SleepStatement} labeled alternative in stat.
visitStackType
Link copied to clipboard
abstract fun visitStackType(ctx: VAlgoLangParser.StackTypeContext): T
Visit a parse tree produced by the {@code StackType} labeled alternative in data_structure_type.
visitStringLiteral
Link copied to clipboard
abstract fun visitStringLiteral(ctx: VAlgoLangParser.StringLiteralContext): T
Visit a parse tree produced by the {@code StringLiteral} labeled alternative in expr.
visitStringType
Link copied to clipboard
abstract fun visitStringType(ctx: VAlgoLangParser.StringTypeContext): T
Visit a parse tree produced by the {@code StringType} labeled alternative in primitive_type.
visitSubtitleAnnotation
Link copied to clipboard
abstract fun visitSubtitleAnnotation(ctx: VAlgoLangParser.SubtitleAnnotationContext): T
Visit a parse tree produced by the {@code SubtitleAnnotation} labeled alternative in annotation.
visitTerminal
Link copied to clipboard
abstract fun visitTerminal(p: TerminalNode): T
visitToCharacter
Link copied to clipboard
abstract fun visitToCharacter(ctx: VAlgoLangParser.ToCharacterContext): T
Visit a parse tree produced by the {@code ToCharacter} labeled alternative in cast_method.
visitToNumber
Link copied to clipboard
abstract fun visitToNumber(ctx: VAlgoLangParser.ToNumberContext): T
Visit a parse tree produced by the {@code ToNumber} labeled alternative in cast_method.
visitTreeType
Link copied to clipboard
abstract fun visitTreeType(ctx: VAlgoLangParser.TreeTypeContext): T
Visit a parse tree produced by the {@code TreeType} labeled alternative in data_structure_type.
visitUnaryOperator
Link copied to clipboard
abstract fun visitUnaryOperator(ctx: VAlgoLangParser.UnaryOperatorContext): T
Visit a parse tree produced by the {@code UnaryOperator} labeled alternative in expr.
visitWhileStatement
Link copied to clipboard
abstract fun visitWhileStatement(ctx: VAlgoLangParser.WhileStatementContext): T
Visit a parse tree produced by the {@code WhileStatement} labeled alternative in stat.

Inheritors

VAlgoLangParserBaseVisitor
Link copied to clipboard