ANFVisitor.py (3925B)
1 # Generated from /home/erik/PycharmProjects/pythonProject/grammar/ANF.g4 by ANTLR 4.13.1 2 from antlr4 import * 3 if "." in __name__: 4 from .ANFParser import ANFParser 5 else: 6 from ANFParser import ANFParser 7 8 # This class defines a complete generic visitor for a parse tree produced by ANFParser. 9 10 class ANFVisitor(ParseTreeVisitor): 11 12 # Visit a parse tree produced by ANFParser#prog. 13 def visitProg(self, ctx:ANFParser.ProgContext): 14 return self.visitChildren(ctx) 15 16 17 # Visit a parse tree produced by ANFParser#def. 18 def visitDef(self, ctx:ANFParser.DefContext): 19 return self.visitChildren(ctx) 20 21 22 # Visit a parse tree produced by ANFParser#true. 23 def visitTrue(self, ctx:ANFParser.TrueContext): 24 return self.visitChildren(ctx) 25 26 27 # Visit a parse tree produced by ANFParser#false. 28 def visitFalse(self, ctx:ANFParser.FalseContext): 29 return self.visitChildren(ctx) 30 31 32 # Visit a parse tree produced by ANFParser#var. 33 def visitVar(self, ctx:ANFParser.VarContext): 34 return self.visitChildren(ctx) 35 36 37 # Visit a parse tree produced by ANFParser#num. 38 def visitNum(self, ctx:ANFParser.NumContext): 39 return self.visitChildren(ctx) 40 41 42 # Visit a parse tree produced by ANFParser#str. 43 def visitStr(self, ctx:ANFParser.StrContext): 44 return self.visitChildren(ctx) 45 46 47 # Visit a parse tree produced by ANFParser#add. 48 def visitAdd(self, ctx:ANFParser.AddContext): 49 return self.visitChildren(ctx) 50 51 52 # Visit a parse tree produced by ANFParser#sub. 53 def visitSub(self, ctx:ANFParser.SubContext): 54 return self.visitChildren(ctx) 55 56 57 # Visit a parse tree produced by ANFParser#mul. 58 def visitMul(self, ctx:ANFParser.MulContext): 59 return self.visitChildren(ctx) 60 61 62 # Visit a parse tree produced by ANFParser#div. 63 def visitDiv(self, ctx:ANFParser.DivContext): 64 return self.visitChildren(ctx) 65 66 67 # Visit a parse tree produced by ANFParser#gt. 68 def visitGt(self, ctx:ANFParser.GtContext): 69 return self.visitChildren(ctx) 70 71 72 # Visit a parse tree produced by ANFParser#lt. 73 def visitLt(self, ctx:ANFParser.LtContext): 74 return self.visitChildren(ctx) 75 76 77 # Visit a parse tree produced by ANFParser#eq. 78 def visitEq(self, ctx:ANFParser.EqContext): 79 return self.visitChildren(ctx) 80 81 82 # Visit a parse tree produced by ANFParser#bsl. 83 def visitBsl(self, ctx:ANFParser.BslContext): 84 return self.visitChildren(ctx) 85 86 87 # Visit a parse tree produced by ANFParser#bsr. 88 def visitBsr(self, ctx:ANFParser.BsrContext): 89 return self.visitChildren(ctx) 90 91 92 # Visit a parse tree produced by ANFParser#and. 93 def visitAnd(self, ctx:ANFParser.AndContext): 94 return self.visitChildren(ctx) 95 96 97 # Visit a parse tree produced by ANFParser#or. 98 def visitOr(self, ctx:ANFParser.OrContext): 99 return self.visitChildren(ctx) 100 101 102 # Visit a parse tree produced by ANFParser#xor. 103 def visitXor(self, ctx:ANFParser.XorContext): 104 return self.visitChildren(ctx) 105 106 107 # Visit a parse tree produced by ANFParser#lam. 108 def visitLam(self, ctx:ANFParser.LamContext): 109 return self.visitChildren(ctx) 110 111 112 # Visit a parse tree produced by ANFParser#call. 113 def visitCall(self, ctx:ANFParser.CallContext): 114 return self.visitChildren(ctx) 115 116 117 # Visit a parse tree produced by ANFParser#atom. 118 def visitAtom(self, ctx:ANFParser.AtomContext): 119 return self.visitChildren(ctx) 120 121 122 # Visit a parse tree produced by ANFParser#let. 123 def visitLet(self, ctx:ANFParser.LetContext): 124 return self.visitChildren(ctx) 125 126 127 # Visit a parse tree produced by ANFParser#if. 128 def visitIf(self, ctx:ANFParser.IfContext): 129 return self.visitChildren(ctx) 130 131 132 # Visit a parse tree produced by ANFParser#fc. 133 def visitFc(self, ctx:ANFParser.FcContext): 134 return self.visitChildren(ctx) 135 136 137 138 del ANFParser