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)
202 redef fun parser_index
: Int
207 init init_tk
(loc
: Location)
213 redef class TKwextern
214 redef fun parser_index
: Int
219 init init_tk
(loc
: Location)
225 redef class TKwpublic
226 redef fun parser_index
: Int
231 init init_tk
(loc
: Location)
237 redef class TKwprotected
238 redef fun parser_index
: Int
243 init init_tk
(loc
: Location)
249 redef class TKwprivate
250 redef fun parser_index
: Int
255 init init_tk
(loc
: Location)
261 redef class TKwintrude
262 redef fun parser_index
: Int
267 init init_tk
(loc
: Location)
274 redef fun parser_index
: Int
279 init init_tk
(loc
: Location)
286 redef fun parser_index
: Int
291 init init_tk
(loc
: Location)
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)
393 redef class TKwimplies
394 redef fun parser_index
: Int
399 init init_tk
(loc
: Location)
405 redef class TKwreturn
406 redef fun parser_index
: Int
411 init init_tk
(loc
: Location)
417 redef class TKwcontinue
418 redef fun parser_index
: Int
423 init init_tk
(loc
: Location)
430 redef fun parser_index
: Int
435 init init_tk
(loc
: Location)
442 redef fun parser_index
: Int
447 init init_tk
(loc
: Location)
453 redef class TKwassert
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)
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)
573 redef class TKwnullable
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)
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)
741 redef class TDotdotdot
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)
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)
813 redef class TStarstar
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)
945 redef class TStarship
946 redef fun parser_index
: Int
951 init init_tk
(loc
: Location)
958 redef fun parser_index
: Int
963 init init_tk
(loc
: Location)
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)
1006 redef fun parser_index
: Int
1011 init init_tk
(loc
: Location)
1018 redef fun parser_index
: Int
1023 init init_tk
(loc
: Location)
1029 redef class THexNumber
1030 redef fun parser_index
: Int
1035 init init_tk
(loc
: Location)
1042 redef fun parser_index
: Int
1047 init init_tk
(loc
: Location)
1054 redef fun parser_index
: Int
1059 init init_tk
(loc
: Location)
1065 redef class TStartString
1066 redef fun parser_index
: Int
1071 init init_tk
(loc
: Location)
1077 redef class TMidString
1078 redef fun parser_index
: Int
1083 init init_tk
(loc
: Location)
1089 redef class TEndString
1090 redef fun parser_index
: Int
1095 init init_tk
(loc
: Location)
1102 redef fun parser_index
: Int
1107 init init_tk
(loc
: Location)
1113 redef class TBadString
1114 redef fun parser_index
: Int
1119 init init_tk
(loc
: Location)
1125 redef class TBadChar
1126 redef fun parser_index
: Int
1131 init init_tk
(loc
: Location)
1137 redef class TExternCodeSegment
1138 redef fun parser_index
: Int
1143 init init_tk
(loc
: Location)
1151 redef fun parser_index
: Int
1158 redef fun make_token
(accept_token
, location
)
1160 if accept_token
== 1 then
1161 return new TEol.init_tk
(location
)
1163 if accept_token
== 2 then
1164 return new TComment.init_tk
(location
)
1166 if accept_token
== 3 then
1167 return new TKwpackage.init_tk
(location
)
1169 if accept_token
== 4 then
1170 return new TKwmodule.init_tk
(location
)
1172 if accept_token
== 5 then
1173 return new TKwimport.init_tk
(location
)
1175 if accept_token
== 6 then
1176 return new TKwclass.init_tk
(location
)
1178 if accept_token
== 7 then
1179 return new TKwabstract.init_tk
(location
)
1181 if accept_token
== 8 then
1182 return new TKwinterface.init_tk
(location
)
1184 if accept_token
== 9 then
1185 return new TKwenum.init_tk
(location
)
1187 if accept_token
== 10 then
1188 return new TKwend.init_tk
(location
)
1190 if accept_token
== 11 then
1191 return new TKwmeth.init_tk
(location
)
1193 if accept_token
== 12 then
1194 return new TKwtype.init_tk
(location
)
1196 if accept_token
== 13 then
1197 return new TKwinit.init_tk
(location
)
1199 if accept_token
== 14 then
1200 return new TKwredef.init_tk
(location
)
1202 if accept_token
== 15 then
1203 return new TKwis.init_tk
(location
)
1205 if accept_token
== 16 then
1206 return new TKwdo.init_tk
(location
)
1208 if accept_token
== 17 then
1209 return new TKwvar.init_tk
(location
)
1211 if accept_token
== 18 then
1212 return new TKwextern.init_tk
(location
)
1214 if accept_token
== 19 then
1215 return new TKwpublic.init_tk
(location
)
1217 if accept_token
== 20 then
1218 return new TKwprotected.init_tk
(location
)
1220 if accept_token
== 21 then
1221 return new TKwprivate.init_tk
(location
)
1223 if accept_token
== 22 then
1224 return new TKwintrude.init_tk
(location
)
1226 if accept_token
== 23 then
1227 return new TKwif.init_tk
(location
)
1229 if accept_token
== 24 then
1230 return new TKwthen.init_tk
(location
)
1232 if accept_token
== 25 then
1233 return new TKwelse.init_tk
(location
)
1235 if accept_token
== 26 then
1236 return new TKwwhile.init_tk
(location
)
1238 if accept_token
== 27 then
1239 return new TKwloop.init_tk
(location
)
1241 if accept_token
== 28 then
1242 return new TKwfor.init_tk
(location
)
1244 if accept_token
== 29 then
1245 return new TKwin.init_tk
(location
)
1247 if accept_token
== 30 then
1248 return new TKwand.init_tk
(location
)
1250 if accept_token
== 31 then
1251 return new TKwor.init_tk
(location
)
1253 if accept_token
== 32 then
1254 return new TKwnot.init_tk
(location
)
1256 if accept_token
== 33 then
1257 return new TKwimplies.init_tk
(location
)
1259 if accept_token
== 34 then
1260 return new TKwreturn.init_tk
(location
)
1262 if accept_token
== 35 then
1263 return new TKwcontinue.init_tk
(location
)
1265 if accept_token
== 36 then
1266 return new TKwbreak.init_tk
(location
)
1268 if accept_token
== 37 then
1269 return new TKwabort.init_tk
(location
)
1271 if accept_token
== 38 then
1272 return new TKwassert.init_tk
(location
)
1274 if accept_token
== 39 then
1275 return new TKwnew.init_tk
(location
)
1277 if accept_token
== 40 then
1278 return new TKwisa.init_tk
(location
)
1280 if accept_token
== 41 then
1281 return new TKwonce.init_tk
(location
)
1283 if accept_token
== 42 then
1284 return new TKwsuper.init_tk
(location
)
1286 if accept_token
== 43 then
1287 return new TKwself.init_tk
(location
)
1289 if accept_token
== 44 then
1290 return new TKwtrue.init_tk
(location
)
1292 if accept_token
== 45 then
1293 return new TKwfalse.init_tk
(location
)
1295 if accept_token
== 46 then
1296 return new TKwnull.init_tk
(location
)
1298 if accept_token
== 47 then
1299 return new TKwas.init_tk
(location
)
1301 if accept_token
== 48 then
1302 return new TKwnullable.init_tk
(location
)
1304 if accept_token
== 49 then
1305 return new TKwisset.init_tk
(location
)
1307 if accept_token
== 50 then
1308 return new TKwlabel.init_tk
(location
)
1310 if accept_token
== 51 then
1311 return new TKwdebug.init_tk
(location
)
1313 if accept_token
== 52 then
1314 return new TOpar.init_tk
(location
)
1316 if accept_token
== 53 then
1317 return new TCpar.init_tk
(location
)
1319 if accept_token
== 54 then
1320 return new TObra.init_tk
(location
)
1322 if accept_token
== 55 then
1323 return new TCbra.init_tk
(location
)
1325 if accept_token
== 56 then
1326 return new TComma.init_tk
(location
)
1328 if accept_token
== 57 then
1329 return new TColumn.init_tk
(location
)
1331 if accept_token
== 58 then
1332 return new TQuad.init_tk
(location
)
1334 if accept_token
== 59 then
1335 return new TAssign.init_tk
(location
)
1337 if accept_token
== 60 then
1338 return new TPluseq.init_tk
(location
)
1340 if accept_token
== 61 then
1341 return new TMinuseq.init_tk
(location
)
1343 if accept_token
== 62 then
1344 return new TDotdotdot.init_tk
(location
)
1346 if accept_token
== 63 then
1347 return new TDotdot.init_tk
(location
)
1349 if accept_token
== 64 then
1350 return new TDot.init_tk
(location
)
1352 if accept_token
== 65 then
1353 return new TPlus.init_tk
(location
)
1355 if accept_token
== 66 then
1356 return new TMinus.init_tk
(location
)
1358 if accept_token
== 67 then
1359 return new TStar.init_tk
(location
)
1361 if accept_token
== 68 then
1362 return new TStarstar.init_tk
(location
)
1364 if accept_token
== 69 then
1365 return new TSlash.init_tk
(location
)
1367 if accept_token
== 70 then
1368 return new TPercent.init_tk
(location
)
1370 if accept_token
== 71 then
1371 return new TEq.init_tk
(location
)
1373 if accept_token
== 72 then
1374 return new TNe.init_tk
(location
)
1376 if accept_token
== 73 then
1377 return new TLt.init_tk
(location
)
1379 if accept_token
== 74 then
1380 return new TLe.init_tk
(location
)
1382 if accept_token
== 75 then
1383 return new TLl.init_tk
(location
)
1385 if accept_token
== 76 then
1386 return new TGt.init_tk
(location
)
1388 if accept_token
== 77 then
1389 return new TGe.init_tk
(location
)
1391 if accept_token
== 78 then
1392 return new TGg.init_tk
(location
)
1394 if accept_token
== 79 then
1395 return new TStarship.init_tk
(location
)
1397 if accept_token
== 80 then
1398 return new TBang.init_tk
(location
)
1400 if accept_token
== 81 then
1401 return new TAt.init_tk
(location
)
1403 if accept_token
== 82 then
1404 return new TClassid.init_tk
(location
)
1406 if accept_token
== 83 then
1407 return new TId.init_tk
(location
)
1409 if accept_token
== 84 then
1410 return new TAttrid.init_tk
(location
)
1412 if accept_token
== 85 then
1413 return new TNumber.init_tk
(location
)
1415 if accept_token
== 86 then
1416 return new THexNumber.init_tk
(location
)
1418 if accept_token
== 87 then
1419 return new TFloat.init_tk
(location
)
1421 if accept_token
== 88 then
1422 return new TString.init_tk
(location
)
1424 if accept_token
== 89 then
1425 return new TStartString.init_tk
(location
)
1427 if accept_token
== 90 then
1428 return new TMidString.init_tk
(location
)
1430 if accept_token
== 91 then
1431 return new TEndString.init_tk
(location
)
1433 if accept_token
== 92 then
1434 return new TChar.init_tk
(location
)
1436 if accept_token
== 93 then
1437 return new TBadString.init_tk
(location
)
1439 if accept_token
== 94 then
1440 return new TBadChar.init_tk
(location
)
1442 if accept_token
== 95 then
1443 return new TExternCodeSegment.init_tk
(location
)
1445 abort # unknown token index `accept_token`