VAlgoLangParserBaseVisitor

open class VAlgoLangParserBaseVisitor<T> : AbstractParseTreeVisitor<T> , VAlgoLangParserVisitor<T>

This class provides an empty implementation of VAlgoLangParserVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Parameters

<T>

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

Functions

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

Inheritors

VAlgoLangParserVisitor
Link copied to clipboard