Package com.oracle.truffle.sl.parser
Interface SimpleLanguageVisitor<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:
SimpleLanguageBaseVisitor,SLBaseParser,SLBytecodeParser,SLNodeParser
public interface SimpleLanguageVisitor<T>
extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
This interface defines a complete generic visitor for a parse tree produced
by
SimpleLanguageParser.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced bySimpleLanguageParser.arithmetic().Visit a parse tree produced bySimpleLanguageParser.block().Visit a parse tree produced bySimpleLanguageParser.break_statement().Visit a parse tree produced bySimpleLanguageParser.continue_statement().Visit a parse tree produced bySimpleLanguageParser.debugger_statement().Visit a parse tree produced bySimpleLanguageParser.expression().Visit a parse tree produced bySimpleLanguageParser.expression_statement().Visit a parse tree produced bySimpleLanguageParser.function().Visit a parse tree produced bySimpleLanguageParser.if_statement().Visit a parse tree produced bySimpleLanguageParser.logic_factor().Visit a parse tree produced bySimpleLanguageParser.logic_term().Visit a parse tree produced by theMemberAssignlabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theMemberCalllabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theMemberFieldlabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theMemberIndexlabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theNameAccesslabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced by theNumericLiterallabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced by theParenExpressionlabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced bySimpleLanguageParser.return_statement().Visit a parse tree produced bySimpleLanguageParser.simplelanguage().Visit a parse tree produced bySimpleLanguageParser.statement().Visit a parse tree produced by theStringLiterallabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced bySimpleLanguageParser.term().Visit a parse tree produced bySimpleLanguageParser.while_statement().Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitSimplelanguage
Visit a parse tree produced bySimpleLanguageParser.simplelanguage().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction
Visit a parse tree produced bySimpleLanguageParser.function().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced bySimpleLanguageParser.block().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStatement
Visit a parse tree produced bySimpleLanguageParser.statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreak_statement
Visit a parse tree produced bySimpleLanguageParser.break_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinue_statement
Visit a parse tree produced bySimpleLanguageParser.continue_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression_statement
Visit a parse tree produced bySimpleLanguageParser.expression_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDebugger_statement
Visit a parse tree produced bySimpleLanguageParser.debugger_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhile_statement
Visit a parse tree produced bySimpleLanguageParser.while_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIf_statement
Visit a parse tree produced bySimpleLanguageParser.if_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturn_statement
Visit a parse tree produced bySimpleLanguageParser.return_statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
Visit a parse tree produced bySimpleLanguageParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogic_term
Visit a parse tree produced bySimpleLanguageParser.logic_term().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogic_factor
Visit a parse tree produced bySimpleLanguageParser.logic_factor().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmetic
Visit a parse tree produced bySimpleLanguageParser.arithmetic().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTerm
Visit a parse tree produced bySimpleLanguageParser.term().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNameAccess
Visit a parse tree produced by theNameAccesslabeled alternative inSimpleLanguageParser.factor().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Visit a parse tree produced by theStringLiterallabeled alternative inSimpleLanguageParser.factor().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericLiteral
Visit a parse tree produced by theNumericLiterallabeled alternative inSimpleLanguageParser.factor().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenExpression
Visit a parse tree produced by theParenExpressionlabeled alternative inSimpleLanguageParser.factor().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberCall
Visit a parse tree produced by theMemberCalllabeled alternative inSimpleLanguageParser.member_expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberAssign
Visit a parse tree produced by theMemberAssignlabeled alternative inSimpleLanguageParser.member_expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberField
Visit a parse tree produced by theMemberFieldlabeled alternative inSimpleLanguageParser.member_expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberIndex
Visit a parse tree produced by theMemberIndexlabeled alternative inSimpleLanguageParser.member_expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-