Changeset 53986 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/generated
- Timestamp:
- Jan 27, 2015 10:01:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/generated/dt_lex.c
r53983 r53986 989 989 #include <errno.h> 990 990 #else /* VBOX */ 991 # ifdef RT_OS_WINDOWS /* No unistd.h on windows, avoid redef warnings of the [U]INTxx_MAX defines caused by no inttypes.h/stdint.h. */ 992 # define YY_NO_UNISTD_H 993 # undef INT8_MAX 994 # undef INT16_MAX 995 # undef INT32_MAX 996 # undef INT64_MAX 997 # undef UINT8_MAX 998 # undef UINT16_MAX 999 # undef UINT32_MAX 1000 # undef UINT64_MAX 1001 # endif 991 1002 # include <iprt/ctype.h> 992 1003 # define isdigit(a_ch) RT_C_IS_DIGIT(a_ch) … … 1049 1060 */ 1050 1061 1051 #line 10 52"dt_lex.c"1062 #line 1063 "dt_lex.c" 1052 1063 1053 1064 #define INITIAL 0 … … 1239 1250 register int yy_act; 1240 1251 1241 #line 1 13"dt_lex.l"1252 #line 124 "dt_lex.l" 1242 1253 1243 1254 … … 1259 1270 1260 1271 1261 #line 12 62"dt_lex.c"1272 #line 1273 "dt_lex.c" 1262 1273 1263 1274 if ( !(yy_init) ) … … 1388 1399 case 1: 1389 1400 YY_RULE_SETUP 1390 #line 1 32"dt_lex.l"1401 #line 143 "dt_lex.l" 1391 1402 return (DT_KEY_AUTO); 1392 1403 YY_BREAK 1393 1404 case 2: 1394 1405 YY_RULE_SETUP 1395 #line 1 33"dt_lex.l"1406 #line 144 "dt_lex.l" 1396 1407 return (DT_KEY_BREAK); 1397 1408 YY_BREAK 1398 1409 case 3: 1399 1410 YY_RULE_SETUP 1400 #line 1 34"dt_lex.l"1411 #line 145 "dt_lex.l" 1401 1412 return (DT_KEY_CASE); 1402 1413 YY_BREAK 1403 1414 case 4: 1404 1415 YY_RULE_SETUP 1405 #line 1 35"dt_lex.l"1416 #line 146 "dt_lex.l" 1406 1417 return (DT_KEY_CHAR); 1407 1418 YY_BREAK 1408 1419 case 5: 1409 1420 YY_RULE_SETUP 1410 #line 1 36"dt_lex.l"1421 #line 147 "dt_lex.l" 1411 1422 return (DT_KEY_CONST); 1412 1423 YY_BREAK 1413 1424 case 6: 1414 1425 YY_RULE_SETUP 1415 #line 1 37"dt_lex.l"1426 #line 148 "dt_lex.l" 1416 1427 return (DT_KEY_CONTINUE); 1417 1428 YY_BREAK 1418 1429 case 7: 1419 1430 YY_RULE_SETUP 1420 #line 1 38"dt_lex.l"1431 #line 149 "dt_lex.l" 1421 1432 return (DT_KEY_COUNTER); 1422 1433 YY_BREAK 1423 1434 case 8: 1424 1435 YY_RULE_SETUP 1425 #line 1 39"dt_lex.l"1436 #line 150 "dt_lex.l" 1426 1437 return (DT_KEY_DEFAULT); 1427 1438 YY_BREAK 1428 1439 case 9: 1429 1440 YY_RULE_SETUP 1430 #line 1 40"dt_lex.l"1441 #line 151 "dt_lex.l" 1431 1442 return (DT_KEY_DO); 1432 1443 YY_BREAK 1433 1444 case 10: 1434 1445 YY_RULE_SETUP 1435 #line 1 41"dt_lex.l"1446 #line 152 "dt_lex.l" 1436 1447 return (DT_KEY_DOUBLE); 1437 1448 YY_BREAK 1438 1449 case 11: 1439 1450 YY_RULE_SETUP 1440 #line 1 42"dt_lex.l"1451 #line 153 "dt_lex.l" 1441 1452 return (DT_KEY_ELSE); 1442 1453 YY_BREAK 1443 1454 case 12: 1444 1455 YY_RULE_SETUP 1445 #line 1 43"dt_lex.l"1456 #line 154 "dt_lex.l" 1446 1457 return (DT_KEY_ENUM); 1447 1458 YY_BREAK 1448 1459 case 13: 1449 1460 YY_RULE_SETUP 1450 #line 1 44"dt_lex.l"1461 #line 155 "dt_lex.l" 1451 1462 return (DT_KEY_EXTERN); 1452 1463 YY_BREAK 1453 1464 case 14: 1454 1465 YY_RULE_SETUP 1455 #line 1 45"dt_lex.l"1466 #line 156 "dt_lex.l" 1456 1467 return (DT_KEY_FLOAT); 1457 1468 YY_BREAK 1458 1469 case 15: 1459 1470 YY_RULE_SETUP 1460 #line 1 46"dt_lex.l"1471 #line 157 "dt_lex.l" 1461 1472 return (DT_KEY_FOR); 1462 1473 YY_BREAK 1463 1474 case 16: 1464 1475 YY_RULE_SETUP 1465 #line 1 47"dt_lex.l"1476 #line 158 "dt_lex.l" 1466 1477 return (DT_KEY_GOTO); 1467 1478 YY_BREAK 1468 1479 case 17: 1469 1480 YY_RULE_SETUP 1470 #line 1 48"dt_lex.l"1481 #line 159 "dt_lex.l" 1471 1482 return (DT_KEY_IF); 1472 1483 YY_BREAK 1473 1484 case 18: 1474 1485 YY_RULE_SETUP 1475 #line 1 49"dt_lex.l"1486 #line 160 "dt_lex.l" 1476 1487 return (DT_KEY_IMPORT); 1477 1488 YY_BREAK 1478 1489 case 19: 1479 1490 YY_RULE_SETUP 1480 #line 1 50"dt_lex.l"1491 #line 161 "dt_lex.l" 1481 1492 return (DT_KEY_INLINE); 1482 1493 YY_BREAK 1483 1494 case 20: 1484 1495 YY_RULE_SETUP 1485 #line 1 51"dt_lex.l"1496 #line 162 "dt_lex.l" 1486 1497 return (DT_KEY_INT); 1487 1498 YY_BREAK 1488 1499 case 21: 1489 1500 YY_RULE_SETUP 1490 #line 1 52"dt_lex.l"1501 #line 163 "dt_lex.l" 1491 1502 return (DT_KEY_LONG); 1492 1503 YY_BREAK 1493 1504 case 22: 1494 1505 YY_RULE_SETUP 1495 #line 1 53"dt_lex.l"1506 #line 164 "dt_lex.l" 1496 1507 return (DT_TOK_OFFSETOF); 1497 1508 YY_BREAK 1498 1509 case 23: 1499 1510 YY_RULE_SETUP 1500 #line 1 54"dt_lex.l"1511 #line 165 "dt_lex.l" 1501 1512 return (DT_KEY_PROBE); 1502 1513 YY_BREAK 1503 1514 case 24: 1504 1515 YY_RULE_SETUP 1505 #line 1 55"dt_lex.l"1516 #line 166 "dt_lex.l" 1506 1517 return (DT_KEY_PROVIDER); 1507 1518 YY_BREAK 1508 1519 case 25: 1509 1520 YY_RULE_SETUP 1510 #line 1 56"dt_lex.l"1521 #line 167 "dt_lex.l" 1511 1522 return (DT_KEY_REGISTER); 1512 1523 YY_BREAK 1513 1524 case 26: 1514 1525 YY_RULE_SETUP 1515 #line 1 57"dt_lex.l"1526 #line 168 "dt_lex.l" 1516 1527 return (DT_KEY_RESTRICT); 1517 1528 YY_BREAK 1518 1529 case 27: 1519 1530 YY_RULE_SETUP 1520 #line 1 58"dt_lex.l"1531 #line 169 "dt_lex.l" 1521 1532 return (DT_KEY_RETURN); 1522 1533 YY_BREAK 1523 1534 case 28: 1524 1535 YY_RULE_SETUP 1525 #line 1 59"dt_lex.l"1536 #line 170 "dt_lex.l" 1526 1537 return (DT_KEY_SELF); 1527 1538 YY_BREAK 1528 1539 case 29: 1529 1540 YY_RULE_SETUP 1530 #line 1 60"dt_lex.l"1541 #line 171 "dt_lex.l" 1531 1542 return (DT_KEY_SHORT); 1532 1543 YY_BREAK 1533 1544 case 30: 1534 1545 YY_RULE_SETUP 1535 #line 1 61"dt_lex.l"1546 #line 172 "dt_lex.l" 1536 1547 return (DT_KEY_SIGNED); 1537 1548 YY_BREAK 1538 1549 case 31: 1539 1550 YY_RULE_SETUP 1540 #line 1 62"dt_lex.l"1551 #line 173 "dt_lex.l" 1541 1552 return (DT_TOK_SIZEOF); 1542 1553 YY_BREAK 1543 1554 case 32: 1544 1555 YY_RULE_SETUP 1545 #line 1 63"dt_lex.l"1556 #line 174 "dt_lex.l" 1546 1557 return (DT_KEY_STATIC); 1547 1558 YY_BREAK 1548 1559 case 33: 1549 1560 YY_RULE_SETUP 1550 #line 1 64"dt_lex.l"1561 #line 175 "dt_lex.l" 1551 1562 return (DT_KEY_STRING); 1552 1563 YY_BREAK 1553 1564 case 34: 1554 1565 YY_RULE_SETUP 1555 #line 1 65"dt_lex.l"1566 #line 176 "dt_lex.l" 1556 1567 return (DT_TOK_STRINGOF); 1557 1568 YY_BREAK 1558 1569 case 35: 1559 1570 YY_RULE_SETUP 1560 #line 1 66"dt_lex.l"1571 #line 177 "dt_lex.l" 1561 1572 return (DT_KEY_STRUCT); 1562 1573 YY_BREAK 1563 1574 case 36: 1564 1575 YY_RULE_SETUP 1565 #line 1 67"dt_lex.l"1576 #line 178 "dt_lex.l" 1566 1577 return (DT_KEY_SWITCH); 1567 1578 YY_BREAK 1568 1579 case 37: 1569 1580 YY_RULE_SETUP 1570 #line 1 68"dt_lex.l"1581 #line 179 "dt_lex.l" 1571 1582 return (DT_KEY_THIS); 1572 1583 YY_BREAK 1573 1584 case 38: 1574 1585 YY_RULE_SETUP 1575 #line 1 69"dt_lex.l"1586 #line 180 "dt_lex.l" 1576 1587 return (DT_KEY_XLATOR); 1577 1588 YY_BREAK 1578 1589 case 39: 1579 1590 YY_RULE_SETUP 1580 #line 1 70"dt_lex.l"1591 #line 181 "dt_lex.l" 1581 1592 return (DT_KEY_TYPEDEF); 1582 1593 YY_BREAK 1583 1594 case 40: 1584 1595 YY_RULE_SETUP 1585 #line 1 71"dt_lex.l"1596 #line 182 "dt_lex.l" 1586 1597 return (DT_KEY_UNION); 1587 1598 YY_BREAK 1588 1599 case 41: 1589 1600 YY_RULE_SETUP 1590 #line 1 72"dt_lex.l"1601 #line 183 "dt_lex.l" 1591 1602 return (DT_KEY_UNSIGNED); 1592 1603 YY_BREAK 1593 1604 case 42: 1594 1605 YY_RULE_SETUP 1595 #line 1 73"dt_lex.l"1606 #line 184 "dt_lex.l" 1596 1607 return (DT_KEY_VOID); 1597 1608 YY_BREAK 1598 1609 case 43: 1599 1610 YY_RULE_SETUP 1600 #line 1 74"dt_lex.l"1611 #line 185 "dt_lex.l" 1601 1612 return (DT_KEY_VOLATILE); 1602 1613 YY_BREAK 1603 1614 case 44: 1604 1615 YY_RULE_SETUP 1605 #line 1 75"dt_lex.l"1616 #line 186 "dt_lex.l" 1606 1617 return (DT_KEY_WHILE); 1607 1618 YY_BREAK 1608 1619 case 45: 1609 1620 YY_RULE_SETUP 1610 #line 1 76"dt_lex.l"1621 #line 187 "dt_lex.l" 1611 1622 return (DT_TOK_XLATE); 1612 1623 YY_BREAK 1613 1624 case 46: 1614 1625 YY_RULE_SETUP 1615 #line 1 78"dt_lex.l"1626 #line 189 "dt_lex.l" 1616 1627 { yybegin(YYS_EXPR); return (DT_KEY_AUTO); } 1617 1628 YY_BREAK 1618 1629 case 47: 1619 1630 YY_RULE_SETUP 1620 #line 1 79"dt_lex.l"1631 #line 190 "dt_lex.l" 1621 1632 { yybegin(YYS_EXPR); return (DT_KEY_CHAR); } 1622 1633 YY_BREAK 1623 1634 case 48: 1624 1635 YY_RULE_SETUP 1625 #line 1 80"dt_lex.l"1636 #line 191 "dt_lex.l" 1626 1637 { yybegin(YYS_EXPR); return (DT_KEY_CONST); } 1627 1638 YY_BREAK 1628 1639 case 49: 1629 1640 YY_RULE_SETUP 1630 #line 1 81"dt_lex.l"1641 #line 192 "dt_lex.l" 1631 1642 { yybegin(YYS_DEFINE); return (DT_KEY_COUNTER); } 1632 1643 YY_BREAK 1633 1644 case 50: 1634 1645 YY_RULE_SETUP 1635 #line 1 82"dt_lex.l"1646 #line 193 "dt_lex.l" 1636 1647 { yybegin(YYS_EXPR); return (DT_KEY_DOUBLE); } 1637 1648 YY_BREAK 1638 1649 case 51: 1639 1650 YY_RULE_SETUP 1640 #line 1 83"dt_lex.l"1651 #line 194 "dt_lex.l" 1641 1652 { yybegin(YYS_EXPR); return (DT_KEY_ENUM); } 1642 1653 YY_BREAK 1643 1654 case 52: 1644 1655 YY_RULE_SETUP 1645 #line 1 84"dt_lex.l"1656 #line 195 "dt_lex.l" 1646 1657 { yybegin(YYS_EXPR); return (DT_KEY_EXTERN); } 1647 1658 YY_BREAK 1648 1659 case 53: 1649 1660 YY_RULE_SETUP 1650 #line 1 85"dt_lex.l"1661 #line 196 "dt_lex.l" 1651 1662 { yybegin(YYS_EXPR); return (DT_KEY_FLOAT); } 1652 1663 YY_BREAK 1653 1664 case 54: 1654 1665 YY_RULE_SETUP 1655 #line 1 86"dt_lex.l"1666 #line 197 "dt_lex.l" 1656 1667 { yybegin(YYS_EXPR); return (DT_KEY_IMPORT); } 1657 1668 YY_BREAK 1658 1669 case 55: 1659 1670 YY_RULE_SETUP 1660 #line 1 87"dt_lex.l"1671 #line 198 "dt_lex.l" 1661 1672 { yybegin(YYS_DEFINE); return (DT_KEY_INLINE); } 1662 1673 YY_BREAK 1663 1674 case 56: 1664 1675 YY_RULE_SETUP 1665 #line 1 88"dt_lex.l"1676 #line 199 "dt_lex.l" 1666 1677 { yybegin(YYS_EXPR); return (DT_KEY_INT); } 1667 1678 YY_BREAK 1668 1679 case 57: 1669 1680 YY_RULE_SETUP 1670 #line 189"dt_lex.l"1681 #line 200 "dt_lex.l" 1671 1682 { yybegin(YYS_EXPR); return (DT_KEY_LONG); } 1672 1683 YY_BREAK 1673 1684 case 58: 1674 1685 YY_RULE_SETUP 1675 #line 190"dt_lex.l"1686 #line 201 "dt_lex.l" 1676 1687 { yybegin(YYS_DEFINE); return (DT_KEY_PROVIDER); } 1677 1688 YY_BREAK 1678 1689 case 59: 1679 1690 YY_RULE_SETUP 1680 #line 191"dt_lex.l"1691 #line 202 "dt_lex.l" 1681 1692 { yybegin(YYS_EXPR); return (DT_KEY_REGISTER); } 1682 1693 YY_BREAK 1683 1694 case 60: 1684 1695 YY_RULE_SETUP 1685 #line 192"dt_lex.l"1696 #line 203 "dt_lex.l" 1686 1697 { yybegin(YYS_EXPR); return (DT_KEY_RESTRICT); } 1687 1698 YY_BREAK 1688 1699 case 61: 1689 1700 YY_RULE_SETUP 1690 #line 193"dt_lex.l"1701 #line 204 "dt_lex.l" 1691 1702 { yybegin(YYS_EXPR); return (DT_KEY_SELF); } 1692 1703 YY_BREAK 1693 1704 case 62: 1694 1705 YY_RULE_SETUP 1695 #line 194"dt_lex.l"1706 #line 205 "dt_lex.l" 1696 1707 { yybegin(YYS_EXPR); return (DT_KEY_SHORT); } 1697 1708 YY_BREAK 1698 1709 case 63: 1699 1710 YY_RULE_SETUP 1700 #line 195"dt_lex.l"1711 #line 206 "dt_lex.l" 1701 1712 { yybegin(YYS_EXPR); return (DT_KEY_SIGNED); } 1702 1713 YY_BREAK 1703 1714 case 64: 1704 1715 YY_RULE_SETUP 1705 #line 196"dt_lex.l"1716 #line 207 "dt_lex.l" 1706 1717 { yybegin(YYS_EXPR); return (DT_KEY_STATIC); } 1707 1718 YY_BREAK 1708 1719 case 65: 1709 1720 YY_RULE_SETUP 1710 #line 197"dt_lex.l"1721 #line 208 "dt_lex.l" 1711 1722 { yybegin(YYS_EXPR); return (DT_KEY_STRING); } 1712 1723 YY_BREAK 1713 1724 case 66: 1714 1725 YY_RULE_SETUP 1715 #line 198"dt_lex.l"1726 #line 209 "dt_lex.l" 1716 1727 { yybegin(YYS_EXPR); return (DT_KEY_STRUCT); } 1717 1728 YY_BREAK 1718 1729 case 67: 1719 1730 YY_RULE_SETUP 1720 #line 199"dt_lex.l"1731 #line 210 "dt_lex.l" 1721 1732 { yybegin(YYS_EXPR); return (DT_KEY_THIS); } 1722 1733 YY_BREAK 1723 1734 case 68: 1724 1735 YY_RULE_SETUP 1725 #line 2 00"dt_lex.l"1736 #line 211 "dt_lex.l" 1726 1737 { yybegin(YYS_DEFINE); return (DT_KEY_XLATOR); } 1727 1738 YY_BREAK 1728 1739 case 69: 1729 1740 YY_RULE_SETUP 1730 #line 2 01"dt_lex.l"1741 #line 212 "dt_lex.l" 1731 1742 { yybegin(YYS_EXPR); return (DT_KEY_TYPEDEF); } 1732 1743 YY_BREAK 1733 1744 case 70: 1734 1745 YY_RULE_SETUP 1735 #line 2 02"dt_lex.l"1746 #line 213 "dt_lex.l" 1736 1747 { yybegin(YYS_EXPR); return (DT_KEY_UNION); } 1737 1748 YY_BREAK 1738 1749 case 71: 1739 1750 YY_RULE_SETUP 1740 #line 2 03"dt_lex.l"1751 #line 214 "dt_lex.l" 1741 1752 { yybegin(YYS_EXPR); return (DT_KEY_UNSIGNED); } 1742 1753 YY_BREAK 1743 1754 case 72: 1744 1755 YY_RULE_SETUP 1745 #line 2 04"dt_lex.l"1756 #line 215 "dt_lex.l" 1746 1757 { yybegin(YYS_EXPR); return (DT_KEY_VOID); } 1747 1758 YY_BREAK 1748 1759 case 73: 1749 1760 YY_RULE_SETUP 1750 #line 2 05"dt_lex.l"1761 #line 216 "dt_lex.l" 1751 1762 { yybegin(YYS_EXPR); return (DT_KEY_VOLATILE); } 1752 1763 YY_BREAK 1753 1764 case 74: 1754 1765 YY_RULE_SETUP 1755 #line 2 07"dt_lex.l"1766 #line 218 "dt_lex.l" 1756 1767 { 1757 1768 int i = atoi(yytext + 2); … … 1786 1797 case 75: 1787 1798 YY_RULE_SETUP 1788 #line 2 37"dt_lex.l"1799 #line 248 "dt_lex.l" 1789 1800 { 1790 1801 int i = atoi(yytext + 1); … … 1870 1881 case 76: 1871 1882 YY_RULE_SETUP 1872 #line 3 18"dt_lex.l"1883 #line 329 "dt_lex.l" 1873 1884 { 1874 1885 dt_ident_t *idp = dt_idhash_lookup( … … 1895 1906 case 77: 1896 1907 YY_RULE_SETUP 1897 #line 3 40"dt_lex.l"1908 #line 351 "dt_lex.l" 1898 1909 { 1899 1910 dt_ident_t *idp = dt_idhash_lookup( … … 1919 1930 case 78: 1920 1931 YY_RULE_SETUP 1921 #line 3 61"dt_lex.l"1932 #line 372 "dt_lex.l" 1922 1933 { 1923 1934 return (id_or_type(yytext)); … … 1926 1937 case 79: 1927 1938 YY_RULE_SETUP 1928 #line 3 65"dt_lex.l"1939 #line 376 "dt_lex.l" 1929 1940 { 1930 1941 if ((yylval.l_str = strdup(yytext)) == NULL) … … 1935 1946 case 80: 1936 1947 YY_RULE_SETUP 1937 #line 3 71"dt_lex.l"1948 #line 382 "dt_lex.l" 1938 1949 { 1939 1950 if ((yylval.l_str = strdup("@_")) == NULL) … … 1943 1954 YY_BREAK 1944 1955 case 81: 1945 #line 3 78"dt_lex.l"1956 #line 389 "dt_lex.l" 1946 1957 case 82: 1947 #line 3 79"dt_lex.l"1958 #line 390 "dt_lex.l" 1948 1959 case 83: 1949 1960 YY_RULE_SETUP 1950 #line 3 79"dt_lex.l"1961 #line 390 "dt_lex.l" 1951 1962 { 1952 1963 char *p; … … 1984 1995 case 84: 1985 1996 YY_RULE_SETUP 1986 #line 4 12"dt_lex.l"1997 #line 423 "dt_lex.l" 1987 1998 yyerror("floating-point constants are not permitted\n"); 1988 1999 YY_BREAK … … 1993 2004 case 85: 1994 2005 YY_RULE_SETUP 1995 #line 4 18"dt_lex.l"2006 #line 429 "dt_lex.l" 1996 2007 xyerror(D_STR_NL, "newline encountered in string literal"); 1997 2008 YY_BREAK 1998 2009 case 86: 1999 #line 4 21"dt_lex.l"2010 #line 432 "dt_lex.l" 2000 2011 case 87: 2001 2012 YY_RULE_SETUP 2002 #line 4 21"dt_lex.l"2013 #line 432 "dt_lex.l" 2003 2014 { 2004 2015 /* … … 2021 2032 case 88: 2022 2033 YY_RULE_SETUP 2023 #line 4 39"dt_lex.l"2034 #line 450 "dt_lex.l" 2024 2035 xyerror(D_CHR_NL, "newline encountered in character constant"); 2025 2036 YY_BREAK 2026 2037 case 89: 2027 2038 YY_RULE_SETUP 2028 #line 4 41"dt_lex.l"2039 #line 452 "dt_lex.l" 2029 2040 { 2030 2041 char *s, *p, *q; … … 2062 2073 YY_BREAK 2063 2074 case 90: 2064 #line 4 76"dt_lex.l"2075 #line 487 "dt_lex.l" 2065 2076 case 91: 2066 2077 YY_RULE_SETUP 2067 #line 4 76"dt_lex.l"2078 #line 487 "dt_lex.l" 2068 2079 { 2069 2080 yypcb->pcb_cstate = (YYSTATE); … … 2072 2083 YY_BREAK 2073 2084 case 92: 2074 #line 4 82"dt_lex.l"2085 #line 493 "dt_lex.l" 2075 2086 case 93: 2076 2087 YY_RULE_SETUP 2077 #line 4 82"dt_lex.l"2088 #line 493 "dt_lex.l" 2078 2089 ; /* discard any #! lines */ 2079 2090 YY_BREAK 2080 2091 case 94: 2081 #line 4 85"dt_lex.l"2092 #line 496 "dt_lex.l" 2082 2093 case 95: 2083 #line 4 86"dt_lex.l"2094 #line 497 "dt_lex.l" 2084 2095 case 96: 2085 2096 YY_RULE_SETUP 2086 #line 4 86"dt_lex.l"2097 #line 497 "dt_lex.l" 2087 2098 { 2088 2099 assert(yypragma == NULL); … … 2093 2104 case 97: 2094 2105 YY_RULE_SETUP 2095 #line 492"dt_lex.l"2106 #line 503 "dt_lex.l" 2096 2107 ; /* discard */ 2097 2108 YY_BREAK … … 2099 2110 /* rule 98 can match eol */ 2100 2111 YY_RULE_SETUP 2101 #line 493"dt_lex.l"2112 #line 504 "dt_lex.l" 2102 2113 ; /* discard */ 2103 2114 YY_BREAK 2104 2115 case 99: 2105 2116 YY_RULE_SETUP 2106 #line 495"dt_lex.l"2117 #line 506 "dt_lex.l" 2107 2118 { 2108 2119 int c, tok; … … 2141 2152 case 100: 2142 2153 YY_RULE_SETUP 2143 #line 5 29"dt_lex.l"2154 #line 540 "dt_lex.l" 2144 2155 { 2145 2156 yypcb->pcb_parens++; … … 2149 2160 case 101: 2150 2161 YY_RULE_SETUP 2151 #line 5 34"dt_lex.l"2162 #line 545 "dt_lex.l" 2152 2163 { 2153 2164 if (--yypcb->pcb_parens < 0) … … 2158 2169 case 102: 2159 2170 YY_RULE_SETUP 2160 #line 5 40"dt_lex.l"2171 #line 551 "dt_lex.l" 2161 2172 { 2162 2173 yypcb->pcb_brackets++; … … 2166 2177 case 103: 2167 2178 YY_RULE_SETUP 2168 #line 5 45"dt_lex.l"2179 #line 556 "dt_lex.l" 2169 2180 { 2170 2181 if (--yypcb->pcb_brackets < 0) … … 2174 2185 YY_BREAK 2175 2186 case 104: 2176 #line 5 52"dt_lex.l"2187 #line 563 "dt_lex.l" 2177 2188 case 105: 2178 2189 YY_RULE_SETUP 2179 #line 5 52"dt_lex.l"2190 #line 563 "dt_lex.l" 2180 2191 { 2181 2192 yypcb->pcb_braces++; … … 2185 2196 case 106: 2186 2197 YY_RULE_SETUP 2187 #line 5 57"dt_lex.l"2198 #line 568 "dt_lex.l" 2188 2199 { 2189 2200 if (--yypcb->pcb_braces < 0) … … 2194 2205 case 107: 2195 2206 YY_RULE_SETUP 2196 #line 5 63"dt_lex.l"2207 #line 574 "dt_lex.l" 2197 2208 return (DT_TOK_BOR); 2198 2209 YY_BREAK 2199 2210 case 108: 2200 2211 YY_RULE_SETUP 2201 #line 5 64"dt_lex.l"2212 #line 575 "dt_lex.l" 2202 2213 return (DT_TOK_XOR); 2203 2214 YY_BREAK 2204 2215 case 109: 2205 2216 YY_RULE_SETUP 2206 #line 5 65"dt_lex.l"2217 #line 576 "dt_lex.l" 2207 2218 return (DT_TOK_BAND); 2208 2219 YY_BREAK 2209 2220 case 110: 2210 2221 YY_RULE_SETUP 2211 #line 5 66"dt_lex.l"2222 #line 577 "dt_lex.l" 2212 2223 return (DT_TOK_LAND); 2213 2224 YY_BREAK 2214 2225 case 111: 2215 2226 YY_RULE_SETUP 2216 #line 5 67"dt_lex.l"2227 #line 578 "dt_lex.l" 2217 2228 return (DT_TOK_LXOR); 2218 2229 YY_BREAK 2219 2230 case 112: 2220 2231 YY_RULE_SETUP 2221 #line 5 68"dt_lex.l"2232 #line 579 "dt_lex.l" 2222 2233 return (DT_TOK_LOR); 2223 2234 YY_BREAK 2224 2235 case 113: 2225 2236 YY_RULE_SETUP 2226 #line 5 69"dt_lex.l"2237 #line 580 "dt_lex.l" 2227 2238 return (DT_TOK_EQU); 2228 2239 YY_BREAK 2229 2240 case 114: 2230 2241 YY_RULE_SETUP 2231 #line 5 70"dt_lex.l"2242 #line 581 "dt_lex.l" 2232 2243 return (DT_TOK_NEQ); 2233 2244 YY_BREAK 2234 2245 case 115: 2235 2246 YY_RULE_SETUP 2236 #line 5 71"dt_lex.l"2247 #line 582 "dt_lex.l" 2237 2248 return (DT_TOK_LT); 2238 2249 YY_BREAK 2239 2250 case 116: 2240 2251 YY_RULE_SETUP 2241 #line 5 72"dt_lex.l"2252 #line 583 "dt_lex.l" 2242 2253 return (DT_TOK_LE); 2243 2254 YY_BREAK 2244 2255 case 117: 2245 2256 YY_RULE_SETUP 2246 #line 5 73"dt_lex.l"2257 #line 584 "dt_lex.l" 2247 2258 return (DT_TOK_GT); 2248 2259 YY_BREAK 2249 2260 case 118: 2250 2261 YY_RULE_SETUP 2251 #line 5 74"dt_lex.l"2262 #line 585 "dt_lex.l" 2252 2263 return (DT_TOK_GE); 2253 2264 YY_BREAK 2254 2265 case 119: 2255 2266 YY_RULE_SETUP 2256 #line 5 75"dt_lex.l"2267 #line 586 "dt_lex.l" 2257 2268 return (DT_TOK_LSH); 2258 2269 YY_BREAK 2259 2270 case 120: 2260 2271 YY_RULE_SETUP 2261 #line 5 76"dt_lex.l"2272 #line 587 "dt_lex.l" 2262 2273 return (DT_TOK_RSH); 2263 2274 YY_BREAK 2264 2275 case 121: 2265 2276 YY_RULE_SETUP 2266 #line 5 77"dt_lex.l"2277 #line 588 "dt_lex.l" 2267 2278 return (DT_TOK_ADD); 2268 2279 YY_BREAK 2269 2280 case 122: 2270 2281 YY_RULE_SETUP 2271 #line 5 78"dt_lex.l"2282 #line 589 "dt_lex.l" 2272 2283 return (DT_TOK_SUB); 2273 2284 YY_BREAK 2274 2285 case 123: 2275 2286 YY_RULE_SETUP 2276 #line 5 79"dt_lex.l"2287 #line 590 "dt_lex.l" 2277 2288 return (DT_TOK_MUL); 2278 2289 YY_BREAK 2279 2290 case 124: 2280 2291 YY_RULE_SETUP 2281 #line 5 80"dt_lex.l"2292 #line 591 "dt_lex.l" 2282 2293 return (DT_TOK_MOD); 2283 2294 YY_BREAK 2284 2295 case 125: 2285 2296 YY_RULE_SETUP 2286 #line 5 81"dt_lex.l"2297 #line 592 "dt_lex.l" 2287 2298 return (DT_TOK_BNEG); 2288 2299 YY_BREAK 2289 2300 case 126: 2290 2301 YY_RULE_SETUP 2291 #line 5 82"dt_lex.l"2302 #line 593 "dt_lex.l" 2292 2303 return (DT_TOK_LNEG); 2293 2304 YY_BREAK 2294 2305 case 127: 2295 2306 YY_RULE_SETUP 2296 #line 5 83"dt_lex.l"2307 #line 594 "dt_lex.l" 2297 2308 return (DT_TOK_QUESTION); 2298 2309 YY_BREAK 2299 2310 case 128: 2300 2311 YY_RULE_SETUP 2301 #line 5 84"dt_lex.l"2312 #line 595 "dt_lex.l" 2302 2313 return (DT_TOK_COLON); 2303 2314 YY_BREAK 2304 2315 case 129: 2305 2316 YY_RULE_SETUP 2306 #line 5 85"dt_lex.l"2317 #line 596 "dt_lex.l" 2307 2318 return (DT_TOK_DOT); 2308 2319 YY_BREAK 2309 2320 case 130: 2310 2321 YY_RULE_SETUP 2311 #line 5 86"dt_lex.l"2322 #line 597 "dt_lex.l" 2312 2323 return (DT_TOK_PTR); 2313 2324 YY_BREAK 2314 2325 case 131: 2315 2326 YY_RULE_SETUP 2316 #line 5 87"dt_lex.l"2327 #line 598 "dt_lex.l" 2317 2328 return (DT_TOK_ASGN); 2318 2329 YY_BREAK 2319 2330 case 132: 2320 2331 YY_RULE_SETUP 2321 #line 5 88"dt_lex.l"2332 #line 599 "dt_lex.l" 2322 2333 return (DT_TOK_ADD_EQ); 2323 2334 YY_BREAK 2324 2335 case 133: 2325 2336 YY_RULE_SETUP 2326 #line 589"dt_lex.l"2337 #line 600 "dt_lex.l" 2327 2338 return (DT_TOK_SUB_EQ); 2328 2339 YY_BREAK 2329 2340 case 134: 2330 2341 YY_RULE_SETUP 2331 #line 590"dt_lex.l"2342 #line 601 "dt_lex.l" 2332 2343 return (DT_TOK_MUL_EQ); 2333 2344 YY_BREAK 2334 2345 case 135: 2335 2346 YY_RULE_SETUP 2336 #line 591"dt_lex.l"2347 #line 602 "dt_lex.l" 2337 2348 return (DT_TOK_DIV_EQ); 2338 2349 YY_BREAK 2339 2350 case 136: 2340 2351 YY_RULE_SETUP 2341 #line 592"dt_lex.l"2352 #line 603 "dt_lex.l" 2342 2353 return (DT_TOK_MOD_EQ); 2343 2354 YY_BREAK 2344 2355 case 137: 2345 2356 YY_RULE_SETUP 2346 #line 593"dt_lex.l"2357 #line 604 "dt_lex.l" 2347 2358 return (DT_TOK_AND_EQ); 2348 2359 YY_BREAK 2349 2360 case 138: 2350 2361 YY_RULE_SETUP 2351 #line 594"dt_lex.l"2362 #line 605 "dt_lex.l" 2352 2363 return (DT_TOK_XOR_EQ); 2353 2364 YY_BREAK 2354 2365 case 139: 2355 2366 YY_RULE_SETUP 2356 #line 595"dt_lex.l"2367 #line 606 "dt_lex.l" 2357 2368 return (DT_TOK_OR_EQ); 2358 2369 YY_BREAK 2359 2370 case 140: 2360 2371 YY_RULE_SETUP 2361 #line 596"dt_lex.l"2372 #line 607 "dt_lex.l" 2362 2373 return (DT_TOK_LSH_EQ); 2363 2374 YY_BREAK 2364 2375 case 141: 2365 2376 YY_RULE_SETUP 2366 #line 597"dt_lex.l"2377 #line 608 "dt_lex.l" 2367 2378 return (DT_TOK_RSH_EQ); 2368 2379 YY_BREAK 2369 2380 case 142: 2370 2381 YY_RULE_SETUP 2371 #line 598"dt_lex.l"2382 #line 609 "dt_lex.l" 2372 2383 return (DT_TOK_ADDADD); 2373 2384 YY_BREAK 2374 2385 case 143: 2375 2386 YY_RULE_SETUP 2376 #line 599"dt_lex.l"2387 #line 610 "dt_lex.l" 2377 2388 return (DT_TOK_SUBSUB); 2378 2389 YY_BREAK 2379 2390 case 144: 2380 2391 YY_RULE_SETUP 2381 #line 6 00"dt_lex.l"2392 #line 611 "dt_lex.l" 2382 2393 return (DT_TOK_ELLIPSIS); 2383 2394 YY_BREAK 2384 2395 case 145: 2385 2396 YY_RULE_SETUP 2386 #line 6 01"dt_lex.l"2397 #line 612 "dt_lex.l" 2387 2398 return (DT_TOK_COMMA); 2388 2399 YY_BREAK 2389 2400 case 146: 2390 2401 YY_RULE_SETUP 2391 #line 6 02"dt_lex.l"2402 #line 613 "dt_lex.l" 2392 2403 return (';'); 2393 2404 YY_BREAK … … 2395 2406 /* rule 147 can match eol */ 2396 2407 YY_RULE_SETUP 2397 #line 6 03"dt_lex.l"2408 #line 614 "dt_lex.l" 2398 2409 ; /* discard */ 2399 2410 YY_BREAK … … 2401 2412 /* rule 148 can match eol */ 2402 2413 YY_RULE_SETUP 2403 #line 6 04"dt_lex.l"2414 #line 615 "dt_lex.l" 2404 2415 ; /* discard */ 2405 2416 YY_BREAK 2406 2417 case 149: 2407 2418 YY_RULE_SETUP 2408 #line 6 05"dt_lex.l"2419 #line 616 "dt_lex.l" 2409 2420 yyerror("syntax error near \"%c\"\n", yytext[0]); 2410 2421 YY_BREAK 2411 2422 case 150: 2412 2423 YY_RULE_SETUP 2413 #line 6 07"dt_lex.l"2424 #line 618 "dt_lex.l" 2414 2425 yyerror("/* encountered inside a comment\n"); 2415 2426 YY_BREAK 2416 2427 case 151: 2417 2428 YY_RULE_SETUP 2418 #line 6 08"dt_lex.l"2429 #line 619 "dt_lex.l" 2419 2430 BEGIN(yypcb->pcb_cstate); 2420 2431 YY_BREAK 2421 2432 /* VBOX - START */ 2422 2433 case YY_STATE_EOF(S1): 2423 #line 6 10"dt_lex.l"2434 #line 621 "dt_lex.l" 2424 2435 yyerror("end-of-file encountered before matching */\n"); 2425 2436 YY_BREAK … … 2428 2439 /* rule 152 can match eol */ 2429 2440 YY_RULE_SETUP 2430 #line 6 12"dt_lex.l"2441 #line 623 "dt_lex.l" 2431 2442 ; /* discard */ 2432 2443 YY_BREAK 2433 2444 case 153: 2434 2445 YY_RULE_SETUP 2435 #line 6 14"dt_lex.l"2446 #line 625 "dt_lex.l" 2436 2447 { 2437 2448 /* … … 2489 2500 case 154: 2490 2501 YY_RULE_SETUP 2491 #line 6 67"dt_lex.l"2502 #line 678 "dt_lex.l" 2492 2503 return (DT_TOK_DIV); 2493 2504 YY_BREAK 2494 2505 case 155: 2495 2506 YY_RULE_SETUP 2496 #line 6 68"dt_lex.l"2507 #line 679 "dt_lex.l" 2497 2508 return (DT_TOK_COMMA); 2498 2509 YY_BREAK … … 2500 2511 /* rule 156 can match eol */ 2501 2512 YY_RULE_SETUP 2502 #line 6 70"dt_lex.l"2513 #line 681 "dt_lex.l" 2503 2514 ; /* discard */ 2504 2515 YY_BREAK 2505 2516 case 157: 2506 2517 YY_RULE_SETUP 2507 #line 6 71"dt_lex.l"2518 #line 682 "dt_lex.l" 2508 2519 yyerror("syntax error near \"%c\"\n", yytext[0]); 2509 2520 YY_BREAK … … 2511 2522 /* rule 158 can match eol */ 2512 2523 YY_RULE_SETUP 2513 #line 6 73"dt_lex.l"2524 #line 684 "dt_lex.l" 2514 2525 { 2515 2526 dt_pragma(yypragma); … … 2520 2531 case 159: 2521 2532 YY_RULE_SETUP 2522 #line 6 79"dt_lex.l"2533 #line 690 "dt_lex.l" 2523 2534 ; /* discard */ 2524 2535 YY_BREAK 2525 2536 case 160: 2526 2537 YY_RULE_SETUP 2527 #line 6 81"dt_lex.l"2538 #line 692 "dt_lex.l" 2528 2539 { 2529 2540 dt_node_t *dnp; … … 2547 2558 /* VBOX - BEGIN */ 2548 2559 case YY_STATE_EOF(S3): 2549 #line 7 01"dt_lex.l"2560 #line 712 "dt_lex.l" 2550 2561 yyerror("end-of-file encountered before end of control line\n"); 2551 2562 YY_BREAK … … 2553 2564 case 161: 2554 2565 YY_RULE_SETUP 2555 #line 7 03"dt_lex.l"2566 #line 714 "dt_lex.l" 2556 2567 yyerror("syntax error near \"%c\"\n", yytext[0]); 2557 2568 YY_BREAK 2558 2569 case 162: 2559 2570 YY_RULE_SETUP 2560 #line 7 05"dt_lex.l"2571 #line 716 "dt_lex.l" 2561 2572 ECHO; 2562 2573 YY_BREAK 2563 #line 25 64"dt_lex.c"2574 #line 2575 "dt_lex.c" 2564 2575 case YY_STATE_EOF(INITIAL): 2565 2576 case YY_STATE_EOF(S0): … … 3549 3560 #define YYTABLES_NAME "yytables" 3550 3561 3551 #line 7 05"dt_lex.l"3562 #line 716 "dt_lex.l" 3552 3563 3553 3564
Note:
See TracChangeset
for help on using the changeset viewer.