diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-05-28 11:09:49 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-05-28 11:11:06 +0200 |
commit | 4dc413b059983a1b50bd781fd88e0999044f66c8 (patch) | |
tree | 8e488b1e9c01a4de0f9304fd8b3cabb62d00bc6d /src/Python3ParserListener.java | |
parent | 4de1659abf7fb73487632a8f3ee9d5febc5ee43e (diff) |
Format
Diffstat (limited to 'src/Python3ParserListener.java')
-rw-r--r-- | src/Python3ParserListener.java | 650 |
1 files changed, 379 insertions, 271 deletions
diff --git a/src/Python3ParserListener.java b/src/Python3ParserListener.java index 8cfb1a4..f87f312 100644 --- a/src/Python3ParserListener.java +++ b/src/Python3ParserListener.java @@ -1,3 +1,4 @@ + // Generated from src/Python3Parser.g4 by ANTLR 4.13.1 import org.antlr.v4.runtime.tree.ParseTreeListener; @@ -6,274 +7,381 @@ import org.antlr.v4.runtime.tree.ParseTreeListener; * {@link Python3Parser}. */ public interface Python3ParserListener extends ParseTreeListener { - /** - * Enter a parse tree produced by {@link Python3Parser#root}. - * @param ctx the parse tree - */ - void enterRoot(Python3Parser.RootContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#root}. - * @param ctx the parse tree - */ - void exitRoot(Python3Parser.RootContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#simple_stmts}. - * @param ctx the parse tree - */ - void enterSimple_stmts(Python3Parser.Simple_stmtsContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#simple_stmts}. - * @param ctx the parse tree - */ - void exitSimple_stmts(Python3Parser.Simple_stmtsContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#compound_stmt}. - * @param ctx the parse tree - */ - void enterCompound_stmt(Python3Parser.Compound_stmtContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#compound_stmt}. - * @param ctx the parse tree - */ - void exitCompound_stmt(Python3Parser.Compound_stmtContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#simple_stmt}. - * @param ctx the parse tree - */ - void enterSimple_stmt(Python3Parser.Simple_stmtContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#simple_stmt}. - * @param ctx the parse tree - */ - void exitSimple_stmt(Python3Parser.Simple_stmtContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#assignment}. - * @param ctx the parse tree - */ - void enterAssignment(Python3Parser.AssignmentContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#assignment}. - * @param ctx the parse tree - */ - void exitAssignment(Python3Parser.AssignmentContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#return_stmt}. - * @param ctx the parse tree - */ - void enterReturn_stmt(Python3Parser.Return_stmtContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#return_stmt}. - * @param ctx the parse tree - */ - void exitReturn_stmt(Python3Parser.Return_stmtContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#import_stm}. - * @param ctx the parse tree - */ - void enterImport_stm(Python3Parser.Import_stmContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#import_stm}. - * @param ctx the parse tree - */ - void exitImport_stm(Python3Parser.Import_stmContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#dotted_name}. - * @param ctx the parse tree - */ - void enterDotted_name(Python3Parser.Dotted_nameContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#dotted_name}. - * @param ctx the parse tree - */ - void exitDotted_name(Python3Parser.Dotted_nameContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#funcdef}. - * @param ctx the parse tree - */ - void enterFuncdef(Python3Parser.FuncdefContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#funcdef}. - * @param ctx the parse tree - */ - void exitFuncdef(Python3Parser.FuncdefContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#paramlist}. - * @param ctx the parse tree - */ - void enterParamlist(Python3Parser.ParamlistContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#paramlist}. - * @param ctx the parse tree - */ - void exitParamlist(Python3Parser.ParamlistContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#paramdef}. - * @param ctx the parse tree - */ - void enterParamdef(Python3Parser.ParamdefContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#paramdef}. - * @param ctx the parse tree - */ - void exitParamdef(Python3Parser.ParamdefContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#augassign}. - * @param ctx the parse tree - */ - void enterAugassign(Python3Parser.AugassignContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#augassign}. - * @param ctx the parse tree - */ - void exitAugassign(Python3Parser.AugassignContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#if_stmt}. - * @param ctx the parse tree - */ - void enterIf_stmt(Python3Parser.If_stmtContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#if_stmt}. - * @param ctx the parse tree - */ - void exitIf_stmt(Python3Parser.If_stmtContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#while_stmt}. - * @param ctx the parse tree - */ - void enterWhile_stmt(Python3Parser.While_stmtContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#while_stmt}. - * @param ctx the parse tree - */ - void exitWhile_stmt(Python3Parser.While_stmtContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#for_stmt}. - * @param ctx the parse tree - */ - void enterFor_stmt(Python3Parser.For_stmtContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#for_stmt}. - * @param ctx the parse tree - */ - void exitFor_stmt(Python3Parser.For_stmtContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#block}. - * @param ctx the parse tree - */ - void enterBlock(Python3Parser.BlockContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#block}. - * @param ctx the parse tree - */ - void exitBlock(Python3Parser.BlockContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#comp_op}. - * @param ctx the parse tree - */ - void enterComp_op(Python3Parser.Comp_opContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#comp_op}. - * @param ctx the parse tree - */ - void exitComp_op(Python3Parser.Comp_opContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#expr}. - * @param ctx the parse tree - */ - void enterExpr(Python3Parser.ExprContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#expr}. - * @param ctx the parse tree - */ - void exitExpr(Python3Parser.ExprContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#atom}. - * @param ctx the parse tree - */ - void enterAtom(Python3Parser.AtomContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#atom}. - * @param ctx the parse tree - */ - void exitAtom(Python3Parser.AtomContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#testlist_comp}. - * @param ctx the parse tree - */ - void enterTestlist_comp(Python3Parser.Testlist_compContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#testlist_comp}. - * @param ctx the parse tree - */ - void exitTestlist_comp(Python3Parser.Testlist_compContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#trailer}. - * @param ctx the parse tree - */ - void enterTrailer(Python3Parser.TrailerContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#trailer}. - * @param ctx the parse tree - */ - void exitTrailer(Python3Parser.TrailerContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#exprlist}. - * @param ctx the parse tree - */ - void enterExprlist(Python3Parser.ExprlistContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#exprlist}. - * @param ctx the parse tree - */ - void exitExprlist(Python3Parser.ExprlistContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#arglist}. - * @param ctx the parse tree - */ - void enterArglist(Python3Parser.ArglistContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#arglist}. - * @param ctx the parse tree - */ - void exitArglist(Python3Parser.ArglistContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#argument}. - * @param ctx the parse tree - */ - void enterArgument(Python3Parser.ArgumentContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#argument}. - * @param ctx the parse tree - */ - void exitArgument(Python3Parser.ArgumentContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#comp_iter}. - * @param ctx the parse tree - */ - void enterComp_iter(Python3Parser.Comp_iterContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#comp_iter}. - * @param ctx the parse tree - */ - void exitComp_iter(Python3Parser.Comp_iterContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#comp_for}. - * @param ctx the parse tree - */ - void enterComp_for(Python3Parser.Comp_forContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#comp_for}. - * @param ctx the parse tree - */ - void exitComp_for(Python3Parser.Comp_forContext ctx); - /** - * Enter a parse tree produced by {@link Python3Parser#comp_if}. - * @param ctx the parse tree - */ - void enterComp_if(Python3Parser.Comp_ifContext ctx); - /** - * Exit a parse tree produced by {@link Python3Parser#comp_if}. - * @param ctx the parse tree - */ - void exitComp_if(Python3Parser.Comp_ifContext ctx); -}
\ No newline at end of file + /** + * Enter a parse tree produced by {@link Python3Parser#root}. + * + * @param ctx the parse tree + */ + void enterRoot(Python3Parser.RootContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#root}. + * + * @param ctx the parse tree + */ + void exitRoot(Python3Parser.RootContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#simple_stmts}. + * + * @param ctx the parse tree + */ + void enterSimple_stmts(Python3Parser.Simple_stmtsContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#simple_stmts}. + * + * @param ctx the parse tree + */ + void exitSimple_stmts(Python3Parser.Simple_stmtsContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#compound_stmt}. + * + * @param ctx the parse tree + */ + void enterCompound_stmt(Python3Parser.Compound_stmtContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#compound_stmt}. + * + * @param ctx the parse tree + */ + void exitCompound_stmt(Python3Parser.Compound_stmtContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#simple_stmt}. + * + * @param ctx the parse tree + */ + void enterSimple_stmt(Python3Parser.Simple_stmtContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#simple_stmt}. + * + * @param ctx the parse tree + */ + void exitSimple_stmt(Python3Parser.Simple_stmtContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#assignment}. + * + * @param ctx the parse tree + */ + void enterAssignment(Python3Parser.AssignmentContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#assignment}. + * + * @param ctx the parse tree + */ + void exitAssignment(Python3Parser.AssignmentContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#return_stmt}. + * + * @param ctx the parse tree + */ + void enterReturn_stmt(Python3Parser.Return_stmtContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#return_stmt}. + * + * @param ctx the parse tree + */ + void exitReturn_stmt(Python3Parser.Return_stmtContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#import_stm}. + * + * @param ctx the parse tree + */ + void enterImport_stm(Python3Parser.Import_stmContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#import_stm}. + * + * @param ctx the parse tree + */ + void exitImport_stm(Python3Parser.Import_stmContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#dotted_name}. + * + * @param ctx the parse tree + */ + void enterDotted_name(Python3Parser.Dotted_nameContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#dotted_name}. + * + * @param ctx the parse tree + */ + void exitDotted_name(Python3Parser.Dotted_nameContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#funcdef}. + * + * @param ctx the parse tree + */ + void enterFuncdef(Python3Parser.FuncdefContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#funcdef}. + * + * @param ctx the parse tree + */ + void exitFuncdef(Python3Parser.FuncdefContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#paramlist}. + * + * @param ctx the parse tree + */ + void enterParamlist(Python3Parser.ParamlistContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#paramlist}. + * + * @param ctx the parse tree + */ + void exitParamlist(Python3Parser.ParamlistContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#paramdef}. + * + * @param ctx the parse tree + */ + void enterParamdef(Python3Parser.ParamdefContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#paramdef}. + * + * @param ctx the parse tree + */ + void exitParamdef(Python3Parser.ParamdefContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#augassign}. + * + * @param ctx the parse tree + */ + void enterAugassign(Python3Parser.AugassignContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#augassign}. + * + * @param ctx the parse tree + */ + void exitAugassign(Python3Parser.AugassignContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#if_stmt}. + * + * @param ctx the parse tree + */ + void enterIf_stmt(Python3Parser.If_stmtContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#if_stmt}. + * + * @param ctx the parse tree + */ + void exitIf_stmt(Python3Parser.If_stmtContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#while_stmt}. + * + * @param ctx the parse tree + */ + void enterWhile_stmt(Python3Parser.While_stmtContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#while_stmt}. + * + * @param ctx the parse tree + */ + void exitWhile_stmt(Python3Parser.While_stmtContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#for_stmt}. + * + * @param ctx the parse tree + */ + void enterFor_stmt(Python3Parser.For_stmtContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#for_stmt}. + * + * @param ctx the parse tree + */ + void exitFor_stmt(Python3Parser.For_stmtContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#block}. + * + * @param ctx the parse tree + */ + void enterBlock(Python3Parser.BlockContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#block}. + * + * @param ctx the parse tree + */ + void exitBlock(Python3Parser.BlockContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#comp_op}. + * + * @param ctx the parse tree + */ + void enterComp_op(Python3Parser.Comp_opContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#comp_op}. + * + * @param ctx the parse tree + */ + void exitComp_op(Python3Parser.Comp_opContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#expr}. + * + * @param ctx the parse tree + */ + void enterExpr(Python3Parser.ExprContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#expr}. + * + * @param ctx the parse tree + */ + void exitExpr(Python3Parser.ExprContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#atom}. + * + * @param ctx the parse tree + */ + void enterAtom(Python3Parser.AtomContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#atom}. + * + * @param ctx the parse tree + */ + void exitAtom(Python3Parser.AtomContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#testlist_comp}. + * + * @param ctx the parse tree + */ + void enterTestlist_comp(Python3Parser.Testlist_compContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#testlist_comp}. + * + * @param ctx the parse tree + */ + void exitTestlist_comp(Python3Parser.Testlist_compContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#trailer}. + * + * @param ctx the parse tree + */ + void enterTrailer(Python3Parser.TrailerContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#trailer}. + * + * @param ctx the parse tree + */ + void exitTrailer(Python3Parser.TrailerContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#exprlist}. + * + * @param ctx the parse tree + */ + void enterExprlist(Python3Parser.ExprlistContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#exprlist}. + * + * @param ctx the parse tree + */ + void exitExprlist(Python3Parser.ExprlistContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#arglist}. + * + * @param ctx the parse tree + */ + void enterArglist(Python3Parser.ArglistContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#arglist}. + * + * @param ctx the parse tree + */ + void exitArglist(Python3Parser.ArglistContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#argument}. + * + * @param ctx the parse tree + */ + void enterArgument(Python3Parser.ArgumentContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#argument}. + * + * @param ctx the parse tree + */ + void exitArgument(Python3Parser.ArgumentContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#comp_iter}. + * + * @param ctx the parse tree + */ + void enterComp_iter(Python3Parser.Comp_iterContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#comp_iter}. + * + * @param ctx the parse tree + */ + void exitComp_iter(Python3Parser.Comp_iterContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#comp_for}. + * + * @param ctx the parse tree + */ + void enterComp_for(Python3Parser.Comp_forContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#comp_for}. + * + * @param ctx the parse tree + */ + void exitComp_for(Python3Parser.Comp_forContext ctx); + + /** + * Enter a parse tree produced by {@link Python3Parser#comp_if}. + * + * @param ctx the parse tree + */ + void enterComp_if(Python3Parser.Comp_ifContext ctx); + + /** + * Exit a parse tree produced by {@link Python3Parser#comp_if}. + * + * @param ctx the parse tree + */ + void exitComp_if(Python3Parser.Comp_ifContext ctx); +} |