-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpa2Listener.java
289 lines (288 loc) · 9.01 KB
/
pa2Listener.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
// Generated from pa2.g4 by ANTLR 4.7.1
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link pa2Parser}.
*/
public interface pa2Listener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link pa2Parser#integer}.
* @param ctx the parse tree
*/
void enterInteger(pa2Parser.IntegerContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#integer}.
* @param ctx the parse tree
*/
void exitInteger(pa2Parser.IntegerContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#type}.
* @param ctx the parse tree
*/
void enterType(pa2Parser.TypeContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#type}.
* @param ctx the parse tree
*/
void exitType(pa2Parser.TypeContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#typedAttributeList}.
* @param ctx the parse tree
*/
void enterTypedAttributeList(pa2Parser.TypedAttributeListContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#typedAttributeList}.
* @param ctx the parse tree
*/
void exitTypedAttributeList(pa2Parser.TypedAttributeListContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#operand}.
* @param ctx the parse tree
*/
void enterOperand(pa2Parser.OperandContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#operand}.
* @param ctx the parse tree
*/
void exitOperand(pa2Parser.OperandContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#attributeList}.
* @param ctx the parse tree
*/
void enterAttributeList(pa2Parser.AttributeListContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#attributeList}.
* @param ctx the parse tree
*/
void exitAttributeList(pa2Parser.AttributeListContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#openCMD}.
* @param ctx the parse tree
*/
void enterOpenCMD(pa2Parser.OpenCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#openCMD}.
* @param ctx the parse tree
*/
void exitOpenCMD(pa2Parser.OpenCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#closeCMD}.
* @param ctx the parse tree
*/
void enterCloseCMD(pa2Parser.CloseCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#closeCMD}.
* @param ctx the parse tree
*/
void exitCloseCMD(pa2Parser.CloseCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#showCMD}.
* @param ctx the parse tree
*/
void enterShowCMD(pa2Parser.ShowCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#showCMD}.
* @param ctx the parse tree
*/
void exitShowCMD(pa2Parser.ShowCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#writeCMD}.
* @param ctx the parse tree
*/
void enterWriteCMD(pa2Parser.WriteCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#writeCMD}.
* @param ctx the parse tree
*/
void exitWriteCMD(pa2Parser.WriteCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#deleteCMD}.
* @param ctx the parse tree
*/
void enterDeleteCMD(pa2Parser.DeleteCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#deleteCMD}.
* @param ctx the parse tree
*/
void exitDeleteCMD(pa2Parser.DeleteCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#exitCMD}.
* @param ctx the parse tree
*/
void enterExitCMD(pa2Parser.ExitCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#exitCMD}.
* @param ctx the parse tree
*/
void exitExitCMD(pa2Parser.ExitCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#condition}.
* @param ctx the parse tree
*/
void enterCondition(pa2Parser.ConditionContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#condition}.
* @param ctx the parse tree
*/
void exitCondition(pa2Parser.ConditionContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#conjunction}.
* @param ctx the parse tree
*/
void enterConjunction(pa2Parser.ConjunctionContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#conjunction}.
* @param ctx the parse tree
*/
void exitConjunction(pa2Parser.ConjunctionContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#comparison}.
* @param ctx the parse tree
*/
void enterComparison(pa2Parser.ComparisonContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#comparison}.
* @param ctx the parse tree
*/
void exitComparison(pa2Parser.ComparisonContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#selection}.
* @param ctx the parse tree
*/
void enterSelection(pa2Parser.SelectionContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#selection}.
* @param ctx the parse tree
*/
void exitSelection(pa2Parser.SelectionContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#projection}.
* @param ctx the parse tree
*/
void enterProjection(pa2Parser.ProjectionContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#projection}.
* @param ctx the parse tree
*/
void exitProjection(pa2Parser.ProjectionContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#atomicExpr}.
* @param ctx the parse tree
*/
void enterAtomicExpr(pa2Parser.AtomicExprContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#atomicExpr}.
* @param ctx the parse tree
*/
void exitAtomicExpr(pa2Parser.AtomicExprContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#renaming}.
* @param ctx the parse tree
*/
void enterRenaming(pa2Parser.RenamingContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#renaming}.
* @param ctx the parse tree
*/
void exitRenaming(pa2Parser.RenamingContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#union}.
* @param ctx the parse tree
*/
void enterUnion(pa2Parser.UnionContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#union}.
* @param ctx the parse tree
*/
void exitUnion(pa2Parser.UnionContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#difference}.
* @param ctx the parse tree
*/
void enterDifference(pa2Parser.DifferenceContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#difference}.
* @param ctx the parse tree
*/
void exitDifference(pa2Parser.DifferenceContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#product}.
* @param ctx the parse tree
*/
void enterProduct(pa2Parser.ProductContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#product}.
* @param ctx the parse tree
*/
void exitProduct(pa2Parser.ProductContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#expr}.
* @param ctx the parse tree
*/
void enterExpr(pa2Parser.ExprContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#expr}.
* @param ctx the parse tree
*/
void exitExpr(pa2Parser.ExprContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#insertCMD}.
* @param ctx the parse tree
*/
void enterInsertCMD(pa2Parser.InsertCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#insertCMD}.
* @param ctx the parse tree
*/
void exitInsertCMD(pa2Parser.InsertCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#query}.
* @param ctx the parse tree
*/
void enterQuery(pa2Parser.QueryContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#query}.
* @param ctx the parse tree
*/
void exitQuery(pa2Parser.QueryContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#createCMD}.
* @param ctx the parse tree
*/
void enterCreateCMD(pa2Parser.CreateCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#createCMD}.
* @param ctx the parse tree
*/
void exitCreateCMD(pa2Parser.CreateCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#updateCMD}.
* @param ctx the parse tree
*/
void enterUpdateCMD(pa2Parser.UpdateCMDContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#updateCMD}.
* @param ctx the parse tree
*/
void exitUpdateCMD(pa2Parser.UpdateCMDContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#command}.
* @param ctx the parse tree
*/
void enterCommand(pa2Parser.CommandContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#command}.
* @param ctx the parse tree
*/
void exitCommand(pa2Parser.CommandContext ctx);
/**
* Enter a parse tree produced by {@link pa2Parser#program}.
* @param ctx the parse tree
*/
void enterProgram(pa2Parser.ProgramContext ctx);
/**
* Exit a parse tree produced by {@link pa2Parser#program}.
* @param ctx the parse tree
*/
void exitProgram(pa2Parser.ProgramContext ctx);
}