-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtinyPythonListener.java
More file actions
240 lines (238 loc) · 7.93 KB
/
Copy pathtinyPythonListener.java
File metadata and controls
240 lines (238 loc) · 7.93 KB
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
// Generated from /Users/songminju/Desktop/compilerAct/TermProject/tinyPython.g4 by ANTLR 4.13.1
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link tinyPythonParser}.
*/
public interface tinyPythonListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link tinyPythonParser#program}.
* @param ctx the parse tree
*/
void enterProgram(tinyPythonParser.ProgramContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#program}.
* @param ctx the parse tree
*/
void exitProgram(tinyPythonParser.ProgramContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#file_input}.
* @param ctx the parse tree
*/
void enterFile_input(tinyPythonParser.File_inputContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#file_input}.
* @param ctx the parse tree
*/
void exitFile_input(tinyPythonParser.File_inputContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#defs}.
* @param ctx the parse tree
*/
void enterDefs(tinyPythonParser.DefsContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#defs}.
* @param ctx the parse tree
*/
void exitDefs(tinyPythonParser.DefsContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#stmt}.
* @param ctx the parse tree
*/
void enterStmt(tinyPythonParser.StmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#stmt}.
* @param ctx the parse tree
*/
void exitStmt(tinyPythonParser.StmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#simple_stmt}.
* @param ctx the parse tree
*/
void enterSimple_stmt(tinyPythonParser.Simple_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#simple_stmt}.
* @param ctx the parse tree
*/
void exitSimple_stmt(tinyPythonParser.Simple_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#small_stmt}.
* @param ctx the parse tree
*/
void enterSmall_stmt(tinyPythonParser.Small_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#small_stmt}.
* @param ctx the parse tree
*/
void exitSmall_stmt(tinyPythonParser.Small_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#assignment_stmt}.
* @param ctx the parse tree
*/
void enterAssignment_stmt(tinyPythonParser.Assignment_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#assignment_stmt}.
* @param ctx the parse tree
*/
void exitAssignment_stmt(tinyPythonParser.Assignment_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#flow_stmt}.
* @param ctx the parse tree
*/
void enterFlow_stmt(tinyPythonParser.Flow_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#flow_stmt}.
* @param ctx the parse tree
*/
void exitFlow_stmt(tinyPythonParser.Flow_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#break_stmt}.
* @param ctx the parse tree
*/
void enterBreak_stmt(tinyPythonParser.Break_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#break_stmt}.
* @param ctx the parse tree
*/
void exitBreak_stmt(tinyPythonParser.Break_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#continue_stmt}.
* @param ctx the parse tree
*/
void enterContinue_stmt(tinyPythonParser.Continue_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#continue_stmt}.
* @param ctx the parse tree
*/
void exitContinue_stmt(tinyPythonParser.Continue_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#compound_stmt}.
* @param ctx the parse tree
*/
void enterCompound_stmt(tinyPythonParser.Compound_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#compound_stmt}.
* @param ctx the parse tree
*/
void exitCompound_stmt(tinyPythonParser.Compound_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#if_stmt}.
* @param ctx the parse tree
*/
void enterIf_stmt(tinyPythonParser.If_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#if_stmt}.
* @param ctx the parse tree
*/
void exitIf_stmt(tinyPythonParser.If_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#while_stmt}.
* @param ctx the parse tree
*/
void enterWhile_stmt(tinyPythonParser.While_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#while_stmt}.
* @param ctx the parse tree
*/
void exitWhile_stmt(tinyPythonParser.While_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#def_stmt}.
* @param ctx the parse tree
*/
void enterDef_stmt(tinyPythonParser.Def_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#def_stmt}.
* @param ctx the parse tree
*/
void exitDef_stmt(tinyPythonParser.Def_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#suite}.
* @param ctx the parse tree
*/
void enterSuite(tinyPythonParser.SuiteContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#suite}.
* @param ctx the parse tree
*/
void exitSuite(tinyPythonParser.SuiteContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#args}.
* @param ctx the parse tree
*/
void enterArgs(tinyPythonParser.ArgsContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#args}.
* @param ctx the parse tree
*/
void exitArgs(tinyPythonParser.ArgsContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#return_stmt}.
* @param ctx the parse tree
*/
void enterReturn_stmt(tinyPythonParser.Return_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#return_stmt}.
* @param ctx the parse tree
*/
void exitReturn_stmt(tinyPythonParser.Return_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#test}.
* @param ctx the parse tree
*/
void enterTest(tinyPythonParser.TestContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#test}.
* @param ctx the parse tree
*/
void exitTest(tinyPythonParser.TestContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#print_stmt}.
* @param ctx the parse tree
*/
void enterPrint_stmt(tinyPythonParser.Print_stmtContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#print_stmt}.
* @param ctx the parse tree
*/
void exitPrint_stmt(tinyPythonParser.Print_stmtContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#print_arg}.
* @param ctx the parse tree
*/
void enterPrint_arg(tinyPythonParser.Print_argContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#print_arg}.
* @param ctx the parse tree
*/
void exitPrint_arg(tinyPythonParser.Print_argContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#comp_op}.
* @param ctx the parse tree
*/
void enterComp_op(tinyPythonParser.Comp_opContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#comp_op}.
* @param ctx the parse tree
*/
void exitComp_op(tinyPythonParser.Comp_opContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#expr}.
* @param ctx the parse tree
*/
void enterExpr(tinyPythonParser.ExprContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#expr}.
* @param ctx the parse tree
*/
void exitExpr(tinyPythonParser.ExprContext ctx);
/**
* Enter a parse tree produced by {@link tinyPythonParser#opt_paren}.
* @param ctx the parse tree
*/
void enterOpt_paren(tinyPythonParser.Opt_parenContext ctx);
/**
* Exit a parse tree produced by {@link tinyPythonParser#opt_paren}.
* @param ctx the parse tree
*/
void exitOpt_paren(tinyPythonParser.Opt_parenContext ctx);
}