-
Notifications
You must be signed in to change notification settings - Fork 0
/
easmLexer.py
341 lines (326 loc) · 18.8 KB
/
easmLexer.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
# Generated from easm.g4 by ANTLR 4.13.1
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
return [
4,0,65,571,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,
2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,
13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,
19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,
26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,
32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,
39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,
45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,
52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,
58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,
65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,1,0,1,
0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,
4,1,5,1,5,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,
8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,
1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,
1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,
1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,
1,20,1,20,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,23,
1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,
1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,28,1,28,1,28,
1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,
1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,
1,36,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,
1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,43,1,43,
1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,46,
1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,49,1,49,
1,49,1,50,1,50,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,
1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,55,
1,55,1,55,1,55,1,55,3,55,378,8,55,1,56,1,56,1,56,1,56,1,56,1,56,
1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,3,56,394,8,56,1,56,1,56,
1,56,1,56,4,56,400,8,56,11,56,12,56,401,1,56,1,56,1,56,4,56,407,
8,56,11,56,12,56,408,1,56,1,56,1,56,4,56,414,8,56,11,56,12,56,415,
3,56,418,8,56,3,56,420,8,56,1,57,3,57,423,8,57,1,57,1,57,5,57,427,
8,57,10,57,12,57,430,9,57,1,58,3,58,433,8,58,1,58,1,58,3,58,437,
8,58,1,58,1,58,1,58,3,58,442,8,58,1,59,3,59,445,8,59,1,59,1,59,1,
59,1,59,1,59,3,59,452,8,59,1,60,1,60,3,60,456,8,60,1,60,1,60,1,61,
4,61,461,8,61,11,61,12,61,462,1,62,1,62,1,62,1,62,1,62,1,62,1,62,
1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,
1,62,1,62,3,62,487,8,62,1,63,1,63,4,63,491,8,63,11,63,12,63,492,
1,64,1,64,1,64,1,64,1,64,1,64,4,64,501,8,64,11,64,12,64,502,3,64,
505,8,64,1,65,1,65,1,65,3,65,510,8,65,1,65,1,65,4,65,514,8,65,11,
65,12,65,515,3,65,518,8,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,
66,1,66,3,66,529,8,66,1,67,4,67,532,8,67,11,67,12,67,533,1,67,1,
67,1,68,1,68,3,68,540,8,68,1,68,3,68,543,8,68,1,68,1,68,1,69,1,69,
1,69,1,69,5,69,551,8,69,10,69,12,69,554,9,69,1,69,1,69,1,69,1,69,
1,69,1,70,1,70,1,70,1,70,5,70,565,8,70,10,70,12,70,568,9,70,1,70,
1,70,1,552,0,71,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,
11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,
22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,
33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,
44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,
54,109,55,111,56,113,57,115,58,117,59,119,0,121,0,123,0,125,60,127,
0,129,0,131,61,133,0,135,62,137,63,139,64,141,65,1,0,21,2,0,80,80,
112,112,2,0,79,79,111,111,2,0,78,78,110,110,2,0,89,89,121,121,4,
0,33,33,44,44,46,46,58,58,2,0,43,43,45,45,1,0,48,55,2,0,88,88,120,
120,3,0,48,57,65,70,97,102,2,0,66,66,98,98,1,0,48,49,3,0,65,90,95,
95,97,122,4,0,48,57,65,90,95,95,97,122,2,0,69,69,101,101,1,0,48,
57,4,0,10,10,13,13,39,39,92,92,10,0,34,34,39,39,63,63,92,92,97,98,
102,102,110,110,114,114,116,116,118,118,3,0,76,76,85,85,117,117,
4,0,10,10,13,13,34,34,92,92,2,0,9,9,32,32,2,0,10,10,13,13,603,0,
1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,
0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,
0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,
0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,
0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,
0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,
0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,
0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,
0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,
0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,
1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,
0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,125,1,
0,0,0,0,131,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,
141,1,0,0,0,1,143,1,0,0,0,3,150,1,0,0,0,5,155,1,0,0,0,7,157,1,0,
0,0,9,159,1,0,0,0,11,161,1,0,0,0,13,163,1,0,0,0,15,165,1,0,0,0,17,
172,1,0,0,0,19,179,1,0,0,0,21,184,1,0,0,0,23,191,1,0,0,0,25,196,
1,0,0,0,27,199,1,0,0,0,29,202,1,0,0,0,31,204,1,0,0,0,33,207,1,0,
0,0,35,212,1,0,0,0,37,217,1,0,0,0,39,221,1,0,0,0,41,225,1,0,0,0,
43,232,1,0,0,0,45,236,1,0,0,0,47,242,1,0,0,0,49,247,1,0,0,0,51,252,
1,0,0,0,53,258,1,0,0,0,55,262,1,0,0,0,57,266,1,0,0,0,59,271,1,0,
0,0,61,273,1,0,0,0,63,276,1,0,0,0,65,278,1,0,0,0,67,280,1,0,0,0,
69,283,1,0,0,0,71,286,1,0,0,0,73,292,1,0,0,0,75,296,1,0,0,0,77,300,
1,0,0,0,79,304,1,0,0,0,81,308,1,0,0,0,83,312,1,0,0,0,85,315,1,0,
0,0,87,319,1,0,0,0,89,323,1,0,0,0,91,328,1,0,0,0,93,333,1,0,0,0,
95,337,1,0,0,0,97,341,1,0,0,0,99,345,1,0,0,0,101,348,1,0,0,0,103,
350,1,0,0,0,105,354,1,0,0,0,107,360,1,0,0,0,109,367,1,0,0,0,111,
372,1,0,0,0,113,419,1,0,0,0,115,422,1,0,0,0,117,432,1,0,0,0,119,
451,1,0,0,0,121,453,1,0,0,0,123,460,1,0,0,0,125,486,1,0,0,0,127,
490,1,0,0,0,129,504,1,0,0,0,131,509,1,0,0,0,133,528,1,0,0,0,135,
531,1,0,0,0,137,542,1,0,0,0,139,546,1,0,0,0,141,560,1,0,0,0,143,
144,5,115,0,0,144,145,5,116,0,0,145,146,5,114,0,0,146,147,5,117,
0,0,147,148,5,99,0,0,148,149,5,116,0,0,149,2,1,0,0,0,150,151,5,102,
0,0,151,152,5,117,0,0,152,153,5,110,0,0,153,154,5,99,0,0,154,4,1,
0,0,0,155,156,5,40,0,0,156,6,1,0,0,0,157,158,5,44,0,0,158,8,1,0,
0,0,159,160,5,41,0,0,160,10,1,0,0,0,161,162,5,91,0,0,162,12,1,0,
0,0,163,164,5,93,0,0,164,14,1,0,0,0,165,166,5,105,0,0,166,167,5,
109,0,0,167,168,5,112,0,0,168,169,5,111,0,0,169,170,5,114,0,0,170,
171,5,116,0,0,171,16,1,0,0,0,172,173,5,110,0,0,173,174,5,97,0,0,
174,175,5,116,0,0,175,176,5,105,0,0,176,177,5,118,0,0,177,178,5,
101,0,0,178,18,1,0,0,0,179,180,5,112,0,0,180,181,5,97,0,0,181,182,
5,115,0,0,182,183,5,115,0,0,183,20,1,0,0,0,184,185,5,100,0,0,185,
186,5,101,0,0,186,187,5,108,0,0,187,188,5,101,0,0,188,189,5,116,
0,0,189,190,5,101,0,0,190,22,1,0,0,0,191,192,5,106,0,0,192,193,5,
117,0,0,193,194,5,109,0,0,194,195,5,112,0,0,195,24,1,0,0,0,196,197,
5,105,0,0,197,198,5,102,0,0,198,26,1,0,0,0,199,200,5,116,0,0,200,
201,5,111,0,0,201,28,1,0,0,0,202,203,5,58,0,0,203,30,1,0,0,0,204,
205,5,45,0,0,205,206,5,62,0,0,206,32,1,0,0,0,207,208,5,112,0,0,208,
209,5,117,0,0,209,210,5,115,0,0,210,211,5,104,0,0,211,34,1,0,0,0,
212,213,5,112,0,0,213,214,5,117,0,0,214,215,5,108,0,0,215,216,5,
108,0,0,216,36,1,0,0,0,217,218,5,105,0,0,218,219,5,110,0,0,219,220,
5,99,0,0,220,38,1,0,0,0,221,222,5,100,0,0,222,223,5,101,0,0,223,
224,5,99,0,0,224,40,1,0,0,0,225,226,5,114,0,0,226,227,5,101,0,0,
227,228,5,116,0,0,228,229,5,117,0,0,229,230,5,114,0,0,230,231,5,
110,0,0,231,42,1,0,0,0,232,233,5,110,0,0,233,234,5,101,0,0,234,235,
5,119,0,0,235,44,1,0,0,0,236,237,5,108,0,0,237,238,5,111,0,0,238,
239,5,99,0,0,239,240,5,97,0,0,240,241,5,108,0,0,241,46,1,0,0,0,242,
243,5,99,0,0,243,244,5,97,0,0,244,245,5,108,0,0,245,246,5,108,0,
0,246,48,1,0,0,0,247,248,5,104,0,0,248,249,5,101,0,0,249,250,5,97,
0,0,250,251,5,112,0,0,251,50,1,0,0,0,252,253,5,97,0,0,253,254,5,
114,0,0,254,255,5,114,0,0,255,256,5,97,0,0,256,257,5,121,0,0,257,
52,1,0,0,0,258,259,5,112,0,0,259,260,5,116,0,0,260,261,5,114,0,0,
261,54,1,0,0,0,262,263,5,110,0,0,263,264,5,111,0,0,264,265,5,116,
0,0,265,56,1,0,0,0,266,267,5,98,0,0,267,268,5,111,0,0,268,269,5,
111,0,0,269,270,5,108,0,0,270,58,1,0,0,0,271,272,5,61,0,0,272,60,
1,0,0,0,273,274,5,33,0,0,274,275,5,61,0,0,275,62,1,0,0,0,276,277,
5,62,0,0,277,64,1,0,0,0,278,279,5,60,0,0,279,66,1,0,0,0,280,281,
5,62,0,0,281,282,5,61,0,0,282,68,1,0,0,0,283,284,5,60,0,0,284,285,
5,61,0,0,285,70,1,0,0,0,286,287,5,115,0,0,287,288,5,115,0,0,288,
289,5,105,0,0,289,290,5,122,0,0,290,291,5,101,0,0,291,72,1,0,0,0,
292,293,5,97,0,0,293,294,5,100,0,0,294,295,5,100,0,0,295,74,1,0,
0,0,296,297,5,115,0,0,297,298,5,117,0,0,298,299,5,98,0,0,299,76,
1,0,0,0,300,301,5,109,0,0,301,302,5,117,0,0,302,303,5,108,0,0,303,
78,1,0,0,0,304,305,5,100,0,0,305,306,5,105,0,0,306,307,5,118,0,0,
307,80,1,0,0,0,308,309,5,97,0,0,309,310,5,110,0,0,310,311,5,100,
0,0,311,82,1,0,0,0,312,313,5,111,0,0,313,314,5,114,0,0,314,84,1,
0,0,0,315,316,5,120,0,0,316,317,5,111,0,0,317,318,5,114,0,0,318,
86,1,0,0,0,319,320,5,110,0,0,320,321,5,111,0,0,321,322,5,114,0,0,
322,88,1,0,0,0,323,324,5,110,0,0,324,325,5,97,0,0,325,326,5,110,
0,0,326,327,5,100,0,0,327,90,1,0,0,0,328,329,5,120,0,0,329,330,5,
110,0,0,330,331,5,111,0,0,331,332,5,114,0,0,332,92,1,0,0,0,333,334,
5,114,0,0,334,335,5,101,0,0,335,336,5,109,0,0,336,94,1,0,0,0,337,
338,5,115,0,0,338,339,5,104,0,0,339,340,5,114,0,0,340,96,1,0,0,0,
341,342,5,115,0,0,342,343,5,104,0,0,343,344,5,108,0,0,344,98,1,0,
0,0,345,346,5,97,0,0,346,347,5,115,0,0,347,100,1,0,0,0,348,349,5,
46,0,0,349,102,1,0,0,0,350,351,5,105,0,0,351,352,5,110,0,0,352,353,
5,116,0,0,353,104,1,0,0,0,354,355,5,102,0,0,355,356,5,108,0,0,356,
357,5,111,0,0,357,358,5,97,0,0,358,359,5,116,0,0,359,106,1,0,0,0,
360,361,5,115,0,0,361,362,5,116,0,0,362,363,5,114,0,0,363,364,5,
105,0,0,364,365,5,110,0,0,365,366,5,103,0,0,366,108,1,0,0,0,367,
368,5,98,0,0,368,369,5,121,0,0,369,370,5,116,0,0,370,371,5,101,0,
0,371,110,1,0,0,0,372,373,7,0,0,0,373,374,7,1,0,0,374,375,7,2,0,
0,375,377,7,3,0,0,376,378,7,4,0,0,377,376,1,0,0,0,377,378,1,0,0,
0,378,112,1,0,0,0,379,380,5,110,0,0,380,381,5,117,0,0,381,382,5,
108,0,0,382,420,5,108,0,0,383,384,5,116,0,0,384,385,5,114,0,0,385,
386,5,117,0,0,386,420,5,101,0,0,387,388,5,102,0,0,388,389,5,97,0,
0,389,390,5,108,0,0,390,391,5,115,0,0,391,420,5,101,0,0,392,394,
7,5,0,0,393,392,1,0,0,0,393,394,1,0,0,0,394,417,1,0,0,0,395,418,
3,123,61,0,396,397,5,48,0,0,397,399,7,1,0,0,398,400,7,6,0,0,399,
398,1,0,0,0,400,401,1,0,0,0,401,399,1,0,0,0,401,402,1,0,0,0,402,
418,1,0,0,0,403,404,5,48,0,0,404,406,7,7,0,0,405,407,7,8,0,0,406,
405,1,0,0,0,407,408,1,0,0,0,408,406,1,0,0,0,408,409,1,0,0,0,409,
418,1,0,0,0,410,411,5,48,0,0,411,413,7,9,0,0,412,414,7,10,0,0,413,
412,1,0,0,0,414,415,1,0,0,0,415,413,1,0,0,0,415,416,1,0,0,0,416,
418,1,0,0,0,417,395,1,0,0,0,417,396,1,0,0,0,417,403,1,0,0,0,417,
410,1,0,0,0,418,420,1,0,0,0,419,379,1,0,0,0,419,383,1,0,0,0,419,
387,1,0,0,0,419,393,1,0,0,0,420,114,1,0,0,0,421,423,5,42,0,0,422,
421,1,0,0,0,422,423,1,0,0,0,423,424,1,0,0,0,424,428,7,11,0,0,425,
427,7,12,0,0,426,425,1,0,0,0,427,430,1,0,0,0,428,426,1,0,0,0,428,
429,1,0,0,0,429,116,1,0,0,0,430,428,1,0,0,0,431,433,7,5,0,0,432,
431,1,0,0,0,432,433,1,0,0,0,433,441,1,0,0,0,434,436,3,119,59,0,435,
437,3,121,60,0,436,435,1,0,0,0,436,437,1,0,0,0,437,442,1,0,0,0,438,
439,3,123,61,0,439,440,3,121,60,0,440,442,1,0,0,0,441,434,1,0,0,
0,441,438,1,0,0,0,442,118,1,0,0,0,443,445,3,123,61,0,444,443,1,0,
0,0,444,445,1,0,0,0,445,446,1,0,0,0,446,447,5,46,0,0,447,452,3,123,
61,0,448,449,3,123,61,0,449,450,5,46,0,0,450,452,1,0,0,0,451,444,
1,0,0,0,451,448,1,0,0,0,452,120,1,0,0,0,453,455,7,13,0,0,454,456,
7,5,0,0,455,454,1,0,0,0,455,456,1,0,0,0,456,457,1,0,0,0,457,458,
3,123,61,0,458,122,1,0,0,0,459,461,7,14,0,0,460,459,1,0,0,0,461,
462,1,0,0,0,462,460,1,0,0,0,462,463,1,0,0,0,463,124,1,0,0,0,464,
465,5,39,0,0,465,466,3,127,63,0,466,467,5,39,0,0,467,487,1,0,0,0,
468,469,5,76,0,0,469,470,5,39,0,0,470,471,1,0,0,0,471,472,3,127,
63,0,472,473,5,39,0,0,473,487,1,0,0,0,474,475,5,117,0,0,475,476,
5,39,0,0,476,477,1,0,0,0,477,478,3,127,63,0,478,479,5,39,0,0,479,
487,1,0,0,0,480,481,5,85,0,0,481,482,5,39,0,0,482,483,1,0,0,0,483,
484,3,127,63,0,484,485,5,39,0,0,485,487,1,0,0,0,486,464,1,0,0,0,
486,468,1,0,0,0,486,474,1,0,0,0,486,480,1,0,0,0,487,126,1,0,0,0,
488,491,8,15,0,0,489,491,3,129,64,0,490,488,1,0,0,0,490,489,1,0,
0,0,491,492,1,0,0,0,492,490,1,0,0,0,492,493,1,0,0,0,493,128,1,0,
0,0,494,495,5,92,0,0,495,505,7,16,0,0,496,497,5,92,0,0,497,498,5,
120,0,0,498,500,1,0,0,0,499,501,7,8,0,0,500,499,1,0,0,0,501,502,
1,0,0,0,502,500,1,0,0,0,502,503,1,0,0,0,503,505,1,0,0,0,504,494,
1,0,0,0,504,496,1,0,0,0,505,130,1,0,0,0,506,507,5,117,0,0,507,510,
5,56,0,0,508,510,7,17,0,0,509,506,1,0,0,0,509,508,1,0,0,0,509,510,
1,0,0,0,510,511,1,0,0,0,511,517,5,34,0,0,512,514,3,133,66,0,513,
512,1,0,0,0,514,515,1,0,0,0,515,513,1,0,0,0,515,516,1,0,0,0,516,
518,1,0,0,0,517,513,1,0,0,0,517,518,1,0,0,0,518,519,1,0,0,0,519,
520,5,34,0,0,520,132,1,0,0,0,521,529,8,18,0,0,522,529,3,129,64,0,
523,524,5,92,0,0,524,529,5,10,0,0,525,526,5,92,0,0,526,527,5,13,
0,0,527,529,5,10,0,0,528,521,1,0,0,0,528,522,1,0,0,0,528,523,1,0,
0,0,528,525,1,0,0,0,529,134,1,0,0,0,530,532,7,19,0,0,531,530,1,0,
0,0,532,533,1,0,0,0,533,531,1,0,0,0,533,534,1,0,0,0,534,535,1,0,
0,0,535,536,6,67,0,0,536,136,1,0,0,0,537,539,5,13,0,0,538,540,5,
10,0,0,539,538,1,0,0,0,539,540,1,0,0,0,540,543,1,0,0,0,541,543,5,
10,0,0,542,537,1,0,0,0,542,541,1,0,0,0,543,544,1,0,0,0,544,545,6,
68,0,0,545,138,1,0,0,0,546,547,5,47,0,0,547,548,5,42,0,0,548,552,
1,0,0,0,549,551,9,0,0,0,550,549,1,0,0,0,551,554,1,0,0,0,552,553,
1,0,0,0,552,550,1,0,0,0,553,555,1,0,0,0,554,552,1,0,0,0,555,556,
5,42,0,0,556,557,5,47,0,0,557,558,1,0,0,0,558,559,6,69,0,0,559,140,
1,0,0,0,560,561,5,47,0,0,561,562,5,47,0,0,562,566,1,0,0,0,563,565,
8,20,0,0,564,563,1,0,0,0,565,568,1,0,0,0,566,564,1,0,0,0,566,567,
1,0,0,0,567,569,1,0,0,0,568,566,1,0,0,0,569,570,6,70,0,0,570,142,
1,0,0,0,31,0,377,393,401,408,415,417,419,422,428,432,436,441,444,
451,455,462,486,490,492,502,504,509,515,517,528,533,539,542,552,
566,1,0,1,0
]
class easmLexer(Lexer):
atn = ATNDeserializer().deserialize(serializedATN())
decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
T__0 = 1
T__1 = 2
T__2 = 3
T__3 = 4
T__4 = 5
T__5 = 6
T__6 = 7
T__7 = 8
T__8 = 9
T__9 = 10
T__10 = 11
T__11 = 12
T__12 = 13
T__13 = 14
T__14 = 15
T__15 = 16
T__16 = 17
T__17 = 18
T__18 = 19
T__19 = 20
T__20 = 21
T__21 = 22
T__22 = 23
T__23 = 24
T__24 = 25
T__25 = 26
T__26 = 27
T__27 = 28
T__28 = 29
T__29 = 30
T__30 = 31
T__31 = 32
T__32 = 33
T__33 = 34
T__34 = 35
T__35 = 36
T__36 = 37
T__37 = 38
T__38 = 39
T__39 = 40
T__40 = 41
T__41 = 42
T__42 = 43
T__43 = 44
T__44 = 45
T__45 = 46
T__46 = 47
T__47 = 48
T__48 = 49
T__49 = 50
T__50 = 51
T__51 = 52
T__52 = 53
T__53 = 54
T__54 = 55
Pony = 56
IConst = 57
Id = 58
FConst = 59
CConst = 60
SConst = 61
Whitespace = 62
Newline = 63
BlockComment = 64
LineComment = 65
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]
modeNames = [ "DEFAULT_MODE" ]
literalNames = [ "<INVALID>",
"'struct'", "'func'", "'('", "','", "')'", "'['", "']'", "'import'",
"'native'", "'pass'", "'delete'", "'jump'", "'if'", "'to'",
"':'", "'->'", "'push'", "'pull'", "'inc'", "'dec'", "'return'",
"'new'", "'local'", "'call'", "'heap'", "'array'", "'ptr'",
"'not'", "'bool'", "'='", "'!='", "'>'", "'<'", "'>='", "'<='",
"'ssize'", "'add'", "'sub'", "'mul'", "'div'", "'and'", "'or'",
"'xor'", "'nor'", "'nand'", "'xnor'", "'rem'", "'shr'", "'shl'",
"'as'", "'.'", "'int'", "'float'", "'string'", "'byte'" ]
symbolicNames = [ "<INVALID>",
"Pony", "IConst", "Id", "FConst", "CConst", "SConst", "Whitespace",
"Newline", "BlockComment", "LineComment" ]
ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6",
"T__7", "T__8", "T__9", "T__10", "T__11", "T__12", "T__13",
"T__14", "T__15", "T__16", "T__17", "T__18", "T__19",
"T__20", "T__21", "T__22", "T__23", "T__24", "T__25",
"T__26", "T__27", "T__28", "T__29", "T__30", "T__31",
"T__32", "T__33", "T__34", "T__35", "T__36", "T__37",
"T__38", "T__39", "T__40", "T__41", "T__42", "T__43",
"T__44", "T__45", "T__46", "T__47", "T__48", "T__49",
"T__50", "T__51", "T__52", "T__53", "T__54", "Pony", "IConst",
"Id", "FConst", "Fract", "Exp", "Digits", "CConst", "CharSeq",
"EscSeq", "SConst", "ExtChar", "Whitespace", "Newline",
"BlockComment", "LineComment" ]
grammarFileName = "easm.g4"
def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.13.1")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None