1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
# 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 listener for a parse tree produced by ANFParser.
class ANFListener(ParseTreeListener):
# Enter a parse tree produced by ANFParser#prog.
def enterProg(self, ctx:ANFParser.ProgContext):
pass
# Exit a parse tree produced by ANFParser#prog.
def exitProg(self, ctx:ANFParser.ProgContext):
pass
# Enter a parse tree produced by ANFParser#def.
def enterDef(self, ctx:ANFParser.DefContext):
pass
# Exit a parse tree produced by ANFParser#def.
def exitDef(self, ctx:ANFParser.DefContext):
pass
# Enter a parse tree produced by ANFParser#true.
def enterTrue(self, ctx:ANFParser.TrueContext):
pass
# Exit a parse tree produced by ANFParser#true.
def exitTrue(self, ctx:ANFParser.TrueContext):
pass
# Enter a parse tree produced by ANFParser#false.
def enterFalse(self, ctx:ANFParser.FalseContext):
pass
# Exit a parse tree produced by ANFParser#false.
def exitFalse(self, ctx:ANFParser.FalseContext):
pass
# Enter a parse tree produced by ANFParser#var.
def enterVar(self, ctx:ANFParser.VarContext):
pass
# Exit a parse tree produced by ANFParser#var.
def exitVar(self, ctx:ANFParser.VarContext):
pass
# Enter a parse tree produced by ANFParser#num.
def enterNum(self, ctx:ANFParser.NumContext):
pass
# Exit a parse tree produced by ANFParser#num.
def exitNum(self, ctx:ANFParser.NumContext):
pass
# Enter a parse tree produced by ANFParser#str.
def enterStr(self, ctx:ANFParser.StrContext):
pass
# Exit a parse tree produced by ANFParser#str.
def exitStr(self, ctx:ANFParser.StrContext):
pass
# Enter a parse tree produced by ANFParser#add.
def enterAdd(self, ctx:ANFParser.AddContext):
pass
# Exit a parse tree produced by ANFParser#add.
def exitAdd(self, ctx:ANFParser.AddContext):
pass
# Enter a parse tree produced by ANFParser#sub.
def enterSub(self, ctx:ANFParser.SubContext):
pass
# Exit a parse tree produced by ANFParser#sub.
def exitSub(self, ctx:ANFParser.SubContext):
pass
# Enter a parse tree produced by ANFParser#mul.
def enterMul(self, ctx:ANFParser.MulContext):
pass
# Exit a parse tree produced by ANFParser#mul.
def exitMul(self, ctx:ANFParser.MulContext):
pass
# Enter a parse tree produced by ANFParser#div.
def enterDiv(self, ctx:ANFParser.DivContext):
pass
# Exit a parse tree produced by ANFParser#div.
def exitDiv(self, ctx:ANFParser.DivContext):
pass
# Enter a parse tree produced by ANFParser#gt.
def enterGt(self, ctx:ANFParser.GtContext):
pass
# Exit a parse tree produced by ANFParser#gt.
def exitGt(self, ctx:ANFParser.GtContext):
pass
# Enter a parse tree produced by ANFParser#lt.
def enterLt(self, ctx:ANFParser.LtContext):
pass
# Exit a parse tree produced by ANFParser#lt.
def exitLt(self, ctx:ANFParser.LtContext):
pass
# Enter a parse tree produced by ANFParser#eq.
def enterEq(self, ctx:ANFParser.EqContext):
pass
# Exit a parse tree produced by ANFParser#eq.
def exitEq(self, ctx:ANFParser.EqContext):
pass
# Enter a parse tree produced by ANFParser#bsl.
def enterBsl(self, ctx:ANFParser.BslContext):
pass
# Exit a parse tree produced by ANFParser#bsl.
def exitBsl(self, ctx:ANFParser.BslContext):
pass
# Enter a parse tree produced by ANFParser#bsr.
def enterBsr(self, ctx:ANFParser.BsrContext):
pass
# Exit a parse tree produced by ANFParser#bsr.
def exitBsr(self, ctx:ANFParser.BsrContext):
pass
# Enter a parse tree produced by ANFParser#and.
def enterAnd(self, ctx:ANFParser.AndContext):
pass
# Exit a parse tree produced by ANFParser#and.
def exitAnd(self, ctx:ANFParser.AndContext):
pass
# Enter a parse tree produced by ANFParser#or.
def enterOr(self, ctx:ANFParser.OrContext):
pass
# Exit a parse tree produced by ANFParser#or.
def exitOr(self, ctx:ANFParser.OrContext):
pass
# Enter a parse tree produced by ANFParser#xor.
def enterXor(self, ctx:ANFParser.XorContext):
pass
# Exit a parse tree produced by ANFParser#xor.
def exitXor(self, ctx:ANFParser.XorContext):
pass
# Enter a parse tree produced by ANFParser#lam.
def enterLam(self, ctx:ANFParser.LamContext):
pass
# Exit a parse tree produced by ANFParser#lam.
def exitLam(self, ctx:ANFParser.LamContext):
pass
# Enter a parse tree produced by ANFParser#call.
def enterCall(self, ctx:ANFParser.CallContext):
pass
# Exit a parse tree produced by ANFParser#call.
def exitCall(self, ctx:ANFParser.CallContext):
pass
# Enter a parse tree produced by ANFParser#atom.
def enterAtom(self, ctx:ANFParser.AtomContext):
pass
# Exit a parse tree produced by ANFParser#atom.
def exitAtom(self, ctx:ANFParser.AtomContext):
pass
# Enter a parse tree produced by ANFParser#let.
def enterLet(self, ctx:ANFParser.LetContext):
pass
# Exit a parse tree produced by ANFParser#let.
def exitLet(self, ctx:ANFParser.LetContext):
pass
# Enter a parse tree produced by ANFParser#if.
def enterIf(self, ctx:ANFParser.IfContext):
pass
# Exit a parse tree produced by ANFParser#if.
def exitIf(self, ctx:ANFParser.IfContext):
pass
# Enter a parse tree produced by ANFParser#fc.
def enterFc(self, ctx:ANFParser.FcContext):
pass
# Exit a parse tree produced by ANFParser#fc.
def exitFc(self, ctx:ANFParser.FcContext):
pass
del ANFParser
|