1 # Lexer and its tokens.
2 # This file was generated by SableCC (http://www.sablecc.org/).
5 intrude import parser_nodes
6 intrude import lexer_work
10 redef fun parser_index
: Int
15 init init_tk
(loc
: Location)
22 redef fun parser_index
: Int
27 init init_tk
(loc
: Location)
33 redef class TKwpackage
34 redef fun parser_index
: Int
39 init init_tk
(loc
: Location)
46 redef fun parser_index
: Int
51 init init_tk
(loc
: Location)
58 redef fun parser_index
: Int
63 init init_tk
(loc
: Location)
70 redef fun parser_index
: Int
75 init init_tk
(loc
: Location)
81 redef class TKwabstract
82 redef fun parser_index
: Int
87 init init_tk
(loc
: Location)
93 redef class TKwinterface
94 redef fun parser_index
: Int
99 init init_tk
(loc
: Location)
106 redef fun parser_index
: Int
111 init init_tk
(loc
: Location)
118 redef fun parser_index
: Int
123 init init_tk
(loc
: Location)
130 redef fun parser_index
: Int
135 init init_tk
(loc
: Location)
142 redef fun parser_index
: Int
147 init init_tk
(loc
: Location)
154 redef fun parser_index
: Int
159 init init_tk
(loc
: Location)
166 redef fun parser_index
: Int
171 init init_tk
(loc
: Location)
178 redef fun parser_index
: Int
183 init init_tk
(loc
: Location)
190 redef fun parser_index
: Int
195 init init_tk
(loc
: Location)
201 redef class TKwreadable
202 redef fun parser_index
: Int
207 init init_tk
(loc
: Location)
213 redef class TKwwritable
214 redef fun parser_index
: Int
219 init init_tk
(loc
: Location)
226 redef fun parser_index
: Int
231 init init_tk
(loc
: Location)
237 redef class TKwintern
238 redef fun parser_index
: Int
243 init init_tk
(loc
: Location)
249 redef class TKwextern
250 redef fun parser_index
: Int
255 init init_tk
(loc
: Location)
261 redef class TKwpublic
262 redef fun parser_index
: Int
267 init init_tk
(loc
: Location)
273 redef class TKwprotected
274 redef fun parser_index
: Int
279 init init_tk
(loc
: Location)
285 redef class TKwprivate
286 redef fun parser_index
: Int
291 init init_tk
(loc
: Location)
297 redef class TKwintrude
298 redef fun parser_index
: Int
303 init init_tk
(loc
: Location)
310 redef fun parser_index
: Int
315 init init_tk
(loc
: Location)
322 redef fun parser_index
: Int
327 init init_tk
(loc
: Location)
334 redef fun parser_index
: Int
339 init init_tk
(loc
: Location)
346 redef fun parser_index
: Int
351 init init_tk
(loc
: Location)
358 redef fun parser_index
: Int
363 init init_tk
(loc
: Location)
370 redef fun parser_index
: Int
375 init init_tk
(loc
: Location)
382 redef fun parser_index
: Int
387 init init_tk
(loc
: Location)
394 redef fun parser_index
: Int
399 init init_tk
(loc
: Location)
406 redef fun parser_index
: Int
411 init init_tk
(loc
: Location)
418 redef fun parser_index
: Int
423 init init_tk
(loc
: Location)
429 redef class TKwimplies
430 redef fun parser_index
: Int
435 init init_tk
(loc
: Location)
441 redef class TKwreturn
442 redef fun parser_index
: Int
447 init init_tk
(loc
: Location)
453 redef class TKwcontinue
454 redef fun parser_index
: Int
459 init init_tk
(loc
: Location)
466 redef fun parser_index
: Int
471 init init_tk
(loc
: Location)
478 redef fun parser_index
: Int
483 init init_tk
(loc
: Location)
489 redef class TKwassert
490 redef fun parser_index
: Int
495 init init_tk
(loc
: Location)
502 redef fun parser_index
: Int
507 init init_tk
(loc
: Location)
514 redef fun parser_index
: Int
519 init init_tk
(loc
: Location)
526 redef fun parser_index
: Int
531 init init_tk
(loc
: Location)
538 redef fun parser_index
: Int
543 init init_tk
(loc
: Location)
550 redef fun parser_index
: Int
555 init init_tk
(loc
: Location)
562 redef fun parser_index
: Int
567 init init_tk
(loc
: Location)
574 redef fun parser_index
: Int
579 init init_tk
(loc
: Location)
586 redef fun parser_index
: Int
591 init init_tk
(loc
: Location)
598 redef fun parser_index
: Int
603 init init_tk
(loc
: Location)
609 redef class TKwnullable
610 redef fun parser_index
: Int
615 init init_tk
(loc
: Location)
622 redef fun parser_index
: Int
627 init init_tk
(loc
: Location)
634 redef fun parser_index
: Int
639 init init_tk
(loc
: Location)
646 redef fun parser_index
: Int
651 init init_tk
(loc
: Location)
658 redef fun parser_index
: Int
663 init init_tk
(loc
: Location)
670 redef fun parser_index
: Int
675 init init_tk
(loc
: Location)
682 redef fun parser_index
: Int
687 init init_tk
(loc
: Location)
694 redef fun parser_index
: Int
699 init init_tk
(loc
: Location)
706 redef fun parser_index
: Int
711 init init_tk
(loc
: Location)
718 redef fun parser_index
: Int
723 init init_tk
(loc
: Location)
730 redef fun parser_index
: Int
735 init init_tk
(loc
: Location)
742 redef fun parser_index
: Int
747 init init_tk
(loc
: Location)
754 redef fun parser_index
: Int
759 init init_tk
(loc
: Location)
766 redef fun parser_index
: Int
771 init init_tk
(loc
: Location)
777 redef class TDotdotdot
778 redef fun parser_index
: Int
783 init init_tk
(loc
: Location)
790 redef fun parser_index
: Int
795 init init_tk
(loc
: Location)
802 redef fun parser_index
: Int
807 init init_tk
(loc
: Location)
814 redef fun parser_index
: Int
819 init init_tk
(loc
: Location)
826 redef fun parser_index
: Int
831 init init_tk
(loc
: Location)
838 redef fun parser_index
: Int
843 init init_tk
(loc
: Location)
850 redef fun parser_index
: Int
855 init init_tk
(loc
: Location)
862 redef fun parser_index
: Int
867 init init_tk
(loc
: Location)
874 redef fun parser_index
: Int
879 init init_tk
(loc
: Location)
886 redef fun parser_index
: Int
891 init init_tk
(loc
: Location)
898 redef fun parser_index
: Int
903 init init_tk
(loc
: Location)
910 redef fun parser_index
: Int
915 init init_tk
(loc
: Location)
922 redef fun parser_index
: Int
927 init init_tk
(loc
: Location)
934 redef fun parser_index
: Int
939 init init_tk
(loc
: Location)
946 redef fun parser_index
: Int
951 init init_tk
(loc
: Location)
958 redef fun parser_index
: Int
963 init init_tk
(loc
: Location)
969 redef class TStarship
970 redef fun parser_index
: Int
975 init init_tk
(loc
: Location)
982 redef fun parser_index
: Int
987 init init_tk
(loc
: Location)
994 redef fun parser_index
: Int
999 init init_tk
(loc
: Location)
1005 redef class TClassid
1006 redef fun parser_index
: Int
1011 init init_tk
(loc
: Location)
1018 redef fun parser_index
: Int
1023 init init_tk
(loc
: Location)
1030 redef fun parser_index
: Int
1035 init init_tk
(loc
: Location)
1042 redef fun parser_index
: Int
1047 init init_tk
(loc
: Location)
1053 redef class THexNumber
1054 redef fun parser_index
: Int
1059 init init_tk
(loc
: Location)
1066 redef fun parser_index
: Int
1071 init init_tk
(loc
: Location)
1078 redef fun parser_index
: Int
1083 init init_tk
(loc
: Location)
1089 redef class TStartString
1090 redef fun parser_index
: Int
1095 init init_tk
(loc
: Location)
1101 redef class TMidString
1102 redef fun parser_index
: Int
1107 init init_tk
(loc
: Location)
1113 redef class TEndString
1114 redef fun parser_index
: Int
1119 init init_tk
(loc
: Location)
1126 redef fun parser_index
: Int
1131 init init_tk
(loc
: Location)
1137 redef class TBadString
1138 redef fun parser_index
: Int
1143 init init_tk
(loc
: Location)
1149 redef class TBadChar
1150 redef fun parser_index
: Int
1155 init init_tk
(loc
: Location)
1161 redef class TExternCodeSegment
1162 redef fun parser_index
: Int
1167 init init_tk
(loc
: Location)
1174 redef fun make_token
(accept_token
, location
)
1176 if accept_token
== 1 then
1177 return new TEol.init_tk
(location
)
1179 if accept_token
== 2 then
1180 return new TComment.init_tk
(location
)
1182 if accept_token
== 3 then
1183 return new TKwpackage.init_tk
(location
)
1185 if accept_token
== 4 then
1186 return new TKwmodule.init_tk
(location
)
1188 if accept_token
== 5 then
1189 return new TKwimport.init_tk
(location
)
1191 if accept_token
== 6 then
1192 return new TKwclass.init_tk
(location
)
1194 if accept_token
== 7 then
1195 return new TKwabstract.init_tk
(location
)
1197 if accept_token
== 8 then
1198 return new TKwinterface.init_tk
(location
)
1200 if accept_token
== 9 then
1201 return new TKwenum.init_tk
(location
)
1203 if accept_token
== 10 then
1204 return new TKwend.init_tk
(location
)
1206 if accept_token
== 11 then
1207 return new TKwmeth.init_tk
(location
)
1209 if accept_token
== 12 then
1210 return new TKwtype.init_tk
(location
)
1212 if accept_token
== 13 then
1213 return new TKwinit.init_tk
(location
)
1215 if accept_token
== 14 then
1216 return new TKwredef.init_tk
(location
)
1218 if accept_token
== 15 then
1219 return new TKwis.init_tk
(location
)
1221 if accept_token
== 16 then
1222 return new TKwdo.init_tk
(location
)
1224 if accept_token
== 17 then
1225 return new TKwreadable.init_tk
(location
)
1227 if accept_token
== 18 then
1228 return new TKwwritable.init_tk
(location
)
1230 if accept_token
== 19 then
1231 return new TKwvar.init_tk
(location
)
1233 if accept_token
== 20 then
1234 return new TKwintern.init_tk
(location
)
1236 if accept_token
== 21 then
1237 return new TKwextern.init_tk
(location
)
1239 if accept_token
== 22 then
1240 return new TKwpublic.init_tk
(location
)
1242 if accept_token
== 23 then
1243 return new TKwprotected.init_tk
(location
)
1245 if accept_token
== 24 then
1246 return new TKwprivate.init_tk
(location
)
1248 if accept_token
== 25 then
1249 return new TKwintrude.init_tk
(location
)
1251 if accept_token
== 26 then
1252 return new TKwif.init_tk
(location
)
1254 if accept_token
== 27 then
1255 return new TKwthen.init_tk
(location
)
1257 if accept_token
== 28 then
1258 return new TKwelse.init_tk
(location
)
1260 if accept_token
== 29 then
1261 return new TKwwhile.init_tk
(location
)
1263 if accept_token
== 30 then
1264 return new TKwloop.init_tk
(location
)
1266 if accept_token
== 31 then
1267 return new TKwfor.init_tk
(location
)
1269 if accept_token
== 32 then
1270 return new TKwin.init_tk
(location
)
1272 if accept_token
== 33 then
1273 return new TKwand.init_tk
(location
)
1275 if accept_token
== 34 then
1276 return new TKwor.init_tk
(location
)
1278 if accept_token
== 35 then
1279 return new TKwnot.init_tk
(location
)
1281 if accept_token
== 36 then
1282 return new TKwimplies.init_tk
(location
)
1284 if accept_token
== 37 then
1285 return new TKwreturn.init_tk
(location
)
1287 if accept_token
== 38 then
1288 return new TKwcontinue.init_tk
(location
)
1290 if accept_token
== 39 then
1291 return new TKwbreak.init_tk
(location
)
1293 if accept_token
== 40 then
1294 return new TKwabort.init_tk
(location
)
1296 if accept_token
== 41 then
1297 return new TKwassert.init_tk
(location
)
1299 if accept_token
== 42 then
1300 return new TKwnew.init_tk
(location
)
1302 if accept_token
== 43 then
1303 return new TKwisa.init_tk
(location
)
1305 if accept_token
== 44 then
1306 return new TKwonce.init_tk
(location
)
1308 if accept_token
== 45 then
1309 return new TKwsuper.init_tk
(location
)
1311 if accept_token
== 46 then
1312 return new TKwself.init_tk
(location
)
1314 if accept_token
== 47 then
1315 return new TKwtrue.init_tk
(location
)
1317 if accept_token
== 48 then
1318 return new TKwfalse.init_tk
(location
)
1320 if accept_token
== 49 then
1321 return new TKwnull.init_tk
(location
)
1323 if accept_token
== 50 then
1324 return new TKwas.init_tk
(location
)
1326 if accept_token
== 51 then
1327 return new TKwnullable.init_tk
(location
)
1329 if accept_token
== 52 then
1330 return new TKwisset.init_tk
(location
)
1332 if accept_token
== 53 then
1333 return new TKwlabel.init_tk
(location
)
1335 if accept_token
== 54 then
1336 return new TKwdebug.init_tk
(location
)
1338 if accept_token
== 55 then
1339 return new TOpar.init_tk
(location
)
1341 if accept_token
== 56 then
1342 return new TCpar.init_tk
(location
)
1344 if accept_token
== 57 then
1345 return new TObra.init_tk
(location
)
1347 if accept_token
== 58 then
1348 return new TCbra.init_tk
(location
)
1350 if accept_token
== 59 then
1351 return new TComma.init_tk
(location
)
1353 if accept_token
== 60 then
1354 return new TColumn.init_tk
(location
)
1356 if accept_token
== 61 then
1357 return new TQuad.init_tk
(location
)
1359 if accept_token
== 62 then
1360 return new TAssign.init_tk
(location
)
1362 if accept_token
== 63 then
1363 return new TPluseq.init_tk
(location
)
1365 if accept_token
== 64 then
1366 return new TMinuseq.init_tk
(location
)
1368 if accept_token
== 65 then
1369 return new TDotdotdot.init_tk
(location
)
1371 if accept_token
== 66 then
1372 return new TDotdot.init_tk
(location
)
1374 if accept_token
== 67 then
1375 return new TDot.init_tk
(location
)
1377 if accept_token
== 68 then
1378 return new TPlus.init_tk
(location
)
1380 if accept_token
== 69 then
1381 return new TMinus.init_tk
(location
)
1383 if accept_token
== 70 then
1384 return new TStar.init_tk
(location
)
1386 if accept_token
== 71 then
1387 return new TSlash.init_tk
(location
)
1389 if accept_token
== 72 then
1390 return new TPercent.init_tk
(location
)
1392 if accept_token
== 73 then
1393 return new TEq.init_tk
(location
)
1395 if accept_token
== 74 then
1396 return new TNe.init_tk
(location
)
1398 if accept_token
== 75 then
1399 return new TLt.init_tk
(location
)
1401 if accept_token
== 76 then
1402 return new TLe.init_tk
(location
)
1404 if accept_token
== 77 then
1405 return new TLl.init_tk
(location
)
1407 if accept_token
== 78 then
1408 return new TGt.init_tk
(location
)
1410 if accept_token
== 79 then
1411 return new TGe.init_tk
(location
)
1413 if accept_token
== 80 then
1414 return new TGg.init_tk
(location
)
1416 if accept_token
== 81 then
1417 return new TStarship.init_tk
(location
)
1419 if accept_token
== 82 then
1420 return new TBang.init_tk
(location
)
1422 if accept_token
== 83 then
1423 return new TAt.init_tk
(location
)
1425 if accept_token
== 84 then
1426 return new TClassid.init_tk
(location
)
1428 if accept_token
== 85 then
1429 return new TId.init_tk
(location
)
1431 if accept_token
== 86 then
1432 return new TAttrid.init_tk
(location
)
1434 if accept_token
== 87 then
1435 return new TNumber.init_tk
(location
)
1437 if accept_token
== 88 then
1438 return new THexNumber.init_tk
(location
)
1440 if accept_token
== 89 then
1441 return new TFloat.init_tk
(location
)
1443 if accept_token
== 90 then
1444 return new TString.init_tk
(location
)
1446 if accept_token
== 91 then
1447 return new TStartString.init_tk
(location
)
1449 if accept_token
== 92 then
1450 return new TMidString.init_tk
(location
)
1452 if accept_token
== 93 then
1453 return new TEndString.init_tk
(location
)
1455 if accept_token
== 94 then
1456 return new TChar.init_tk
(location
)
1458 if accept_token
== 95 then
1459 return new TBadString.init_tk
(location
)
1461 if accept_token
== 96 then
1462 return new TBadChar.init_tk
(location
)
1464 if accept_token
== 97 then
1465 return new TExternCodeSegment.init_tk
(location
)
1467 abort # unknown token index `accept_token`