Skip to content
Navigation Menu
{{ message }}
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArmParserListener.java
More file actions
326 lines (325 loc) · 11.4 KB
/
Copy pathArmParserListener.java
File metadata and controls
326 lines (325 loc) · 11.4 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
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
319
320
321
322
323
324
325
326
// Generated from H:/MyStuff/PrivateProjects/ArmEmulatorJava/src/grammar\ArmParser.g4 by ANTLR 4.8
package parser;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link ArmParser}.
*/
public interface ArmParserListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link ArmParser#compilationUnit}.
* @param ctx the parse tree
*/
void enterCompilationUnit(ArmParser.CompilationUnitContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#compilationUnit}.
* @param ctx the parse tree
*/
void exitCompilationUnit(ArmParser.CompilationUnitContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#program}.
* @param ctx the parse tree
*/
void enterProgram(ArmParser.ProgramContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#program}.
* @param ctx the parse tree
*/
void exitProgram(ArmParser.ProgramContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#statement}.
* @param ctx the parse tree
*/
void enterStatement(ArmParser.StatementContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#statement}.
* @param ctx the parse tree
*/
void exitStatement(ArmParser.StatementContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#instruction}.
* @param ctx the parse tree
*/
void enterInstruction(ArmParser.InstructionContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#instruction}.
* @param ctx the parse tree
*/
void exitInstruction(ArmParser.InstructionContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#cond}.
* @param ctx the parse tree
*/
void enterCond(ArmParser.CondContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#cond}.
* @param ctx the parse tree
*/
void exitCond(ArmParser.CondContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#reg}.
* @param ctx the parse tree
*/
void enterReg(ArmParser.RegContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#reg}.
* @param ctx the parse tree
*/
void exitReg(ArmParser.RegContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#labelReference}.
* @param ctx the parse tree
*/
void enterLabelReference(ArmParser.LabelReferenceContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#labelReference}.
* @param ctx the parse tree
*/
void exitLabelReference(ArmParser.LabelReferenceContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#label}.
* @param ctx the parse tree
*/
void enterLabel(ArmParser.LabelContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#label}.
* @param ctx the parse tree
*/
void exitLabel(ArmParser.LabelContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#immediate}.
* @param ctx the parse tree
*/
void enterImmediate(ArmParser.ImmediateContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#immediate}.
* @param ctx the parse tree
*/
void exitImmediate(ArmParser.ImmediateContext ctx);
/**
* Enter a parse tree produced by the {@code branchToLabel}
* labeled alternative in {@link ArmParser#branch_instruction}.
* @param ctx the parse tree
*/
void enterBranchToLabel(ArmParser.BranchToLabelContext ctx);
/**
* Exit a parse tree produced by the {@code branchToLabel}
* labeled alternative in {@link ArmParser#branch_instruction}.
* @param ctx the parse tree
*/
void exitBranchToLabel(ArmParser.BranchToLabelContext ctx);
/**
* Enter a parse tree produced by the {@code branchToRegister}
* labeled alternative in {@link ArmParser#branch_instruction}.
* @param ctx the parse tree
*/
void enterBranchToRegister(ArmParser.BranchToRegisterContext ctx);
/**
* Exit a parse tree produced by the {@code branchToRegister}
* labeled alternative in {@link ArmParser#branch_instruction}.
* @param ctx the parse tree
*/
void exitBranchToRegister(ArmParser.BranchToRegisterContext ctx);
/**
* Enter a parse tree produced by the {@code moveOp}
* labeled alternative in {@link ArmParser#data_processing_instruction}.
* @param ctx the parse tree
*/
void enterMoveOp(ArmParser.MoveOpContext ctx);
/**
* Exit a parse tree produced by the {@code moveOp}
* labeled alternative in {@link ArmParser#data_processing_instruction}.
* @param ctx the parse tree
*/
void exitMoveOp(ArmParser.MoveOpContext ctx);
/**
* Enter a parse tree produced by the {@code compareOp}
* labeled alternative in {@link ArmParser#data_processing_instruction}.
* @param ctx the parse tree
*/
void enterCompareOp(ArmParser.CompareOpContext ctx);
/**
* Exit a parse tree produced by the {@code compareOp}
* labeled alternative in {@link ArmParser#data_processing_instruction}.
* @param ctx the parse tree
*/
void exitCompareOp(ArmParser.CompareOpContext ctx);
/**
* Enter a parse tree produced by the {@code arithmeticOp}
* labeled alternative in {@link ArmParser#data_processing_instruction}.
* @param ctx the parse tree
*/
void enterArithmeticOp(ArmParser.ArithmeticOpContext ctx);
/**
* Exit a parse tree produced by the {@code arithmeticOp}
* labeled alternative in {@link ArmParser#data_processing_instruction}.
* @param ctx the parse tree
*/
void exitArithmeticOp(ArmParser.ArithmeticOpContext ctx);
/**
* Enter a parse tree produced by the {@code op2immediate}
* labeled alternative in {@link ArmParser#shifter_operand}.
* @param ctx the parse tree
*/
void enterOp2immediate(ArmParser.Op2immediateContext ctx);
/**
* Exit a parse tree produced by the {@code op2immediate}
* labeled alternative in {@link ArmParser#shifter_operand}.
* @param ctx the parse tree
*/
void exitOp2immediate(ArmParser.Op2immediateContext ctx);
/**
* Enter a parse tree produced by the {@code op2register}
* labeled alternative in {@link ArmParser#shifter_operand}.
* @param ctx the parse tree
*/
void enterOp2register(ArmParser.Op2registerContext ctx);
/**
* Exit a parse tree produced by the {@code op2register}
* labeled alternative in {@link ArmParser#shifter_operand}.
* @param ctx the parse tree
*/
void exitOp2register(ArmParser.Op2registerContext ctx);
/**
* Enter a parse tree produced by the {@code op2inlineShift}
* labeled alternative in {@link ArmParser#shifter_operand}.
* @param ctx the parse tree
*/
void enterOp2inlineShift(ArmParser.Op2inlineShiftContext ctx);
/**
* Exit a parse tree produced by the {@code op2inlineShift}
* labeled alternative in {@link ArmParser#shifter_operand}.
* @param ctx the parse tree
*/
void exitOp2inlineShift(ArmParser.Op2inlineShiftContext ctx);
/**
* Enter a parse tree produced by the {@code shiftByImmediate}
* labeled alternative in {@link ArmParser#shift_operation}.
* @param ctx the parse tree
*/
void enterShiftByImmediate(ArmParser.ShiftByImmediateContext ctx);
/**
* Exit a parse tree produced by the {@code shiftByImmediate}
* labeled alternative in {@link ArmParser#shift_operation}.
* @param ctx the parse tree
*/
void exitShiftByImmediate(ArmParser.ShiftByImmediateContext ctx);
/**
* Enter a parse tree produced by the {@code shiftByRegister}
* labeled alternative in {@link ArmParser#shift_operation}.
* @param ctx the parse tree
*/
void enterShiftByRegister(ArmParser.ShiftByRegisterContext ctx);
/**
* Exit a parse tree produced by the {@code shiftByRegister}
* labeled alternative in {@link ArmParser#shift_operation}.
* @param ctx the parse tree
*/
void exitShiftByRegister(ArmParser.ShiftByRegisterContext ctx);
/**
* Enter a parse tree produced by the {@code rotateWithExtend}
* labeled alternative in {@link ArmParser#shift_operation}.
* @param ctx the parse tree
*/
void enterRotateWithExtend(ArmParser.RotateWithExtendContext ctx);
/**
* Exit a parse tree produced by the {@code rotateWithExtend}
* labeled alternative in {@link ArmParser#shift_operation}.
* @param ctx the parse tree
*/
void exitRotateWithExtend(ArmParser.RotateWithExtendContext ctx);
/**
* Enter a parse tree produced by {@link ArmParser#shiftopcode}.
* @param ctx the parse tree
*/
void enterShiftopcode(ArmParser.ShiftopcodeContext ctx);
/**
* Exit a parse tree produced by {@link ArmParser#shiftopcode}.
* @param ctx the parse tree
*/
void exitShiftopcode(ArmParser.ShiftopcodeContext ctx);
/**
* Enter a parse tree produced by the {@code normalMul}
* labeled alternative in {@link ArmParser#multiply_instruction}.
* @param ctx the parse tree
*/
void enterNormalMul(ArmParser.NormalMulContext ctx);
/**
* Exit a parse tree produced by the {@code normalMul}
* labeled alternative in {@link ArmParser#multiply_instruction}.
* @param ctx the parse tree
*/
void exitNormalMul(ArmParser.NormalMulContext ctx);
/**
* Enter a parse tree produced by the {@code longMul}
* labeled alternative in {@link ArmParser#multiply_instruction}.
* @param ctx the parse tree
*/
void enterLongMul(ArmParser.LongMulContext ctx);
/**
* Exit a parse tree produced by the {@code longMul}
* labeled alternative in {@link ArmParser#multiply_instruction}.
* @param ctx the parse tree
*/
void exitLongMul(ArmParser.LongMulContext ctx);
/**
* Enter a parse tree produced by the {@code firstLoadStore}
* labeled alternative in {@link ArmParser#load_store_instruction}.
* @param ctx the parse tree
*/
void enterFirstLoadStore(ArmParser.FirstLoadStoreContext ctx);
/**
* Exit a parse tree produced by the {@code firstLoadStore}
* labeled alternative in {@link ArmParser#load_store_instruction}.
* @param ctx the parse tree
*/
void exitFirstLoadStore(ArmParser.FirstLoadStoreContext ctx);
/**
* Enter a parse tree produced by the {@code secondLoadStore}
* labeled alternative in {@link ArmParser#load_store_instruction}.
* @param ctx the parse tree
*/
void enterSecondLoadStore(ArmParser.SecondLoadStoreContext ctx);
/**
* Exit a parse tree produced by the {@code secondLoadStore}
* labeled alternative in {@link ArmParser#load_store_instruction}.
* @param ctx the parse tree
*/
void exitSecondLoadStore(ArmParser.SecondLoadStoreContext ctx);
/**
* Enter a parse tree produced by the {@code normalAddressing}
* labeled alternative in {@link ArmParser#addressing_mode}.
* @param ctx the parse tree
*/
void enterNormalAddressing(ArmParser.NormalAddressingContext ctx);
/**
* Exit a parse tree produced by the {@code normalAddressing}
* labeled alternative in {@link ArmParser#addressing_mode}.
* @param ctx the parse tree
*/
void exitNormalAddressing(ArmParser.NormalAddressingContext ctx);
/**
* Enter a parse tree produced by the {@code preIndexedAddressing}
* labeled alternative in {@link ArmParser#addressing_mode}.
* @param ctx the parse tree
*/
void enterPreIndexedAddressing(ArmParser.PreIndexedAddressingContext ctx);
/**
* Exit a parse tree produced by the {@code preIndexedAddressing}
* labeled alternative in {@link ArmParser#addressing_mode}.
* @param ctx the parse tree
*/
void exitPreIndexedAddressing(ArmParser.PreIndexedAddressingContext ctx);
/**
* Enter a parse tree produced by the {@code postIndexedAddressing}
* labeled alternative in {@link ArmParser#addressing_mode}.
* @param ctx the parse tree
*/
void enterPostIndexedAddressing(ArmParser.PostIndexedAddressingContext ctx);
/**
* Exit a parse tree produced by the {@code postIndexedAddressing}
* labeled alternative in {@link ArmParser#addressing_mode}.
* @param ctx the parse tree
*/
void exitPostIndexedAddressing(ArmParser.PostIndexedAddressingContext ctx);
}
You can’t perform that action at this time.
