From 258121cfb53b6b002dd0d2f68b91ce5234011620 Mon Sep 17 00:00:00 2001 From: Erik Oosting Date: Tue, 12 Dec 2023 16:24:03 +0100 Subject: first visit method done --- gen/ANFVisitor.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gen/ANFVisitor.py') 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) -- cgit 1.4.1-2-gfad0