-
Notifications
You must be signed in to change notification settings - Fork 0
/
YAPLListener.py
318 lines (213 loc) · 8.93 KB
/
YAPLListener.py
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
# Generated from YAPL.g4 by ANTLR 4.13.1
from antlr4 import *
if "." in __name__:
from .YAPLParser import YAPLParser
else:
from YAPLParser import YAPLParser
# This class defines a complete listener for a parse tree produced by YAPLParser.
class YAPLListener(ParseTreeListener):
# Enter a parse tree produced by YAPLParser#start.
def enterStart(self, ctx:YAPLParser.StartContext):
pass
# Exit a parse tree produced by YAPLParser#start.
def exitStart(self, ctx:YAPLParser.StartContext):
pass
# Enter a parse tree produced by YAPLParser#defClass.
def enterDefClass(self, ctx:YAPLParser.DefClassContext):
pass
# Exit a parse tree produced by YAPLParser#defClass.
def exitDefClass(self, ctx:YAPLParser.DefClassContext):
pass
# Enter a parse tree produced by YAPLParser#defFunc.
def enterDefFunc(self, ctx:YAPLParser.DefFuncContext):
pass
# Exit a parse tree produced by YAPLParser#defFunc.
def exitDefFunc(self, ctx:YAPLParser.DefFuncContext):
pass
# Enter a parse tree produced by YAPLParser#defAssign.
def enterDefAssign(self, ctx:YAPLParser.DefAssignContext):
pass
# Exit a parse tree produced by YAPLParser#defAssign.
def exitDefAssign(self, ctx:YAPLParser.DefAssignContext):
pass
# Enter a parse tree produced by YAPLParser#formalAssign.
def enterFormalAssign(self, ctx:YAPLParser.FormalAssignContext):
pass
# Exit a parse tree produced by YAPLParser#formalAssign.
def exitFormalAssign(self, ctx:YAPLParser.FormalAssignContext):
pass
# Enter a parse tree produced by YAPLParser#minus.
def enterMinus(self, ctx:YAPLParser.MinusContext):
pass
# Exit a parse tree produced by YAPLParser#minus.
def exitMinus(self, ctx:YAPLParser.MinusContext):
pass
# Enter a parse tree produced by YAPLParser#parens.
def enterParens(self, ctx:YAPLParser.ParensContext):
pass
# Exit a parse tree produced by YAPLParser#parens.
def exitParens(self, ctx:YAPLParser.ParensContext):
pass
# Enter a parse tree produced by YAPLParser#string.
def enterString(self, ctx:YAPLParser.StringContext):
pass
# Exit a parse tree produced by YAPLParser#string.
def exitString(self, ctx:YAPLParser.StringContext):
pass
# Enter a parse tree produced by YAPLParser#isvoid.
def enterIsvoid(self, ctx:YAPLParser.IsvoidContext):
pass
# Exit a parse tree produced by YAPLParser#isvoid.
def exitIsvoid(self, ctx:YAPLParser.IsvoidContext):
pass
# Enter a parse tree produced by YAPLParser#while.
def enterWhile(self, ctx:YAPLParser.WhileContext):
pass
# Exit a parse tree produced by YAPLParser#while.
def exitWhile(self, ctx:YAPLParser.WhileContext):
pass
# Enter a parse tree produced by YAPLParser#div.
def enterDiv(self, ctx:YAPLParser.DivContext):
pass
# Exit a parse tree produced by YAPLParser#div.
def exitDiv(self, ctx:YAPLParser.DivContext):
pass
# Enter a parse tree produced by YAPLParser#neg.
def enterNeg(self, ctx:YAPLParser.NegContext):
pass
# Exit a parse tree produced by YAPLParser#neg.
def exitNeg(self, ctx:YAPLParser.NegContext):
pass
# Enter a parse tree produced by YAPLParser#negative.
def enterNegative(self, ctx:YAPLParser.NegativeContext):
pass
# Exit a parse tree produced by YAPLParser#negative.
def exitNegative(self, ctx:YAPLParser.NegativeContext):
pass
# Enter a parse tree produced by YAPLParser#times.
def enterTimes(self, ctx:YAPLParser.TimesContext):
pass
# Exit a parse tree produced by YAPLParser#times.
def exitTimes(self, ctx:YAPLParser.TimesContext):
pass
# Enter a parse tree produced by YAPLParser#and.
def enterAnd(self, ctx:YAPLParser.AndContext):
pass
# Exit a parse tree produced by YAPLParser#and.
def exitAnd(self, ctx:YAPLParser.AndContext):
pass
# Enter a parse tree produced by YAPLParser#lessThan.
def enterLessThan(self, ctx:YAPLParser.LessThanContext):
pass
# Exit a parse tree produced by YAPLParser#lessThan.
def exitLessThan(self, ctx:YAPLParser.LessThanContext):
pass
# Enter a parse tree produced by YAPLParser#block.
def enterBlock(self, ctx:YAPLParser.BlockContext):
pass
# Exit a parse tree produced by YAPLParser#block.
def exitBlock(self, ctx:YAPLParser.BlockContext):
pass
# Enter a parse tree produced by YAPLParser#id.
def enterId(self, ctx:YAPLParser.IdContext):
pass
# Exit a parse tree produced by YAPLParser#id.
def exitId(self, ctx:YAPLParser.IdContext):
pass
# Enter a parse tree produced by YAPLParser#if.
def enterIf(self, ctx:YAPLParser.IfContext):
pass
# Exit a parse tree produced by YAPLParser#if.
def exitIf(self, ctx:YAPLParser.IfContext):
pass
# Enter a parse tree produced by YAPLParser#greaterThan.
def enterGreaterThan(self, ctx:YAPLParser.GreaterThanContext):
pass
# Exit a parse tree produced by YAPLParser#greaterThan.
def exitGreaterThan(self, ctx:YAPLParser.GreaterThanContext):
pass
# Enter a parse tree produced by YAPLParser#new.
def enterNew(self, ctx:YAPLParser.NewContext):
pass
# Exit a parse tree produced by YAPLParser#new.
def exitNew(self, ctx:YAPLParser.NewContext):
pass
# Enter a parse tree produced by YAPLParser#or.
def enterOr(self, ctx:YAPLParser.OrContext):
pass
# Exit a parse tree produced by YAPLParser#or.
def exitOr(self, ctx:YAPLParser.OrContext):
pass
# Enter a parse tree produced by YAPLParser#assignment.
def enterAssignment(self, ctx:YAPLParser.AssignmentContext):
pass
# Exit a parse tree produced by YAPLParser#assignment.
def exitAssignment(self, ctx:YAPLParser.AssignmentContext):
pass
# Enter a parse tree produced by YAPLParser#dispatchImplicit.
def enterDispatchImplicit(self, ctx:YAPLParser.DispatchImplicitContext):
pass
# Exit a parse tree produced by YAPLParser#dispatchImplicit.
def exitDispatchImplicit(self, ctx:YAPLParser.DispatchImplicitContext):
pass
# Enter a parse tree produced by YAPLParser#int.
def enterInt(self, ctx:YAPLParser.IntContext):
pass
# Exit a parse tree produced by YAPLParser#int.
def exitInt(self, ctx:YAPLParser.IntContext):
pass
# Enter a parse tree produced by YAPLParser#plus.
def enterPlus(self, ctx:YAPLParser.PlusContext):
pass
# Exit a parse tree produced by YAPLParser#plus.
def exitPlus(self, ctx:YAPLParser.PlusContext):
pass
# Enter a parse tree produced by YAPLParser#dispatchAttribute.
def enterDispatchAttribute(self, ctx:YAPLParser.DispatchAttributeContext):
pass
# Exit a parse tree produced by YAPLParser#dispatchAttribute.
def exitDispatchAttribute(self, ctx:YAPLParser.DispatchAttributeContext):
pass
# Enter a parse tree produced by YAPLParser#greaterThanOrEqual.
def enterGreaterThanOrEqual(self, ctx:YAPLParser.GreaterThanOrEqualContext):
pass
# Exit a parse tree produced by YAPLParser#greaterThanOrEqual.
def exitGreaterThanOrEqual(self, ctx:YAPLParser.GreaterThanOrEqualContext):
pass
# Enter a parse tree produced by YAPLParser#equal.
def enterEqual(self, ctx:YAPLParser.EqualContext):
pass
# Exit a parse tree produced by YAPLParser#equal.
def exitEqual(self, ctx:YAPLParser.EqualContext):
pass
# Enter a parse tree produced by YAPLParser#boolean.
def enterBoolean(self, ctx:YAPLParser.BooleanContext):
pass
# Exit a parse tree produced by YAPLParser#boolean.
def exitBoolean(self, ctx:YAPLParser.BooleanContext):
pass
# Enter a parse tree produced by YAPLParser#letId.
def enterLetId(self, ctx:YAPLParser.LetIdContext):
pass
# Exit a parse tree produced by YAPLParser#letId.
def exitLetId(self, ctx:YAPLParser.LetIdContext):
pass
# Enter a parse tree produced by YAPLParser#lessThanOrEqual.
def enterLessThanOrEqual(self, ctx:YAPLParser.LessThanOrEqualContext):
pass
# Exit a parse tree produced by YAPLParser#lessThanOrEqual.
def exitLessThanOrEqual(self, ctx:YAPLParser.LessThanOrEqualContext):
pass
# Enter a parse tree produced by YAPLParser#self.
def enterSelf(self, ctx:YAPLParser.SelfContext):
pass
# Exit a parse tree produced by YAPLParser#self.
def exitSelf(self, ctx:YAPLParser.SelfContext):
pass
# Enter a parse tree produced by YAPLParser#dispatchExplicit.
def enterDispatchExplicit(self, ctx:YAPLParser.DispatchExplicitContext):
pass
# Exit a parse tree produced by YAPLParser#dispatchExplicit.
def exitDispatchExplicit(self, ctx:YAPLParser.DispatchExplicitContext):
pass
del YAPLParser