summary refs log tree commit diff
path: root/gen/ANFVisitor.py
diff options
context:
space:
mode:
authorErik Oosting2023-12-11 15:25:24 +0100
committerErik Oosting2023-12-11 15:25:24 +0100
commit0e96e69659c7c31927b7eee5c40d017b035a6471 (patch)
tree8d037de425102e8ba6ebf0921aa7f58bacab1976 /gen/ANFVisitor.py
Initial commit
Adding grammar
Diffstat (limited to 'gen/ANFVisitor.py')
-rw-r--r--gen/ANFVisitor.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/gen/ANFVisitor.py b/gen/ANFVisitor.py
new file mode 100644
index 0000000..982fa58
--- /dev/null
+++ b/gen/ANFVisitor.py
@@ -0,0 +1,28 @@
+# Generated from /home/erik/PycharmProjects/pythonProject/grammar/ANF.g4 by ANTLR 4.13.1
+from antlr4 import *
+if "." in __name__:
+    from .ANFParser import ANFParser
+else:
+    from ANFParser import ANFParser
+
+# This class defines a complete generic visitor for a parse tree produced by ANFParser.
+
+class ANFVisitor(ParseTreeVisitor):
+
+    # Visit a parse tree produced by ANFParser#aexp.
+    def visitAexp(self, ctx:ANFParser.AexpContext):
+        return self.visitChildren(ctx)
+
+
+    # Visit a parse tree produced by ANFParser#funcall.
+    def visitFuncall(self, ctx:ANFParser.FuncallContext):
+        return self.visitChildren(ctx)
+
+
+    # Visit a parse tree produced by ANFParser#cexp.
+    def visitCexp(self, ctx:ANFParser.CexpContext):
+        return self.visitChildren(ctx)
+
+
+
+del ANFParser
\ No newline at end of file