-
Notifications
You must be signed in to change notification settings - Fork 0
/
decafAlejandroListener.py
300 lines (201 loc) · 10.4 KB
/
decafAlejandroListener.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
# Generated from decafAlejandro.g4 by ANTLR 4.9.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .decafAlejandroParser import decafAlejandroParser
else:
from decafAlejandroParser import decafAlejandroParser
# This class defines a complete listener for a parse tree produced by decafAlejandroParser.
class decafAlejandroListener(ParseTreeListener):
# Enter a parse tree produced by decafAlejandroParser#program.
def enterProgram(self, ctx:decafAlejandroParser.ProgramContext):
pass
# Exit a parse tree produced by decafAlejandroParser#program.
def exitProgram(self, ctx:decafAlejandroParser.ProgramContext):
pass
# Enter a parse tree produced by decafAlejandroParser#declaration.
def enterDeclaration(self, ctx:decafAlejandroParser.DeclarationContext):
pass
# Exit a parse tree produced by decafAlejandroParser#declaration.
def exitDeclaration(self, ctx:decafAlejandroParser.DeclarationContext):
pass
# Enter a parse tree produced by decafAlejandroParser#vardeclr.
def enterVardeclr(self, ctx:decafAlejandroParser.VardeclrContext):
pass
# Exit a parse tree produced by decafAlejandroParser#vardeclr.
def exitVardeclr(self, ctx:decafAlejandroParser.VardeclrContext):
pass
# Enter a parse tree produced by decafAlejandroParser#field_declr.
def enterField_declr(self, ctx:decafAlejandroParser.Field_declrContext):
pass
# Exit a parse tree produced by decafAlejandroParser#field_declr.
def exitField_declr(self, ctx:decafAlejandroParser.Field_declrContext):
pass
# Enter a parse tree produced by decafAlejandroParser#array_id.
def enterArray_id(self, ctx:decafAlejandroParser.Array_idContext):
pass
# Exit a parse tree produced by decafAlejandroParser#array_id.
def exitArray_id(self, ctx:decafAlejandroParser.Array_idContext):
pass
# Enter a parse tree produced by decafAlejandroParser#field_var.
def enterField_var(self, ctx:decafAlejandroParser.Field_varContext):
pass
# Exit a parse tree produced by decafAlejandroParser#field_var.
def exitField_var(self, ctx:decafAlejandroParser.Field_varContext):
pass
# Enter a parse tree produced by decafAlejandroParser#var_id.
def enterVar_id(self, ctx:decafAlejandroParser.Var_idContext):
pass
# Exit a parse tree produced by decafAlejandroParser#var_id.
def exitVar_id(self, ctx:decafAlejandroParser.Var_idContext):
pass
# Enter a parse tree produced by decafAlejandroParser#struct_declr.
def enterStruct_declr(self, ctx:decafAlejandroParser.Struct_declrContext):
pass
# Exit a parse tree produced by decafAlejandroParser#struct_declr.
def exitStruct_declr(self, ctx:decafAlejandroParser.Struct_declrContext):
pass
# Enter a parse tree produced by decafAlejandroParser#method_declr.
def enterMethod_declr(self, ctx:decafAlejandroParser.Method_declrContext):
pass
# Exit a parse tree produced by decafAlejandroParser#method_declr.
def exitMethod_declr(self, ctx:decafAlejandroParser.Method_declrContext):
pass
# Enter a parse tree produced by decafAlejandroParser#return_type.
def enterReturn_type(self, ctx:decafAlejandroParser.Return_typeContext):
pass
# Exit a parse tree produced by decafAlejandroParser#return_type.
def exitReturn_type(self, ctx:decafAlejandroParser.Return_typeContext):
pass
# Enter a parse tree produced by decafAlejandroParser#block.
def enterBlock(self, ctx:decafAlejandroParser.BlockContext):
pass
# Exit a parse tree produced by decafAlejandroParser#block.
def exitBlock(self, ctx:decafAlejandroParser.BlockContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_assign.
def enterStatement_assign(self, ctx:decafAlejandroParser.Statement_assignContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_assign.
def exitStatement_assign(self, ctx:decafAlejandroParser.Statement_assignContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_methodcall.
def enterStatement_methodcall(self, ctx:decafAlejandroParser.Statement_methodcallContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_methodcall.
def exitStatement_methodcall(self, ctx:decafAlejandroParser.Statement_methodcallContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_if.
def enterStatement_if(self, ctx:decafAlejandroParser.Statement_ifContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_if.
def exitStatement_if(self, ctx:decafAlejandroParser.Statement_ifContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_while.
def enterStatement_while(self, ctx:decafAlejandroParser.Statement_whileContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_while.
def exitStatement_while(self, ctx:decafAlejandroParser.Statement_whileContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_return.
def enterStatement_return(self, ctx:decafAlejandroParser.Statement_returnContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_return.
def exitStatement_return(self, ctx:decafAlejandroParser.Statement_returnContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_for.
def enterStatement_for(self, ctx:decafAlejandroParser.Statement_forContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_for.
def exitStatement_for(self, ctx:decafAlejandroParser.Statement_forContext):
pass
# Enter a parse tree produced by decafAlejandroParser#statement_break.
def enterStatement_break(self, ctx:decafAlejandroParser.Statement_breakContext):
pass
# Exit a parse tree produced by decafAlejandroParser#statement_break.
def exitStatement_break(self, ctx:decafAlejandroParser.Statement_breakContext):
pass
# Enter a parse tree produced by decafAlejandroParser#method_call.
def enterMethod_call(self, ctx:decafAlejandroParser.Method_callContext):
pass
# Exit a parse tree produced by decafAlejandroParser#method_call.
def exitMethod_call(self, ctx:decafAlejandroParser.Method_callContext):
pass
# Enter a parse tree produced by decafAlejandroParser#expr.
def enterExpr(self, ctx:decafAlejandroParser.ExprContext):
pass
# Exit a parse tree produced by decafAlejandroParser#expr.
def exitExpr(self, ctx:decafAlejandroParser.ExprContext):
pass
# Enter a parse tree produced by decafAlejandroParser#location.
def enterLocation(self, ctx:decafAlejandroParser.LocationContext):
pass
# Exit a parse tree produced by decafAlejandroParser#location.
def exitLocation(self, ctx:decafAlejandroParser.LocationContext):
pass
# Enter a parse tree produced by decafAlejandroParser#int_literal.
def enterInt_literal(self, ctx:decafAlejandroParser.Int_literalContext):
pass
# Exit a parse tree produced by decafAlejandroParser#int_literal.
def exitInt_literal(self, ctx:decafAlejandroParser.Int_literalContext):
pass
# Enter a parse tree produced by decafAlejandroParser#string_literal.
def enterString_literal(self, ctx:decafAlejandroParser.String_literalContext):
pass
# Exit a parse tree produced by decafAlejandroParser#string_literal.
def exitString_literal(self, ctx:decafAlejandroParser.String_literalContext):
pass
# Enter a parse tree produced by decafAlejandroParser#bool_literal.
def enterBool_literal(self, ctx:decafAlejandroParser.Bool_literalContext):
pass
# Exit a parse tree produced by decafAlejandroParser#bool_literal.
def exitBool_literal(self, ctx:decafAlejandroParser.Bool_literalContext):
pass
# Enter a parse tree produced by decafAlejandroParser#rel_op.
def enterRel_op(self, ctx:decafAlejandroParser.Rel_opContext):
pass
# Exit a parse tree produced by decafAlejandroParser#rel_op.
def exitRel_op(self, ctx:decafAlejandroParser.Rel_opContext):
pass
# Enter a parse tree produced by decafAlejandroParser#eq_op.
def enterEq_op(self, ctx:decafAlejandroParser.Eq_opContext):
pass
# Exit a parse tree produced by decafAlejandroParser#eq_op.
def exitEq_op(self, ctx:decafAlejandroParser.Eq_opContext):
pass
# Enter a parse tree produced by decafAlejandroParser#cond_op.
def enterCond_op(self, ctx:decafAlejandroParser.Cond_opContext):
pass
# Exit a parse tree produced by decafAlejandroParser#cond_op.
def exitCond_op(self, ctx:decafAlejandroParser.Cond_opContext):
pass
# Enter a parse tree produced by decafAlejandroParser#literal.
def enterLiteral(self, ctx:decafAlejandroParser.LiteralContext):
pass
# Exit a parse tree produced by decafAlejandroParser#literal.
def exitLiteral(self, ctx:decafAlejandroParser.LiteralContext):
pass
# Enter a parse tree produced by decafAlejandroParser#arith_op.
def enterArith_op(self, ctx:decafAlejandroParser.Arith_opContext):
pass
# Exit a parse tree produced by decafAlejandroParser#arith_op.
def exitArith_op(self, ctx:decafAlejandroParser.Arith_opContext):
pass
# Enter a parse tree produced by decafAlejandroParser#var_type.
def enterVar_type(self, ctx:decafAlejandroParser.Var_typeContext):
pass
# Exit a parse tree produced by decafAlejandroParser#var_type.
def exitVar_type(self, ctx:decafAlejandroParser.Var_typeContext):
pass
# Enter a parse tree produced by decafAlejandroParser#assign_op.
def enterAssign_op(self, ctx:decafAlejandroParser.Assign_opContext):
pass
# Exit a parse tree produced by decafAlejandroParser#assign_op.
def exitAssign_op(self, ctx:decafAlejandroParser.Assign_opContext):
pass
# Enter a parse tree produced by decafAlejandroParser#method_name.
def enterMethod_name(self, ctx:decafAlejandroParser.Method_nameContext):
pass
# Exit a parse tree produced by decafAlejandroParser#method_name.
def exitMethod_name(self, ctx:decafAlejandroParser.Method_nameContext):
pass
del decafAlejandroParser