diff options
author | Erik Oosting | 2023-12-12 16:24:03 +0100 |
---|---|---|
committer | Erik Oosting | 2023-12-12 16:24:03 +0100 |
commit | 258121cfb53b6b002dd0d2f68b91ce5234011620 (patch) | |
tree | b81b6435096a4088d4f110c089206be7ff3a0633 /gen/ANFVisitor.py | |
parent | d9ffc2f3f679bf6e87cf12dc1ed9809badf673da (diff) |
first visit method done
Diffstat (limited to 'gen/ANFVisitor.py')
-rw-r--r-- | gen/ANFVisitor.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gen/ANFVisitor.py b/gen/ANFVisitor.py index 9d48f29..6c6c6a4 100644 --- a/gen/ANFVisitor.py +++ b/gen/ANFVisitor.py @@ -9,6 +9,16 @@ else: class ANFVisitor(ParseTreeVisitor): + # Visit a parse tree produced by ANFParser#prog. + def visitProg(self, ctx:ANFParser.ProgContext): + return self.visitChildren(ctx) + + + # Visit a parse tree produced by ANFParser#def. + def visitDef(self, ctx:ANFParser.DefContext): + return self.visitChildren(ctx) + + # Visit a parse tree produced by ANFParser#true. def visitTrue(self, ctx:ANFParser.TrueContext): return self.visitChildren(ctx) @@ -29,6 +39,11 @@ class ANFVisitor(ParseTreeVisitor): return self.visitChildren(ctx) + # Visit a parse tree produced by ANFParser#str. + def visitStr(self, ctx:ANFParser.StrContext): + return self.visitChildren(ctx) + + # Visit a parse tree produced by ANFParser#add. def visitAdd(self, ctx:ANFParser.AddContext): return self.visitChildren(ctx) |