1 # Lexer and its tokens.
2 # This file was generated by SableCC (http://www.sablecc.org/).
3 module lexer
is generated
, no_warning
("missing-doc")
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)
117 redef class TKwsubset
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)
214 redef fun parser_index
: Int
219 init init_tk
(loc
: Location)
225 redef class TKwextern
226 redef fun parser_index
: Int
231 init init_tk
(loc
: Location)
237 redef class TKwpublic
238 redef fun parser_index
: Int
243 init init_tk
(loc
: Location)
249 redef class TKwprotected
250 redef fun parser_index
: Int
255 init init_tk
(loc
: Location)
261 redef class TKwprivate
262 redef fun parser_index
: Int
267 init init_tk
(loc
: Location)
273 redef class TKwintrude
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)
394 redef fun parser_index
: Int
399 init init_tk
(loc
: Location)
405 redef class TKwimplies
406 redef fun parser_index
: Int
411 init init_tk
(loc
: Location)
417 redef class TKwreturn
418 redef fun parser_index
: Int
423 init init_tk
(loc
: Location)
429 redef class TKwcontinue
430 redef fun parser_index
: Int
435 init init_tk
(loc
: Location)
442 redef fun parser_index
: Int
447 init init_tk
(loc
: Location)
454 redef fun parser_index
: Int
459 init init_tk
(loc
: Location)
465 redef class TKwassert
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)
574 redef fun parser_index
: Int
579 init init_tk
(loc
: Location)
585 redef class TKwnullable
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)
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 TPercenteq
814 redef fun parser_index
: Int
819 init init_tk
(loc
: Location)
825 redef class TStarstareq
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)
897 redef class TDotdotdot
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 TStarstar
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)
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)
1066 redef fun parser_index
: Int
1071 init init_tk
(loc
: Location)
1078 redef fun parser_index
: Int
1083 init init_tk
(loc
: Location)
1090 redef fun parser_index
: Int
1095 init init_tk
(loc
: Location)
1102 redef fun parser_index
: Int
1107 init init_tk
(loc
: Location)
1114 redef fun parser_index
: Int
1119 init init_tk
(loc
: Location)
1126 redef fun parser_index
: Int
1131 init init_tk
(loc
: Location)
1138 redef fun parser_index
: Int
1143 init init_tk
(loc
: Location)
1149 redef class TStarship
1150 redef fun parser_index
: Int
1155 init init_tk
(loc
: Location)
1162 redef fun parser_index
: Int
1167 init init_tk
(loc
: Location)
1174 redef fun parser_index
: Int
1179 init init_tk
(loc
: Location)
1186 redef fun parser_index
: Int
1191 init init_tk
(loc
: Location)
1198 redef fun parser_index
: Int
1203 init init_tk
(loc
: Location)
1209 redef class TClassid
1210 redef fun parser_index
: Int
1215 init init_tk
(loc
: Location)
1222 redef fun parser_index
: Int
1227 init init_tk
(loc
: Location)
1234 redef fun parser_index
: Int
1239 init init_tk
(loc
: Location)
1245 redef class TInteger
1246 redef fun parser_index
: Int
1251 init init_tk
(loc
: Location)
1258 redef fun parser_index
: Int
1263 init init_tk
(loc
: Location)
1270 redef fun parser_index
: Int
1275 init init_tk
(loc
: Location)
1281 redef class TStartString
1282 redef fun parser_index
: Int
1287 init init_tk
(loc
: Location)
1293 redef class TMidString
1294 redef fun parser_index
: Int
1299 init init_tk
(loc
: Location)
1305 redef class TEndString
1306 redef fun parser_index
: Int
1311 init init_tk
(loc
: Location)
1318 redef fun parser_index
: Int
1323 init init_tk
(loc
: Location)
1329 redef class TBadString
1330 redef fun parser_index
: Int
1335 init init_tk
(loc
: Location)
1341 redef class TBadTString
1342 redef fun parser_index
: Int
1347 init init_tk
(loc
: Location)
1353 redef class TBadChar
1354 redef fun parser_index
: Int
1359 init init_tk
(loc
: Location)
1365 redef class TExternCodeSegment
1366 redef fun parser_index
: Int
1371 init init_tk
(loc
: Location)
1377 redef class TBadExtern
1378 redef fun parser_index
: Int
1383 init init_tk
(loc
: Location)
1391 redef fun parser_index
: Int
1398 redef fun make_token
(accept_token
, location
)
1400 if accept_token
== 1 then
1401 return new TEol.init_tk
(location
)
1403 if accept_token
== 2 then
1404 return new TComment.init_tk
(location
)
1406 if accept_token
== 3 then
1407 return new TKwpackage.init_tk
(location
)
1409 if accept_token
== 4 then
1410 return new TKwmodule.init_tk
(location
)
1412 if accept_token
== 5 then
1413 return new TKwimport.init_tk
(location
)
1415 if accept_token
== 6 then
1416 return new TKwclass.init_tk
(location
)
1418 if accept_token
== 7 then
1419 return new TKwabstract.init_tk
(location
)
1421 if accept_token
== 8 then
1422 return new TKwinterface.init_tk
(location
)
1424 if accept_token
== 9 then
1425 return new TKwenum.init_tk
(location
)
1427 if accept_token
== 10 then
1428 return new TKwsubset.init_tk
(location
)
1430 if accept_token
== 11 then
1431 return new TKwend.init_tk
(location
)
1433 if accept_token
== 12 then
1434 return new TKwmeth.init_tk
(location
)
1436 if accept_token
== 13 then
1437 return new TKwtype.init_tk
(location
)
1439 if accept_token
== 14 then
1440 return new TKwinit.init_tk
(location
)
1442 if accept_token
== 15 then
1443 return new TKwredef.init_tk
(location
)
1445 if accept_token
== 16 then
1446 return new TKwis.init_tk
(location
)
1448 if accept_token
== 17 then
1449 return new TKwdo.init_tk
(location
)
1451 if accept_token
== 18 then
1452 return new TKwvar.init_tk
(location
)
1454 if accept_token
== 19 then
1455 return new TKwextern.init_tk
(location
)
1457 if accept_token
== 20 then
1458 return new TKwpublic.init_tk
(location
)
1460 if accept_token
== 21 then
1461 return new TKwprotected.init_tk
(location
)
1463 if accept_token
== 22 then
1464 return new TKwprivate.init_tk
(location
)
1466 if accept_token
== 23 then
1467 return new TKwintrude.init_tk
(location
)
1469 if accept_token
== 24 then
1470 return new TKwif.init_tk
(location
)
1472 if accept_token
== 25 then
1473 return new TKwthen.init_tk
(location
)
1475 if accept_token
== 26 then
1476 return new TKwelse.init_tk
(location
)
1478 if accept_token
== 27 then
1479 return new TKwwhile.init_tk
(location
)
1481 if accept_token
== 28 then
1482 return new TKwloop.init_tk
(location
)
1484 if accept_token
== 29 then
1485 return new TKwfor.init_tk
(location
)
1487 if accept_token
== 30 then
1488 return new TKwin.init_tk
(location
)
1490 if accept_token
== 31 then
1491 return new TKwand.init_tk
(location
)
1493 if accept_token
== 32 then
1494 return new TKwor.init_tk
(location
)
1496 if accept_token
== 33 then
1497 return new TKwnot.init_tk
(location
)
1499 if accept_token
== 34 then
1500 return new TKwimplies.init_tk
(location
)
1502 if accept_token
== 35 then
1503 return new TKwreturn.init_tk
(location
)
1505 if accept_token
== 36 then
1506 return new TKwcontinue.init_tk
(location
)
1508 if accept_token
== 37 then
1509 return new TKwbreak.init_tk
(location
)
1511 if accept_token
== 38 then
1512 return new TKwabort.init_tk
(location
)
1514 if accept_token
== 39 then
1515 return new TKwassert.init_tk
(location
)
1517 if accept_token
== 40 then
1518 return new TKwnew.init_tk
(location
)
1520 if accept_token
== 41 then
1521 return new TKwisa.init_tk
(location
)
1523 if accept_token
== 42 then
1524 return new TKwonce.init_tk
(location
)
1526 if accept_token
== 43 then
1527 return new TKwsuper.init_tk
(location
)
1529 if accept_token
== 44 then
1530 return new TKwself.init_tk
(location
)
1532 if accept_token
== 45 then
1533 return new TKwtrue.init_tk
(location
)
1535 if accept_token
== 46 then
1536 return new TKwfalse.init_tk
(location
)
1538 if accept_token
== 47 then
1539 return new TKwnull.init_tk
(location
)
1541 if accept_token
== 48 then
1542 return new TKwas.init_tk
(location
)
1544 if accept_token
== 49 then
1545 return new TKwnullable.init_tk
(location
)
1547 if accept_token
== 50 then
1548 return new TKwisset.init_tk
(location
)
1550 if accept_token
== 51 then
1551 return new TKwlabel.init_tk
(location
)
1553 if accept_token
== 52 then
1554 return new TKwwith.init_tk
(location
)
1556 if accept_token
== 53 then
1557 return new TKwdebug.init_tk
(location
)
1559 if accept_token
== 54 then
1560 return new TKwyield.init_tk
(location
)
1562 if accept_token
== 55 then
1563 return new TKwcatch.init_tk
(location
)
1565 if accept_token
== 56 then
1566 return new TOpar.init_tk
(location
)
1568 if accept_token
== 57 then
1569 return new TCpar.init_tk
(location
)
1571 if accept_token
== 58 then
1572 return new TObra.init_tk
(location
)
1574 if accept_token
== 59 then
1575 return new TCbra.init_tk
(location
)
1577 if accept_token
== 60 then
1578 return new TComma.init_tk
(location
)
1580 if accept_token
== 61 then
1581 return new TColumn.init_tk
(location
)
1583 if accept_token
== 62 then
1584 return new TQuad.init_tk
(location
)
1586 if accept_token
== 63 then
1587 return new TAssign.init_tk
(location
)
1589 if accept_token
== 64 then
1590 return new TPluseq.init_tk
(location
)
1592 if accept_token
== 65 then
1593 return new TMinuseq.init_tk
(location
)
1595 if accept_token
== 66 then
1596 return new TStareq.init_tk
(location
)
1598 if accept_token
== 67 then
1599 return new TSlasheq.init_tk
(location
)
1601 if accept_token
== 68 then
1602 return new TPercenteq.init_tk
(location
)
1604 if accept_token
== 69 then
1605 return new TStarstareq.init_tk
(location
)
1607 if accept_token
== 70 then
1608 return new TPipeeq.init_tk
(location
)
1610 if accept_token
== 71 then
1611 return new TCareteq.init_tk
(location
)
1613 if accept_token
== 72 then
1614 return new TAmpeq.init_tk
(location
)
1616 if accept_token
== 73 then
1617 return new TLleq.init_tk
(location
)
1619 if accept_token
== 74 then
1620 return new TGgeq.init_tk
(location
)
1622 if accept_token
== 75 then
1623 return new TDotdotdot.init_tk
(location
)
1625 if accept_token
== 76 then
1626 return new TDotdot.init_tk
(location
)
1628 if accept_token
== 77 then
1629 return new TDot.init_tk
(location
)
1631 if accept_token
== 78 then
1632 return new TPlus.init_tk
(location
)
1634 if accept_token
== 79 then
1635 return new TMinus.init_tk
(location
)
1637 if accept_token
== 80 then
1638 return new TStar.init_tk
(location
)
1640 if accept_token
== 81 then
1641 return new TStarstar.init_tk
(location
)
1643 if accept_token
== 82 then
1644 return new TSlash.init_tk
(location
)
1646 if accept_token
== 83 then
1647 return new TPercent.init_tk
(location
)
1649 if accept_token
== 84 then
1650 return new TPipe.init_tk
(location
)
1652 if accept_token
== 85 then
1653 return new TCaret.init_tk
(location
)
1655 if accept_token
== 86 then
1656 return new TAmp.init_tk
(location
)
1658 if accept_token
== 87 then
1659 return new TTilde.init_tk
(location
)
1661 if accept_token
== 88 then
1662 return new TEq.init_tk
(location
)
1664 if accept_token
== 89 then
1665 return new TNe.init_tk
(location
)
1667 if accept_token
== 90 then
1668 return new TLt.init_tk
(location
)
1670 if accept_token
== 91 then
1671 return new TLe.init_tk
(location
)
1673 if accept_token
== 92 then
1674 return new TLl.init_tk
(location
)
1676 if accept_token
== 93 then
1677 return new TGt.init_tk
(location
)
1679 if accept_token
== 94 then
1680 return new TGe.init_tk
(location
)
1682 if accept_token
== 95 then
1683 return new TGg.init_tk
(location
)
1685 if accept_token
== 96 then
1686 return new TStarship.init_tk
(location
)
1688 if accept_token
== 97 then
1689 return new TBang.init_tk
(location
)
1691 if accept_token
== 98 then
1692 return new TQuest.init_tk
(location
)
1694 if accept_token
== 99 then
1695 return new TAt.init_tk
(location
)
1697 if accept_token
== 100 then
1698 return new TSemi.init_tk
(location
)
1700 if accept_token
== 101 then
1701 return new TClassid.init_tk
(location
)
1703 if accept_token
== 102 then
1704 return new TId.init_tk
(location
)
1706 if accept_token
== 103 then
1707 return new TAttrid.init_tk
(location
)
1709 if accept_token
== 104 then
1710 return new TInteger.init_tk
(location
)
1712 if accept_token
== 105 then
1713 return new TFloat.init_tk
(location
)
1715 if accept_token
== 106 then
1716 return new TString.init_tk
(location
)
1718 if accept_token
== 107 then
1719 return new TStartString.init_tk
(location
)
1721 if accept_token
== 108 then
1722 return new TMidString.init_tk
(location
)
1724 if accept_token
== 109 then
1725 return new TEndString.init_tk
(location
)
1727 if accept_token
== 110 then
1728 return new TChar.init_tk
(location
)
1730 if accept_token
== 111 then
1731 return new TBadString.init_tk
(location
)
1733 if accept_token
== 112 then
1734 return new TBadTString.init_tk
(location
)
1736 if accept_token
== 113 then
1737 return new TBadChar.init_tk
(location
)
1739 if accept_token
== 114 then
1740 return new TExternCodeSegment.init_tk
(location
)
1742 if accept_token
== 115 then
1743 return new TBadExtern.init_tk
(location
)
1745 abort # unknown token index `accept_token`