summaryrefslogtreecommitdiff
path: root/src/Python3ParserBaseListener.java
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-05-28 11:09:49 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-05-28 11:11:06 +0200
commit4dc413b059983a1b50bd781fd88e0999044f66c8 (patch)
tree8e488b1e9c01a4de0f9304fd8b3cabb62d00bc6d /src/Python3ParserBaseListener.java
parent4de1659abf7fb73487632a8f3ee9d5febc5ee43e (diff)
Format
Diffstat (limited to 'src/Python3ParserBaseListener.java')
-rw-r--r--src/Python3ParserBaseListener.java935
1 files changed, 583 insertions, 352 deletions
diff --git a/src/Python3ParserBaseListener.java b/src/Python3ParserBaseListener.java
index 9cfc8be..dbe30f4 100644
--- a/src/Python3ParserBaseListener.java
+++ b/src/Python3ParserBaseListener.java
@@ -6,358 +6,589 @@ import org.antlr.v4.runtime.tree.TerminalNode;
/**
* This class provides an empty implementation of {@link Python3ParserListener},
- * which can be extended to create a listener which only needs to handle a subset
- * of the available methods.
+ * which can be
+ * extended to create a listener which only needs to handle a subset of the
+ * available methods.
*/
@SuppressWarnings("CheckReturnValue")
public class Python3ParserBaseListener implements Python3ParserListener {
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterRoot(Python3Parser.RootContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitRoot(Python3Parser.RootContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterSimple_stmts(Python3Parser.Simple_stmtsContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitSimple_stmts(Python3Parser.Simple_stmtsContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterCompound_stmt(Python3Parser.Compound_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitCompound_stmt(Python3Parser.Compound_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterSimple_stmt(Python3Parser.Simple_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitSimple_stmt(Python3Parser.Simple_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterAssignment(Python3Parser.AssignmentContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitAssignment(Python3Parser.AssignmentContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterReturn_stmt(Python3Parser.Return_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitReturn_stmt(Python3Parser.Return_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterImport_stm(Python3Parser.Import_stmContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitImport_stm(Python3Parser.Import_stmContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterDotted_name(Python3Parser.Dotted_nameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitDotted_name(Python3Parser.Dotted_nameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterFuncdef(Python3Parser.FuncdefContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitFuncdef(Python3Parser.FuncdefContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterParamlist(Python3Parser.ParamlistContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitParamlist(Python3Parser.ParamlistContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterParamdef(Python3Parser.ParamdefContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitParamdef(Python3Parser.ParamdefContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterAugassign(Python3Parser.AugassignContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitAugassign(Python3Parser.AugassignContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterIf_stmt(Python3Parser.If_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitIf_stmt(Python3Parser.If_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterWhile_stmt(Python3Parser.While_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitWhile_stmt(Python3Parser.While_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterFor_stmt(Python3Parser.For_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitFor_stmt(Python3Parser.For_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterBlock(Python3Parser.BlockContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitBlock(Python3Parser.BlockContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterComp_op(Python3Parser.Comp_opContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitComp_op(Python3Parser.Comp_opContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterExpr(Python3Parser.ExprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitExpr(Python3Parser.ExprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterAtom(Python3Parser.AtomContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitAtom(Python3Parser.AtomContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterTestlist_comp(Python3Parser.Testlist_compContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitTestlist_comp(Python3Parser.Testlist_compContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterTrailer(Python3Parser.TrailerContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitTrailer(Python3Parser.TrailerContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterExprlist(Python3Parser.ExprlistContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitExprlist(Python3Parser.ExprlistContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterArglist(Python3Parser.ArglistContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitArglist(Python3Parser.ArglistContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterArgument(Python3Parser.ArgumentContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitArgument(Python3Parser.ArgumentContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterComp_iter(Python3Parser.Comp_iterContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitComp_iter(Python3Parser.Comp_iterContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterComp_for(Python3Parser.Comp_forContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitComp_for(Python3Parser.Comp_forContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterComp_if(Python3Parser.Comp_ifContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitComp_if(Python3Parser.Comp_ifContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void enterEveryRule(ParserRuleContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void exitEveryRule(ParserRuleContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void visitTerminal(TerminalNode node) { }
- /**
- * {@inheritDoc}
- *
- * <p>The default implementation does nothing.</p>
- */
- @Override public void visitErrorNode(ErrorNode node) { }
-} \ No newline at end of file
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterRoot(Python3Parser.RootContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitRoot(Python3Parser.RootContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterSimple_stmts(Python3Parser.Simple_stmtsContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitSimple_stmts(Python3Parser.Simple_stmtsContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterCompound_stmt(Python3Parser.Compound_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitCompound_stmt(Python3Parser.Compound_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterSimple_stmt(Python3Parser.Simple_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitSimple_stmt(Python3Parser.Simple_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterAssignment(Python3Parser.AssignmentContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitAssignment(Python3Parser.AssignmentContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterReturn_stmt(Python3Parser.Return_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitReturn_stmt(Python3Parser.Return_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterImport_stm(Python3Parser.Import_stmContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitImport_stm(Python3Parser.Import_stmContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterDotted_name(Python3Parser.Dotted_nameContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitDotted_name(Python3Parser.Dotted_nameContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterFuncdef(Python3Parser.FuncdefContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitFuncdef(Python3Parser.FuncdefContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterParamlist(Python3Parser.ParamlistContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitParamlist(Python3Parser.ParamlistContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterParamdef(Python3Parser.ParamdefContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitParamdef(Python3Parser.ParamdefContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterAugassign(Python3Parser.AugassignContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitAugassign(Python3Parser.AugassignContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterIf_stmt(Python3Parser.If_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitIf_stmt(Python3Parser.If_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterWhile_stmt(Python3Parser.While_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitWhile_stmt(Python3Parser.While_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterFor_stmt(Python3Parser.For_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitFor_stmt(Python3Parser.For_stmtContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterBlock(Python3Parser.BlockContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitBlock(Python3Parser.BlockContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterComp_op(Python3Parser.Comp_opContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitComp_op(Python3Parser.Comp_opContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterExpr(Python3Parser.ExprContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitExpr(Python3Parser.ExprContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterAtom(Python3Parser.AtomContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitAtom(Python3Parser.AtomContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterTestlist_comp(Python3Parser.Testlist_compContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitTestlist_comp(Python3Parser.Testlist_compContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterTrailer(Python3Parser.TrailerContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitTrailer(Python3Parser.TrailerContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterExprlist(Python3Parser.ExprlistContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitExprlist(Python3Parser.ExprlistContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterArglist(Python3Parser.ArglistContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitArglist(Python3Parser.ArglistContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterArgument(Python3Parser.ArgumentContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitArgument(Python3Parser.ArgumentContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterComp_iter(Python3Parser.Comp_iterContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitComp_iter(Python3Parser.Comp_iterContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterComp_for(Python3Parser.Comp_forContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitComp_for(Python3Parser.Comp_forContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterComp_if(Python3Parser.Comp_ifContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitComp_if(Python3Parser.Comp_ifContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void enterEveryRule(ParserRuleContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void exitEveryRule(ParserRuleContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void visitTerminal(TerminalNode node) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * The default implementation does nothing.
+ */
+ @Override
+ public void visitErrorNode(ErrorNode node) {
+ }
+}