diff options
author | Erik Oosting | 2023-12-11 15:25:24 +0100 |
---|---|---|
committer | Erik Oosting | 2023-12-11 15:25:24 +0100 |
commit | 0e96e69659c7c31927b7eee5c40d017b035a6471 (patch) | |
tree | 8d037de425102e8ba6ebf0921aa7f58bacab1976 /gen/ANFVisitor.py |
Initial commit
Adding grammar
Diffstat (limited to 'gen/ANFVisitor.py')
-rw-r--r-- | gen/ANFVisitor.py | 28 |
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 |