forked from wysang/Whitespace-Compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhitespaceListener.java
299 lines (298 loc) · 9.23 KB
/
whitespaceListener.java
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
// Generated from whitespace.g4 by ANTLR 4.5.2
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link whitespaceParser}.
*/
public interface whitespaceListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link whitespaceParser#file}.
* @param ctx the parse tree
*/
void enterFile(whitespaceParser.FileContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#file}.
* @param ctx the parse tree
*/
void exitFile(whitespaceParser.FileContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#func}.
* @param ctx the parse tree
*/
void enterFunc(whitespaceParser.FuncContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#func}.
* @param ctx the parse tree
*/
void exitFunc(whitespaceParser.FuncContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#push}.
* @param ctx the parse tree
*/
void enterPush(whitespaceParser.PushContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#push}.
* @param ctx the parse tree
*/
void exitPush(whitespaceParser.PushContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#copy}.
* @param ctx the parse tree
*/
void enterCopy(whitespaceParser.CopyContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#copy}.
* @param ctx the parse tree
*/
void exitCopy(whitespaceParser.CopyContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#pop}.
* @param ctx the parse tree
*/
void enterPop(whitespaceParser.PopContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#pop}.
* @param ctx the parse tree
*/
void exitPop(whitespaceParser.PopContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#copynth}.
* @param ctx the parse tree
*/
void enterCopynth(whitespaceParser.CopynthContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#copynth}.
* @param ctx the parse tree
*/
void exitCopynth(whitespaceParser.CopynthContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#swicth}.
* @param ctx the parse tree
*/
void enterSwicth(whitespaceParser.SwicthContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#swicth}.
* @param ctx the parse tree
*/
void exitSwicth(whitespaceParser.SwicthContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#slide}.
* @param ctx the parse tree
*/
void enterSlide(whitespaceParser.SlideContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#slide}.
* @param ctx the parse tree
*/
void exitSlide(whitespaceParser.SlideContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#add}.
* @param ctx the parse tree
*/
void enterAdd(whitespaceParser.AddContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#add}.
* @param ctx the parse tree
*/
void exitAdd(whitespaceParser.AddContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#sub}.
* @param ctx the parse tree
*/
void enterSub(whitespaceParser.SubContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#sub}.
* @param ctx the parse tree
*/
void exitSub(whitespaceParser.SubContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#mult}.
* @param ctx the parse tree
*/
void enterMult(whitespaceParser.MultContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#mult}.
* @param ctx the parse tree
*/
void exitMult(whitespaceParser.MultContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#div}.
* @param ctx the parse tree
*/
void enterDiv(whitespaceParser.DivContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#div}.
* @param ctx the parse tree
*/
void exitDiv(whitespaceParser.DivContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#mod}.
* @param ctx the parse tree
*/
void enterMod(whitespaceParser.ModContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#mod}.
* @param ctx the parse tree
*/
void exitMod(whitespaceParser.ModContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#mark}.
* @param ctx the parse tree
*/
void enterMark(whitespaceParser.MarkContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#mark}.
* @param ctx the parse tree
*/
void exitMark(whitespaceParser.MarkContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#call}.
* @param ctx the parse tree
*/
void enterCall(whitespaceParser.CallContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#call}.
* @param ctx the parse tree
*/
void exitCall(whitespaceParser.CallContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#jump}.
* @param ctx the parse tree
*/
void enterJump(whitespaceParser.JumpContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#jump}.
* @param ctx the parse tree
*/
void exitJump(whitespaceParser.JumpContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#jumpz}.
* @param ctx the parse tree
*/
void enterJumpz(whitespaceParser.JumpzContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#jumpz}.
* @param ctx the parse tree
*/
void exitJumpz(whitespaceParser.JumpzContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#jumpn}.
* @param ctx the parse tree
*/
void enterJumpn(whitespaceParser.JumpnContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#jumpn}.
* @param ctx the parse tree
*/
void exitJumpn(whitespaceParser.JumpnContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#ends}.
* @param ctx the parse tree
*/
void enterEnds(whitespaceParser.EndsContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#ends}.
* @param ctx the parse tree
*/
void exitEnds(whitespaceParser.EndsContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#endp}.
* @param ctx the parse tree
*/
void enterEndp(whitespaceParser.EndpContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#endp}.
* @param ctx the parse tree
*/
void exitEndp(whitespaceParser.EndpContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#outchar}.
* @param ctx the parse tree
*/
void enterOutchar(whitespaceParser.OutcharContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#outchar}.
* @param ctx the parse tree
*/
void exitOutchar(whitespaceParser.OutcharContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#outnum}.
* @param ctx the parse tree
*/
void enterOutnum(whitespaceParser.OutnumContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#outnum}.
* @param ctx the parse tree
*/
void exitOutnum(whitespaceParser.OutnumContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#readchar}.
* @param ctx the parse tree
*/
void enterReadchar(whitespaceParser.ReadcharContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#readchar}.
* @param ctx the parse tree
*/
void exitReadchar(whitespaceParser.ReadcharContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#readnum}.
* @param ctx the parse tree
*/
void enterReadnum(whitespaceParser.ReadnumContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#readnum}.
* @param ctx the parse tree
*/
void exitReadnum(whitespaceParser.ReadnumContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#stack}.
* @param ctx the parse tree
*/
void enterStack(whitespaceParser.StackContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#stack}.
* @param ctx the parse tree
*/
void exitStack(whitespaceParser.StackContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#arithm}.
* @param ctx the parse tree
*/
void enterArithm(whitespaceParser.ArithmContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#arithm}.
* @param ctx the parse tree
*/
void exitArithm(whitespaceParser.ArithmContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#flow}.
* @param ctx the parse tree
*/
void enterFlow(whitespaceParser.FlowContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#flow}.
* @param ctx the parse tree
*/
void exitFlow(whitespaceParser.FlowContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#io}.
* @param ctx the parse tree
*/
void enterIo(whitespaceParser.IoContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#io}.
* @param ctx the parse tree
*/
void exitIo(whitespaceParser.IoContext ctx);
/**
* Enter a parse tree produced by {@link whitespaceParser#parameter}.
* @param ctx the parse tree
*/
void enterParameter(whitespaceParser.ParameterContext ctx);
/**
* Exit a parse tree produced by {@link whitespaceParser#parameter}.
* @param ctx the parse tree
*/
void exitParameter(whitespaceParser.ParameterContext ctx);
}