Package net.lizhao.scriq.py
Interface Python3Visitor<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:
Python3BaseVisitor
public interface Python3Visitor<T>
extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
This interface defines a complete generic visitor for a parse tree produced
by
Python3Parser.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced by theadditiveExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced by theandExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.arguments().Visit a parse tree produced byPython3Parser.array().Visit a parse tree produced by thearrayExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.assignment_stmt().Visit a parse tree produced byPython3Parser.atom_expr().Visit a parse tree produced by theatomExpExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced by theatomExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.block().Visit a parse tree produced by thebooleanAtomlabeled alternative inPython3Parser.atom().Visit a parse tree produced byPython3Parser.break_stmt().Visit a parse tree produced byPython3Parser.compound_stmt().Visit a parse tree produced byPython3Parser.continue_stmt().Visit a parse tree produced byPython3Parser.dotted_as_name().Visit a parse tree produced byPython3Parser.dotted_as_names().Visit a parse tree produced byPython3Parser.dotted_name().Visit a parse tree produced by theequalityExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.flow_stmt().Visit a parse tree produced byPython3Parser.funcCall().Visit a parse tree produced by thefuncExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.if_stmt().Visit a parse tree produced byPython3Parser.import_as_name().Visit a parse tree produced byPython3Parser.import_as_names().Visit a parse tree produced byPython3Parser.import_from().Visit a parse tree produced byPython3Parser.import_name().Visit a parse tree produced byPython3Parser.import_stmt().Visit a parse tree produced by themultiplicationExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced by thenameAtomlabeled alternative inPython3Parser.atom().Visit a parse tree produced by thenilAtomlabeled alternative inPython3Parser.atom().Visit a parse tree produced by thenotExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced by thenumberAtomlabeled alternative inPython3Parser.atom().Visit a parse tree produced by theorExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced by theparExprlabeled alternative inPython3Parser.atom().Visit a parse tree produced by thepowExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.print_stmt().Visit a parse tree produced by therelationalExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.return_stmt().Visit a parse tree produced byPython3Parser.simple_stmt().Visit a parse tree produced byPython3Parser.sliceop().Visit a parse tree produced byPython3Parser.small_stmt().Visit a parse tree produced byPython3Parser.source().Visit a parse tree produced byPython3Parser.stmt().Visit a parse tree produced by thestringAtomlabeled alternative inPython3Parser.atom().Visit a parse tree produced byPython3Parser.subscript_().Visit a parse tree produced byPython3Parser.subscriptlist().Visit a parse tree produced byPython3Parser.test().Visit a parse tree produced byPython3Parser.test_block().Visit a parse tree produced by theunaryMinusExprlabeled alternative inPython3Parser.expr().Visit a parse tree produced byPython3Parser.while_stmt().Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitSource
Visit a parse tree produced byPython3Parser.source().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStmt
Visit a parse tree produced byPython3Parser.stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimple_stmt
Visit a parse tree produced byPython3Parser.simple_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSmall_stmt
Visit a parse tree produced byPython3Parser.small_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssignment_stmt
Visit a parse tree produced byPython3Parser.assignment_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFlow_stmt
Visit a parse tree produced byPython3Parser.flow_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreak_stmt
Visit a parse tree produced byPython3Parser.break_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinue_stmt
Visit a parse tree produced byPython3Parser.continue_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompound_stmt
Visit a parse tree produced byPython3Parser.compound_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImport_stmt
Visit a parse tree produced byPython3Parser.import_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImport_name
Visit a parse tree produced byPython3Parser.import_name().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImport_from
Visit a parse tree produced byPython3Parser.import_from().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImport_as_name
Visit a parse tree produced byPython3Parser.import_as_name().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDotted_as_name
Visit a parse tree produced byPython3Parser.dotted_as_name().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImport_as_names
Visit a parse tree produced byPython3Parser.import_as_names().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDotted_as_names
Visit a parse tree produced byPython3Parser.dotted_as_names().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDotted_name
Visit a parse tree produced byPython3Parser.dotted_name().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtom_expr
Visit a parse tree produced byPython3Parser.atom_expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArray
Visit a parse tree produced byPython3Parser.array().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscriptlist
Visit a parse tree produced byPython3Parser.subscriptlist().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscript_
Visit a parse tree produced byPython3Parser.subscript_().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSliceop
Visit a parse tree produced byPython3Parser.sliceop().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTest
Visit a parse tree produced byPython3Parser.test().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIf_stmt
Visit a parse tree produced byPython3Parser.if_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTest_block
Visit a parse tree produced byPython3Parser.test_block().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhile_stmt
Visit a parse tree produced byPython3Parser.while_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced byPython3Parser.block().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrint_stmt
Visit a parse tree produced byPython3Parser.print_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFuncCall
Visit a parse tree produced byPython3Parser.funcCall().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
Visit a parse tree produced byPython3Parser.arguments().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturn_stmt
Visit a parse tree produced byPython3Parser.return_stmt().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFuncExpr
Visit a parse tree produced by thefuncExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayExpr
Visit a parse tree produced by thearrayExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtomExpr
Visit a parse tree produced by theatomExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOrExpr
Visit a parse tree produced by theorExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpr
Visit a parse tree produced by theadditiveExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelationalExpr
Visit a parse tree produced by therelationalExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNotExpr
Visit a parse tree produced by thenotExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryMinusExpr
Visit a parse tree produced by theunaryMinusExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicationExpr
Visit a parse tree produced by themultiplicationExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtomExpExpr
Visit a parse tree produced by theatomExpExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPowExpr
Visit a parse tree produced by thepowExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
Visit a parse tree produced by theequalityExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAndExpr
Visit a parse tree produced by theandExprlabeled alternative inPython3Parser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpr
Visit a parse tree produced by theparExprlabeled alternative inPython3Parser.atom().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumberAtom
Visit a parse tree produced by thenumberAtomlabeled alternative inPython3Parser.atom().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleanAtom
Visit a parse tree produced by thebooleanAtomlabeled alternative inPython3Parser.atom().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNameAtom
Visit a parse tree produced by thenameAtomlabeled alternative inPython3Parser.atom().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringAtom
Visit a parse tree produced by thestringAtomlabeled alternative inPython3Parser.atom().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNilAtom
Visit a parse tree produced by thenilAtomlabeled alternative inPython3Parser.atom().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-