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 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911
|
#define yy_create_buffer __regina_create_buffer
#define yy_delete_buffer __regina_delete_buffer
#define yy_scan_buffer __regina_scan_buffer
#define yy_scan_string __regina_scan_string
#define yy_scan_bytes __regina_scan_bytes
#define yy_flex_debug __regina_flex_debug
#define yy_init_buffer __regina_init_buffer
#define yy_flush_buffer __regina_flush_buffer
#define yy_load_buffer_state __regina_load_buffer_state
#define yy_switch_to_buffer __regina_switch_to_buffer
#define yyin __reginain
#define yyleng __reginaleng
#define yylex __reginalex
#define yyout __reginaout
#define yyrestart __reginarestart
#define yytext __reginatext
#define yywrap __reginawrap
#line 20 "./lexsrc.c"
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /usr/local/cvsroot/Regina/lexsrc.c,v 1.6 2001/05/23 07:55:30 mark Exp $
*/
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#line 15 "flex.skl"
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#line 33 "flex.skl"
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
#if __STDC__
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative,
* we want to instead treat it as an 8-bit unsigned char, hence the
* double cast.
*/
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN yy_start = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
#line 112 "flex.skl"
extern FILE *yyin, *yyout;
#line 115 "flex.skl"
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* The funky do-while in the following #define is used to turn the definition
* int a single C statement (which needs a semi-colon terminator). This
* avoids problems with code like:
*
* if ( condition_holds )
* yyless( 5 );
* else
* do_something_else();
*
* Prior to using the do-while the compiler would get upset at the
* "else" because it interpreted the "if" statement as being all
* done when it reached the ';' after the yyless() call.
*/
/* Return all but the first 'n' matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
*yy_cp = yy_hold_char; \
YY_RESTORE_YY_MORE_OFFSET \
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext_ptr )
/* The following is because we cannot portably get our hands on size_t
* (without autoconf's help, which isn't available because we want
* flex-generated scanners to compile on their own).
*/
typedef unsigned int yy_size_t;
struct yy_buffer_state
{
#line 160 "flex.skl"
FILE *yy_input_file;
#line 166 "flex.skl"
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
yy_size_t yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
* shouldn't try reading from the input source any more. We might
* still have a bunch of tokens to match, though, because of
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via yyrestart()), so that the user can continue scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
#line 222 "flex.skl"
static YY_BUFFER_STATE yy_current_buffer = 0;
#line 225 "flex.skl"
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state".
*/
#define YY_CURRENT_BUFFER yy_current_buffer
#line 235 "flex.skl"
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
#line 268 "flex.skl"
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
#define YY_USES_REJECT
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext
#line 293 "flex.skl"
#line 296 "flex.skl"
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
#line 302 "flex.skl"
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#line 314 "flex.skl"
#line 315 "flex.skl"
#define YY_NUM_RULES 116
#define YY_END_OF_BUFFER 117
static yyconst short int yy_acclist[1093] =
{ 0,
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
117, 113, 115, 116, 31, 111, 115, 116, 3, 116,
113, 115, 116, 81, 115, 116, 112, 115, 116, 88,
115, 116, 91, 115, 116, 112, 115, 116, 83, 115,
116, 82, 115, 116, 89, 115, 116, 86, 115, 116,
84, 115, 116, 85, 115, 116, 32, 80, 115, 116,
87, 115, 116, 78, 80, 115, 116, 114, 115, 116,
3, 115, 116, 102, 115, 116, 92, 115, 116, 100,
115, 116, 81, 115, 116, 81, 115, 116, 81, 115,
116, 81, 115, 116, 81, 115, 116, 93, 115, 116,
1, 31, 113, 115, 116, 90, 115, 116, 93, 113,
115, 116, 31, 111, 115, 116, 81, 115, 116, 32,
80, 115, 116, 78, 80, 115, 116, 81, 115, 116,
81, 115, 116, 81, 115, 116, 81, 115, 116, 81,
115, 116, 81, 115, 116, 81, 115, 116, 81, 115,
116, 81, 115, 116, 81, 115, 116, 81, 115, 116,
81, 115, 116, 81, 115, 116, 81, 115, 116, 81,
115, 116, 81, 115, 116, 81, 115, 116, 1, 31,
113, 115, 116, 31, 111, 115, 116, 81, 115, 116,
81, 115, 116, 1, 31, 113, 115, 116, 81, 115,
116, 81, 115, 116, 81, 115, 116, 81, 115, 116,
81, 115, 116, 81, 115, 116, 81, 115, 116, 81,
115, 116, 81, 115, 116, 81, 115, 116, 81, 115,
116, 81, 115, 116, 81, 115, 116, 81, 115, 116,
81, 115, 116, 81, 115, 116, 81, 115, 116, 81,
115, 116, 81, 115, 116, 81, 115, 116, 81, 115,
116, 81, 115, 116, 31, 111, 115, 116, 81, 115,
116, 1, 31, 113, 115, 116, 31, 111, 115, 116,
45, 81, 115, 116, 45, 81, 115, 116, 45, 81,
115, 116, 45, 81, 115, 116, 45, 81, 115, 116,
45, 81, 115, 116, 45, 81, 115, 116, 1, 31,
113, 115, 116, 31, 111, 115, 116, 2, 3, 116,
2, 113, 115, 116, 2, 3, 115, 116, 2, 81,
115, 116, 1, 31, 113, 115, 116, 81, 115, 116,
81, 115, 116, 81, 115, 116, 31, 111, 3, 88,
91, 82, 89, 86, 84, 85, 87, 102, 92, 100,
31, 111, 90, 3, 81, 77, 88, 91, 108, 77,
83, 89, 110, 86, 84, 85, 80, 79, 80, 87,
107, 78, 80, 80, 102, 95, 103, 104, 92, 105,
101, 100, 94, 67, 81, 81, 66, 81, 81, 81,
81, 93, 101, 104, 103, 31, 111, 1, 31, 90,
109, 31, 111, 31, 111, 81, 72, 34, 80, 80,
33, 78, 80, 80, 81, 81, 67, 81, 81, 7,
81, 81, 81, 81, 81, 81, 11, 81, 81, 81,
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
81, 81, 81, 81, 66, 81, 81, 81, 81, 81,
31, 111, 1, 31, 31, 111, 31, 111, 81, 36,
81, 81, 31, 111, 1, 31, 81, 81, 81, 81,
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
81, 81, 81, 81, 81, 71, 67, 81, 81, 66,
81, 81, 81, 81, 31, 111, 31, 111, 81, 31,
111, 1, 31, 31, 111, 45, 45, 45, 45, 45,
45, 45, 31, 111, 45, 45, 81, 45, 67, 81,
45, 81, 45, 66, 81, 45, 81, 45, 81, 45,
81, 45, 81, 31, 111, 1, 31, 31, 111, 2,
3, 2, 2, 31, 111, 2, 3, 2, 31, 111,
1, 31, 81, 81, 81, 67, 66, 77, 77, 77,
108, 77, 77, 77, 110, 80, 107, 95, 99, 103,
104, 105, 101, 94, 98, 67, 68, 81, 66, 81,
81, 81, 101, 97, 100, 104, 106, 102, 103, 96,
109, 72, 34, 80, 33, 81, 5, 81, 67, 81,
7, 81, 81, 30, 81, 81, 68, 81, 11, 81,
81, 81, 16, 81, 81, 81, 81, 81, 81, 81,
81, 81, 81, 24, 81, 81, 81, 81, 66, 81,
81, 81, 81, 81, 37, 81, 36, 81, 81, 81,
81, 81, 81, 81, 81, 48, 81, 81, 81, 81,
81, 81, 81, 81, 55, 81, 81, 81, 68, 81,
81, 67, 68, 81, 66, 81, 81, 81, 81, 45,
67, 45, 45, 66, 45, 45, 45, 45, 45, 67,
45, 68, 81, 45, 66, 45, 81, 45, 81, 45,
81, 45, 81, 81, 81, 81, 68, 73, 77, 75,
76, 74, 76, 80, 99, 98, 68, 81, 81, 59,
81, 97, 100, 106, 102, 96, 81, 5, 6, 81,
8, 81, 9, 81, 30, 10, 81, 68, 81, 81,
81, 16, 81, 81, 81, 81, 81, 20, 81, 21,
81, 81, 81, 24, 81, 81, 57, 81, 81, 81,
28, 81, 81, 59, 81, 37, 81, 81, 81, 40,
81, 81, 81, 81, 81, 48, 81, 81, 81, 50,
81, 81, 81, 81, 55, 81, 81, 61, 81, 64,
81, 68, 81, 81, 81, 59, 81, 58, 81, 45,
68, 45, 45, 45, 45, 45, 68, 45, 81, 45,
81, 45, 81, 45, 59, 81, 38, 81, 81, 81,
59, 76, 70, 81, 69, 81, 59, 57, 81, 6,
8, 9, 10, 81, 81, 14, 81, 81, 81, 81,
18, 81, 81, 20, 21, 22, 81, 81, 81, 81,
57, 27, 81, 70, 81, 28, 69, 81, 59, 35,
81, 39, 81, 81, 40, 81, 81, 81, 81, 81,
81, 81, 50, 81, 47, 81, 56, 81, 81, 81,
61, 64, 81, 70, 81, 69, 81, 59, 58, 58,
45, 45, 45, 45, 59, 45, 70, 81, 35, 45,
81, 45, 69, 81, 45, 59, 38, 81, 81, 70,
69, 70, 69, 57, 81, 81, 81, 14, 81, 81,
81, 18, 81, 22, 23, 81, 25, 81, 26, 81,
27, 70, 69, 35, 35, 39, 81, 81, 81, 44,
81, 46, 81, 81, 53, 81, 81, 51, 81, 47,
56, 81, 60, 81, 81, 70, 69, 45, 70, 35,
45, 45, 69, 45, 70, 35, 45, 45, 69, 81,
81, 4, 81, 81, 13, 81, 17, 81, 15, 81,
81, 81, 23, 25, 26, 43, 81, 81, 41, 81,
44, 46, 81, 53, 49, 81, 51, 54, 81, 60,
65, 81, 81, 81, 4, 81, 13, 17, 15, 81,
81, 43, 42, 81, 41, 52, 81, 49, 54, 65,
81, 81, 12, 81, 29, 81, 19, 81, 42, 52,
81, 81, 12, 29, 19, 81, 62, 81, 63, 81,
62, 63
} ;
static yyconst short int yy_accept[833] =
{ 0,
1, 3, 5, 7, 9, 11, 13, 15, 17, 19,
21, 23, 25, 27, 29, 31, 33, 35, 37, 39,
41, 43, 45, 47, 49, 51, 53, 55, 57, 59,
61, 62, 65, 69, 71, 74, 77, 80, 83, 86,
89, 92, 95, 98, 101, 104, 107, 111, 114, 118,
121, 124, 127, 130, 133, 136, 139, 142, 145, 148,
151, 156, 159, 163, 167, 170, 174, 178, 181, 184,
187, 190, 193, 196, 199, 202, 205, 208, 211, 214,
217, 220, 223, 226, 229, 234, 238, 241, 244, 249,
252, 255, 258, 261, 264, 267, 270, 273, 276, 279,
282, 285, 288, 291, 294, 297, 300, 303, 306, 309,
312, 315, 319, 322, 327, 331, 335, 339, 343, 347,
351, 355, 359, 364, 368, 371, 375, 379, 383, 388,
391, 394, 397, 399, 400, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410, 411, 411, 411, 411,
411, 411, 411, 413, 414, 415, 416, 416, 416, 417,
417, 417, 417, 418, 419, 420, 420, 420, 421, 421,
421, 421, 422, 423, 424, 425, 426, 427, 428, 429,
430, 430, 431, 432, 434, 435, 436, 437, 438, 439,
440, 441, 442, 443, 444, 446, 447, 449, 450, 451,
452, 453, 454, 455, 456, 458, 460, 461, 462, 464,
464, 466, 466, 467, 468, 469, 469, 470, 471, 472,
472, 474, 475, 476, 477, 479, 480, 482, 483, 484,
485, 486, 487, 489, 490, 491, 492, 493, 494, 495,
496, 497, 498, 499, 500, 501, 502, 503, 504, 505,
507, 508, 509, 510, 511, 513, 515, 517, 517, 519,
520, 522, 523, 525, 527, 528, 529, 530, 531, 532,
533, 534, 535, 536, 537, 538, 539, 540, 541, 542,
543, 544, 545, 545, 546, 547, 549, 550, 552, 553,
554, 555, 557, 557, 559, 560, 562, 564, 566, 567,
568, 569, 570, 571, 572, 573, 575, 576, 578, 581,
583, 586, 588, 590, 592, 594, 596, 598, 600, 602,
603, 604, 606, 608, 609, 611, 613, 614, 615, 616,
617, 617, 618, 618, 618, 618, 618, 619, 619, 620,
620, 620, 620, 620, 620, 620, 620, 620, 621, 621,
622, 623, 623, 624, 624, 624, 624, 624, 624, 625,
625, 626, 627, 628, 628, 629, 630, 631, 632, 633,
634, 635, 636, 637, 639, 640, 641, 642, 643, 644,
645, 646, 647, 648, 649, 650, 651, 652, 652, 653,
654, 655, 656, 657, 659, 660, 661, 662, 663, 664,
666, 667, 669, 670, 671, 672, 673, 675, 676, 677,
678, 679, 680, 681, 682, 683, 684, 686, 687, 688,
689, 690, 691, 692, 693, 694, 695, 695, 697, 698,
699, 700, 701, 702, 703, 704, 705, 706, 708, 709,
710, 711, 712, 713, 714, 715, 717, 718, 719, 721,
722, 723, 725, 726, 727, 728, 729, 729, 730, 732,
733, 735, 736, 737, 738, 739, 741, 744, 746, 748,
750, 752, 754, 755, 756, 757, 758, 758, 758, 758,
759, 759, 759, 759, 759, 759, 760, 762, 764, 764,
764, 764, 764, 764, 764, 764, 764, 764, 764, 764,
765, 766, 767, 768, 769, 770, 772, 773, 774, 775,
776, 777, 777, 778, 779, 781, 783, 785, 786, 788,
789, 790, 791, 792, 793, 794, 795, 796, 797, 798,
800, 802, 803, 804, 805, 806, 807, 809, 810, 811,
813, 814, 816, 816, 817, 818, 819, 820, 822, 823,
824, 825, 826, 827, 828, 829, 830, 832, 833, 834,
835, 836, 837, 838, 840, 842, 843, 844, 845, 846,
848, 848, 850, 852, 853, 854, 855, 856, 858, 860,
862, 864, 867, 869, 870, 871, 871, 871, 872, 873,
873, 873, 873, 873, 873, 873, 873, 873, 873, 873,
873, 873, 873, 873, 873, 873, 873, 873, 875, 877,
878, 879, 880, 881, 882, 883, 884, 885, 886, 888,
889, 890, 891, 893, 894, 895, 896, 898, 899, 900,
901, 902, 904, 906, 907, 909, 910, 910, 912, 914,
915, 916, 917, 918, 919, 920, 921, 922, 923, 924,
925, 927, 929, 930, 931, 932, 933, 934, 936, 938,
939, 940, 941, 942, 943, 944, 946, 949, 952, 955,
957, 958, 959, 960, 961, 962, 962, 962, 962, 962,
962, 962, 962, 962, 962, 962, 962, 962, 963, 964,
965, 966, 967, 968, 969, 970, 971, 972, 973, 974,
975, 977, 979, 981, 982, 983, 984, 985, 986, 987,
988, 989, 990, 992, 994, 995, 997, 998, 1000, 1001,
1002, 1003, 1005, 1006, 1007, 1008, 1010, 1012, 1014, 1016,
1018, 1020, 1021, 1022, 1022, 1022, 1022, 1022, 1022, 1022,
1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022, 1022,
1022, 1022, 1024, 1025, 1027, 1029, 1031, 1032, 1033, 1034,
1035, 1036, 1038, 1039, 1041, 1042, 1043, 1044, 1045, 1047,
1048, 1050, 1051, 1053, 1054, 1055, 1055, 1055, 1055, 1055,
1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1056, 1057,
1058, 1059, 1060, 1061, 1062, 1063, 1065, 1066, 1068, 1069,
1070, 1071, 1072, 1073, 1073, 1073, 1073, 1073, 1073, 1073,
1073, 1073, 1075, 1077, 1079, 1080, 1081, 1082, 1083, 1083,
1083, 1083, 1083, 1084, 1085, 1086, 1087, 1089, 1091, 1092,
1093, 1093
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 5, 6, 7, 6, 6, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 19, 20,
20, 20, 20, 20, 20, 20, 20, 21, 22, 23,
24, 25, 26, 6, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
1, 52, 1, 52, 6, 53, 27, 28, 29, 30,
31, 32, 33, 34, 35, 36, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 1, 54, 1, 55, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static yyconst int yy_meta[56] =
{ 0,
1, 2, 1, 1, 2, 3, 1, 1, 1, 1,
4, 1, 1, 1, 1, 1, 3, 1, 3, 3,
5, 1, 1, 6, 1, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 1, 8, 1, 1
} ;
static yyconst short int yy_base[845] =
{ 0,
0, 0, 55, 0, 109, 110, 85, 89, 1827, 1823,
95, 127, 0, 0, 0, 0, 95, 105, 169, 0,
138, 176, 229, 0, 283, 288, 1801, 1799, 293, 295,
1834, 3211, 347, 174, 1830, 0, 401, 175, 294, 453,
311, 3211, 325, 313, 315, 320, 133, 327, 365, 3211,
352, 386, 392, 417, 1780, 1784, 1775, 1766, 96, 441,
372, 381, 451, 442, 447, 488, 540, 496, 117, 118,
129, 484, 264, 486, 383, 492, 278, 459, 467, 393,
513, 494, 418, 520, 560, 564, 150, 1776, 565, 1739,
111, 1753, 1738, 1726, 1723, 1723, 1698, 1710, 1693, 1669,
1665, 146, 157, 1669, 266, 570, 571, 575, 576, 580,
596, 581, 347, 582, 648, 702, 707, 115, 261, 388,
143, 518, 586, 713, 587, 605, 601, 709, 718, 1661,
1638, 1616, 0, 723, 1638, 727, 728, 3211, 729, 736,
738, 742, 743, 744, 749, 754, 1589, 1595, 1579, 1579,
188, 781, 0, 782, 748, 0, 1606, 835, 618, 788,
806, 887, 798, 807, 815, 1602, 918, 782, 816, 828,
970, 817, 843, 821, 822, 827, 841, 278, 3211, 871,
291, 881, 847, 910, 887, 908, 920, 856, 882, 934,
903, 950, 960, 962, 964, 1566, 972, 1563, 1566, 1545,
986, 1003, 1017, 1019, 0, 976, 977, 1002, 1018, 364,
1030, 1043, 407, 1031, 1032, 1044, 624, 628, 1045, 1055,
0, 1072, 448, 755, 1057, 842, 1072, 1050, 950, 449,
579, 722, 1076, 1008, 1064, 1074, 1075, 1083, 1069, 1039,
785, 1090, 1094, 1092, 1097, 1098, 1102, 1113, 1119, 1142,
1124, 1123, 1128, 1130, 1159, 1172, 1150, 1556, 1174, 1549,
1056, 1542, 1176, 1181, 1515, 1513, 1505, 145, 1493, 1468,
1475, 1462, 1453, 1437, 1437, 1426, 1424, 493, 1414, 1414,
1380, 1366, 1182, 1186, 3211, 1187, 1194, 1196, 1200, 1217,
1231, 1211, 556, 1241, 1378, 1246, 1252, 0, 1256, 1257,
1258, 1263, 1267, 1269, 1278, 0, 1273, 1357, 1277, 417,
1283, 68, 807, 308, 362, 0, 1285, 0, 1287, 1299,
1312, 0, 1313, 1319, 0, 1323, 1363, 1354, 1346, 1327,
1335, 1332, 1330, 1338, 1324, 1337, 1339, 949, 1340, 1351,
1352, 1357, 0, 0, 1372, 1424, 1377, 1387, 1395, 1353,
1409, 1188, 1411, 1408, 1440, 1430, 1492, 1461, 1457, 1476,
1381, 1485, 1426, 205, 1513, 1436, 1482, 1486, 1496, 1497,
1523, 1498, 1525, 1529, 1531, 1328, 1308, 1289, 1538, 1539,
1550, 1562, 1551, 1552, 1569, 1558, 1563, 1269, 1567, 1568,
1324, 1575, 1127, 1593, 1605, 1201, 1628, 1139, 1381, 1594,
1373, 1595, 1629, 1439, 1265, 1559, 1612, 1613, 1597, 1629,
1305, 1632, 1627, 1365, 1633, 1637, 1664, 1643, 1648, 1654,
1687, 1666, 1655, 1671, 1669, 1483, 1256, 1649, 1666, 1235,
1227, 1229, 1205, 1189, 1203, 1181, 1175, 1698, 1183, 1163,
1134, 1099, 1091, 1080, 1008, 1711, 1008, 993, 1716, 967,
1718, 1722, 1720, 1724, 1726, 1728, 985, 975, 1730, 1753,
1732, 1755, 1765, 1763, 1782, 1736, 1786, 1788, 427, 465,
1396, 469, 981, 971, 965, 1790, 960, 955, 942, 3211,
0, 657, 1471, 1792, 1802, 1266, 3211, 3211, 1854, 1885,
1807, 1916, 1812, 1818, 1823, 1968, 1999, 1827, 2030, 1189,
1808, 1817, 1842, 933, 929, 1846, 1847, 1848, 1855, 1867,
1873, 914, 1834, 1886, 1922, 1923, 1928, 1936, 1929, 1959,
1516, 1836, 1837, 1989, 1545, 1863, 1706, 1866, 1919, 1949,
2003, 1925, 1713, 2001, 1991, 1947, 2034, 2022, 2008, 2039,
2036, 2066, 897, 2068, 911, 883, 866, 2070, 880, 867,
870, 851, 2076, 850, 843, 834, 2083, 847, 830, 840,
2084, 818, 805, 2088, 2089, 2093, 2098, 2102, 2100, 2106,
800, 2108, 2110, 2123, 2133, 2138, 2147, 2142, 1724, 303,
438, 2152, 2160, 775, 760, 757, 744, 2162, 3211, 2164,
2166, 2168, 2175, 2187, 0, 2191, 2207, 0, 2199, 2206,
2215, 2222, 2228, 0, 2233, 2235, 0, 2234, 2244, 2246,
2248, 2090, 2253, 2259, 2260, 2261, 1899, 1756, 2265, 1859,
2160, 1889, 2274, 1868, 2298, 2300, 2305, 2286, 2054, 2186,
2318, 2326, 2331, 2336, 2332, 2342, 739, 2287, 2341, 721,
2347, 736, 690, 657, 674, 630, 626, 624, 2362, 611,
2363, 2368, 598, 593, 2375, 2376, 2381, 2385, 2386, 2394,
2396, 2401, 2406, 2402, 2415, 2417, 2421, 2422, 2430, 2435,
2439, 605, 587, 2440, 2446, 2458, 2448, 2459, 2471, 2477,
2479, 2484, 2495, 2499, 2500, 2504, 2505, 2464, 2510, 2511,
2478, 1981, 2226, 2523, 2497, 2490, 2071, 2527, 2248, 2533,
2540, 2541, 2547, 2534, 2548, 2554, 2560, 2577, 2583, 571,
567, 548, 2587, 2593, 547, 2594, 529, 2600, 2601, 2606,
508, 2607, 2613, 2614, 2615, 2619, 2620, 2621, 2626, 2627,
2639, 515, 461, 2643, 2650, 2656, 2676, 2680, 2686, 2695,
2699, 0, 2705, 2706, 2717, 2718, 2730, 2736, 2755, 2759,
0, 2742, 2530, 2749, 2751, 2771, 2621, 2033, 2775, 2782,
2786, 2729, 409, 2740, 2795, 2811, 414, 2813, 2815, 2817,
2821, 2825, 2827, 347, 357, 2831, 2835, 2839, 2850, 2854,
2858, 2877, 2881, 2892, 2896, 2903, 2870, 2888, 2266, 2912,
2914, 2916, 2646, 2732, 2918, 2922, 2923, 2924, 2937, 2941,
2942, 332, 300, 2953, 2977, 2949, 2959, 2978, 2997, 2968,
2984, 2996, 3003, 3008, 3007, 3009, 187, 165, 3013, 3015,
3017, 3022, 3023, 3043, 3050, 113, 3035, 3052, 3061, 3063,
3211, 3114, 3121, 3129, 3135, 3142, 3149, 3156, 3163, 3170,
3178, 3186, 3194, 3202
} ;
static yyconst short int yy_def[845] =
{ 0,
831, 1, 831, 3, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 19,
1, 1, 831, 23, 1, 1, 1, 1, 1, 1,
831, 831, 831, 831, 831, 832, 833, 831, 831, 834,
831, 831, 831, 831, 831, 831, 835, 831, 835, 831,
831, 831, 831, 831, 832, 832, 832, 832, 832, 831,
33, 831, 831, 33, 836, 837, 837, 836, 68, 68,
68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
68, 68, 68, 68, 33, 33, 832, 832, 33, 832,
832, 832, 832, 832, 832, 832, 832, 832, 832, 832,
832, 832, 832, 832, 832, 838, 838, 838, 838, 838,
838, 33, 832, 33, 831, 839, 839, 117, 117, 117,
117, 117, 115, 33, 831, 831, 831, 832, 124, 832,
832, 832, 33, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 33, 831, 831, 832, 833, 833, 831, 158,
158, 158, 831, 831, 831, 834, 834, 831, 167, 167,
167, 831, 831, 831, 831, 831, 831, 835, 831, 835,
831, 831, 831, 835, 835, 831, 831, 831, 831, 831,
831, 831, 831, 831, 832, 832, 832, 832, 832, 832,
831, 831, 831, 831, 33, 33, 831, 831, 33, 831,
33, 831, 68, 831, 831, 831, 67, 67, 831, 831,
67, 67, 68, 68, 68, 68, 68, 68, 68, 68,
68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
68, 68, 68, 68, 33, 33, 33, 831, 33, 832,
832, 832, 33, 33, 832, 832, 832, 832, 832, 832,
832, 832, 832, 832, 832, 832, 832, 832, 832, 832,
832, 832, 831, 838, 831, 838, 838, 838, 838, 838,
838, 33, 831, 33, 832, 33, 33, 115, 840, 840,
840, 840, 840, 840, 840, 115, 831, 117, 117, 117,
117, 117, 117, 117, 117, 115, 115, 124, 831, 831,
831, 124, 831, 831, 124, 124, 832, 832, 832, 831,
831, 831, 831, 831, 831, 831, 831, 158, 831, 158,
158, 841, 842, 843, 158, 158, 158, 831, 346, 831,
831, 167, 831, 167, 167, 167, 167, 167, 831, 357,
831, 835, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 832, 831, 832, 832, 832, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
67, 831, 68, 68, 831, 68, 831, 68, 68, 68,
68, 68, 831, 68, 68, 68, 68, 68, 68, 68,
68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
831, 68, 68, 68, 68, 68, 831, 832, 831, 832,
832, 832, 832, 832, 832, 832, 832, 832, 832, 832,
832, 832, 832, 832, 832, 832, 832, 832, 832, 832,
831, 838, 831, 838, 838, 838, 831, 832, 840, 840,
840, 840, 840, 840, 840, 831, 117, 831, 117, 117,
117, 117, 832, 832, 832, 831, 831, 831, 831, 831,
844, 831, 158, 158, 158, 831, 831, 831, 346, 833,
490, 490, 167, 167, 167, 357, 834, 497, 497, 831,
831, 831, 831, 832, 832, 832, 831, 831, 831, 831,
831, 831, 68, 831, 68, 68, 68, 831, 68, 831,
68, 68, 68, 831, 68, 68, 68, 68, 68, 68,
68, 68, 68, 831, 68, 68, 68, 68, 68, 68,
68, 68, 831, 831, 832, 832, 832, 832, 832, 832,
832, 832, 831, 832, 832, 832, 832, 832, 832, 832,
831, 832, 832, 832, 832, 831, 838, 838, 838, 838,
831, 832, 840, 840, 840, 840, 840, 831, 117, 117,
117, 117, 832, 832, 832, 831, 831, 831, 831, 158,
158, 158, 492, 492, 492, 346, 346, 492, 167, 167,
167, 499, 499, 499, 357, 357, 499, 832, 832, 831,
831, 68, 831, 831, 831, 831, 68, 68, 68, 68,
68, 68, 68, 68, 831, 831, 68, 68, 68, 68,
831, 68, 68, 831, 68, 831, 831, 832, 832, 832,
831, 832, 832, 832, 832, 832, 832, 832, 831, 832,
832, 832, 832, 832, 831, 831, 838, 838, 838, 831,
831, 831, 840, 840, 840, 840, 117, 117, 117, 831,
831, 832, 832, 831, 831, 492, 492, 492, 492, 492,
490, 499, 499, 499, 499, 499, 497, 831, 831, 831,
68, 68, 68, 831, 68, 68, 68, 831, 68, 831,
68, 68, 68, 831, 831, 831, 831, 831, 831, 832,
832, 832, 832, 832, 832, 832, 832, 832, 831, 831,
832, 832, 838, 831, 831, 840, 840, 840, 831, 831,
831, 832, 832, 492, 492, 492, 492, 492, 492, 492,
492, 346, 499, 499, 499, 499, 499, 499, 499, 499,
357, 68, 68, 68, 68, 68, 68, 68, 831, 831,
831, 832, 832, 832, 831, 831, 832, 831, 832, 831,
832, 831, 838, 832, 832, 492, 492, 492, 492, 492,
492, 499, 499, 499, 499, 499, 499, 831, 68, 831,
831, 831, 68, 68, 831, 832, 831, 832, 831, 831,
831, 832, 832, 492, 492, 492, 492, 499, 499, 499,
499, 68, 68, 68, 831, 831, 832, 832, 492, 492,
499, 499, 831, 831, 831, 832, 832, 832, 831, 831,
0, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831
} ;
static yyconst short int yy_nxt[3267] =
{ 0,
32, 33, 34, 35, 33, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 49,
50, 51, 52, 53, 54, 36, 36, 55, 36, 36,
36, 56, 36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 57, 58, 36, 59, 36, 36,
36, 60, 61, 62, 63, 32, 64, 34, 35, 64,
65, 37, 38, 39, 40, 41, 42, 43, 44, 45,
46, 66, 48, 67, 67, 50, 51, 52, 53, 54,
65, 68, 69, 70, 71, 72, 73, 65, 65, 74,
65, 75, 65, 76, 77, 78, 79, 80, 81, 82,
83, 65, 84, 65, 65, 65, 60, 85, 62, 63,
86, 86, 469, 86, 86, 90, 91, 308, 92, 90,
91, 96, 92, 93, 104, 97, 105, 93, 94, 199,
200, 98, 94, 99, 104, 100, 105, 266, 101, 112,
102, 103, 112, 179, 226, 828, 213, 213, 87, 87,
196, 180, 180, 96, 310, 88, 88, 97, 213, 213,
213, 89, 89, 98, 308, 99, 225, 100, 227, 313,
101, 228, 102, 103, 106, 155, 163, 112, 155, 163,
112, 260, 113, 278, 198, 181, 277, 279, 261, 434,
114, 435, 308, 827, 106, 106, 107, 106, 106, 106,
108, 106, 106, 106, 106, 106, 106, 106, 106, 106,
106, 106, 106, 109, 110, 106, 111, 106, 106, 106,
113, 334, 335, 500, 500, 826, 155, 163, 114, 32,
115, 34, 35, 115, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 49, 50,
51, 52, 53, 54, 116, 116, 117, 116, 116, 116,
118, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 116, 119, 120, 121, 122, 116, 116, 116,
60, 123, 62, 63, 124, 125, 126, 124, 179, 124,
125, 126, 124, 213, 86, 164, 86, 86, 164, 86,
311, 179, 165, 232, 127, 281, 213, 213, 128, 127,
308, 282, 172, 128, 175, 172, 176, 175, 239, 176,
213, 177, 240, 131, 177, 131, 173, 113, 182, 173,
181, 182, 113, 668, 818, 129, 132, 174, 132, 88,
129, 88, 471, 181, 183, 89, 164, 89, 133, 134,
135, 133, 308, 155, 136, 137, 155, 308, 138, 139,
140, 141, 142, 172, 143, 175, 817, 176, 134, 144,
145, 146, 177, 205, 147, 179, 205, 173, 148, 182,
295, 180, 207, 184, 184, 207, 197, 186, 803, 802,
186, 149, 150, 190, 151, 185, 190, 388, 152, 153,
154, 152, 158, 332, 155, 158, 472, 159, 187, 188,
189, 308, 213, 236, 188, 191, 192, 181, 193, 160,
161, 193, 213, 245, 206, 213, 312, 161, 161, 161,
161, 161, 161, 207, 208, 213, 213, 308, 186, 189,
192, 194, 201, 209, 190, 201, 209, 213, 212, 213,
798, 212, 201, 162, 167, 201, 252, 167, 796, 467,
213, 579, 168, 202, 203, 204, 308, 214, 669, 193,
215, 169, 170, 202, 203, 204, 308, 393, 400, 170,
170, 170, 170, 170, 170, 241, 210, 308, 213, 216,
213, 213, 216, 201, 211, 775, 213, 212, 179, 212,
212, 242, 582, 201, 243, 171, 218, 218, 214, 213,
580, 219, 244, 213, 308, 213, 214, 233, 308, 215,
229, 213, 230, 213, 234, 223, 213, 249, 213, 445,
235, 237, 231, 250, 213, 446, 251, 238, 224, 246,
220, 216, 213, 247, 216, 774, 771, 248, 212, 213,
179, 314, 315, 253, 254, 213, 218, 769, 221, 221,
214, 255, 213, 219, 255, 257, 263, 308, 257, 263,
222, 283, 283, 767, 283, 283, 283, 283, 764, 283,
283, 283, 292, 296, 283, 292, 296, 316, 323, 457,
316, 323, 220, 285, 285, 332, 763, 283, 285, 285,
283, 762, 323, 285, 210, 323, 324, 134, 213, 324,
258, 258, 256, 401, 287, 288, 259, 264, 289, 285,
286, 213, 283, 283, 342, 293, 293, 283, 283, 290,
291, 733, 283, 294, 297, 732, 722, 721, 317, 323,
217, 718, 217, 217, 217, 343, 391, 391, 283, 298,
134, 135, 298, 323, 217, 136, 137, 324, 717, 138,
139, 140, 141, 142, 716, 143, 344, 480, 715, 134,
144, 145, 146, 299, 299, 300, 299, 299, 299, 301,
299, 299, 299, 299, 299, 299, 299, 299, 299, 299,
299, 299, 302, 303, 304, 305, 299, 299, 299, 152,
306, 154, 152, 307, 714, 713, 307, 156, 307, 482,
324, 307, 156, 324, 318, 319, 320, 318, 156, 325,
156, 156, 325, 156, 155, 156, 156, 155, 163, 164,
173, 163, 164, 173, 319, 712, 165, 175, 321, 176,
175, 174, 176, 177, 182, 186, 177, 182, 186, 155,
190, 213, 155, 190, 307, 193, 309, 293, 193, 307,
183, 324, 711, 710, 402, 322, 187, 188, 189, 707,
326, 188, 191, 192, 675, 155, 189, 192, 194, 163,
164, 173, 336, 207, 213, 336, 207, 394, 175, 345,
176, 166, 345, 674, 177, 182, 186, 213, 673, 163,
155, 190, 163, 202, 203, 204, 193, 347, 164, 343,
347, 164, 348, 672, 213, 165, 350, 356, 172, 350,
356, 172, 361, 175, 341, 361, 175, 411, 176, 358,
344, 176, 358, 336, 207, 208, 338, 359, 661, 338,
346, 339, 177, 470, 173, 177, 355, 173, 363, 654,
163, 363, 653, 340, 341, 174, 308, 367, 349, 164,
367, 341, 341, 341, 341, 341, 341, 350, 357, 172,
652, 213, 651, 361, 175, 650, 648, 647, 396, 176,
360, 179, 182, 368, 213, 182, 368, 162, 158, 362,
362, 158, 646, 177, 645, 173, 644, 179, 183, 363,
364, 185, 364, 643, 369, 160, 161, 369, 367, 186,
642, 640, 186, 161, 161, 161, 161, 161, 161, 352,
179, 365, 352, 181, 365, 639, 180, 353, 184, 184,
187, 188, 189, 182, 368, 190, 354, 355, 190, 181,
185, 638, 637, 366, 355, 355, 355, 355, 355, 355,
483, 370, 611, 483, 370, 369, 188, 191, 192, 609,
186, 193, 181, 371, 193, 373, 371, 484, 373, 608,
171, 167, 365, 375, 167, 588, 375, 205, 207, 213,
205, 207, 189, 192, 194, 372, 190, 201, 169, 170,
201, 587, 213, 399, 586, 585, 170, 170, 170, 170,
170, 170, 370, 387, 379, 584, 387, 379, 202, 203,
204, 583, 193, 572, 371, 571, 373, 565, 382, 209,
385, 382, 209, 385, 375, 380, 381, 563, 206, 207,
208, 209, 389, 390, 209, 389, 390, 213, 201, 381,
383, 384, 384, 386, 212, 216, 392, 212, 216, 392,
213, 562, 404, 560, 387, 379, 216, 429, 395, 216,
429, 395, 210, 214, 214, 179, 215, 219, 213, 382,
211, 385, 410, 397, 210, 214, 397, 403, 219, 213,
403, 213, 211, 389, 390, 364, 213, 364, 217, 398,
217, 217, 213, 213, 405, 212, 216, 392, 213, 213,
406, 213, 217, 213, 213, 213, 213, 220, 429, 395,
559, 213, 213, 409, 213, 407, 213, 213, 213, 213,
408, 213, 415, 213, 397, 213, 213, 213, 403, 412,
413, 213, 213, 558, 213, 557, 213, 414, 418, 213,
213, 416, 213, 421, 213, 419, 421, 417, 213, 420,
422, 257, 213, 213, 257, 213, 213, 213, 424, 213,
209, 213, 425, 209, 556, 213, 213, 423, 213, 513,
213, 213, 213, 255, 426, 257, 255, 257, 257, 516,
257, 213, 263, 283, 213, 263, 283, 283, 451, 493,
283, 451, 493, 555, 421, 283, 258, 453, 283, 179,
453, 283, 259, 210, 283, 285, 494, 500, 500, 285,
285, 211, 292, 554, 552, 292, 210, 285, 283, 285,
258, 283, 258, 285, 256, 551, 259, 258, 259, 550,
213, 549, 283, 264, 283, 283, 452, 515, 283, 451,
285, 181, 292, 213, 454, 292, 283, 292, 453, 548,
292, 455, 283, 296, 285, 293, 296, 307, 307, 307,
307, 307, 307, 294, 307, 547, 546, 307, 307, 283,
307, 307, 342, 307, 307, 456, 480, 307, 466, 307,
545, 466, 307, 283, 468, 293, 316, 468, 323, 316,
293, 323, 543, 294, 213, 463, 293, 460, 294, 512,
324, 134, 461, 324, 297, 462, 459, 522, 307, 307,
307, 464, 465, 324, 323, 307, 324, 323, 482, 307,
324, 307, 506, 324, 325, 307, 308, 325, 373, 466,
307, 373, 308, 375, 213, 468, 375, 317, 336, 323,
217, 336, 391, 391, 505, 342, 342, 213, 528, 480,
480, 324, 485, 347, 350, 485, 347, 350, 348, 202,
203, 204, 504, 486, 324, 323, 481, 343, 479, 484,
341, 324, 478, 485, 477, 326, 485, 476, 347, 373,
475, 347, 361, 348, 375, 361, 474, 481, 344, 336,
484, 482, 482, 342, 213, 341, 492, 480, 531, 492,
473, 348, 213, 346, 349, 350, 308, 213, 458, 495,
213, 517, 495, 491, 481, 213, 450, 519, 166, 480,
166, 480, 449, 213, 346, 489, 494, 363, 489, 349,
363, 495, 581, 361, 495, 344, 481, 501, 343, 482,
501, 358, 490, 491, 358, 308, 448, 349, 494, 359,
491, 491, 491, 491, 491, 491, 447, 481, 355, 344,
357, 482, 358, 482, 444, 358, 166, 480, 213, 521,
359, 443, 590, 442, 441, 590, 346, 499, 363, 355,
499, 213, 357, 367, 481, 359, 367, 368, 501, 591,
368, 440, 360, 496, 498, 179, 496, 369, 370, 502,
369, 370, 502, 362, 362, 344, 439, 438, 437, 482,
497, 498, 213, 360, 365, 185, 542, 365, 498, 498,
498, 498, 498, 498, 371, 213, 373, 371, 360, 373,
503, 436, 375, 503, 367, 375, 366, 181, 368, 379,
507, 433, 379, 507, 357, 213, 372, 432, 369, 370,
502, 508, 509, 510, 508, 509, 510, 431, 617, 511,
380, 381, 511, 382, 387, 365, 382, 387, 389, 390,
385, 389, 390, 385, 213, 371, 392, 373, 430, 392,
428, 503, 427, 375, 381, 383, 384, 620, 213, 378,
379, 507, 384, 386, 514, 518, 520, 514, 518, 520,
377, 213, 508, 509, 510, 523, 395, 376, 374, 395,
511, 351, 337, 524, 382, 387, 524, 333, 332, 389,
390, 385, 213, 213, 213, 214, 213, 392, 215, 397,
403, 526, 397, 403, 331, 213, 213, 213, 330, 213,
134, 213, 213, 525, 329, 514, 518, 520, 214, 214,
544, 215, 215, 544, 213, 213, 213, 395, 213, 527,
529, 213, 213, 530, 524, 534, 213, 429, 534, 213,
429, 213, 213, 535, 213, 213, 328, 213, 532, 213,
397, 403, 533, 213, 213, 213, 536, 327, 421, 539,
213, 421, 537, 213, 538, 213, 213, 213, 213, 553,
213, 544, 553, 280, 276, 541, 213, 214, 213, 540,
215, 213, 561, 213, 275, 561, 534, 503, 429, 451,
503, 453, 451, 566, 453, 283, 566, 283, 283, 283,
283, 466, 283, 468, 466, 213, 468, 466, 274, 421,
466, 285, 213, 285, 273, 285, 272, 285, 622, 285,
553, 285, 567, 564, 307, 628, 307, 307, 568, 307,
667, 570, 569, 561, 307, 271, 307, 307, 503, 307,
451, 270, 453, 308, 566, 269, 283, 268, 283, 267,
283, 265, 466, 307, 468, 213, 307, 578, 466, 468,
578, 503, 468, 592, 503, 573, 592, 576, 213, 574,
693, 575, 262, 592, 198, 307, 592, 307, 597, 501,
591, 597, 501, 599, 197, 307, 599, 307, 502, 601,
591, 502, 601, 196, 601, 597, 577, 601, 606, 195,
600, 606, 134, 831, 307, 308, 600, 130, 578, 130,
468, 600, 503, 503, 346, 606, 503, 610, 507, 508,
610, 507, 508, 95, 346, 593, 509, 95, 593, 509,
501, 831, 618, 213, 612, 213, 213, 619, 510, 502,
357, 510, 594, 595, 511, 357, 213, 511, 213, 213,
595, 595, 595, 595, 595, 595, 596, 514, 213, 596,
514, 337, 213, 695, 503, 213, 623, 699, 610, 507,
508, 213, 621, 596, 597, 213, 214, 509, 213, 215,
213, 597, 597, 597, 597, 597, 597, 598, 213, 510,
598, 831, 348, 613, 614, 511, 613, 614, 213, 615,
616, 213, 615, 616, 595, 595, 697, 518, 514, 692,
518, 213, 595, 595, 595, 595, 595, 595, 213, 624,
625, 213, 213, 625, 213, 627, 214, 213, 213, 215,
520, 213, 831, 520, 213, 213, 831, 213, 349, 602,
213, 213, 602, 630, 613, 614, 213, 831, 213, 214,
615, 616, 215, 831, 831, 831, 603, 604, 518, 213,
524, 213, 831, 524, 604, 604, 604, 604, 604, 604,
605, 625, 534, 605, 626, 534, 831, 626, 351, 214,
213, 520, 215, 831, 831, 831, 831, 605, 606, 629,
213, 214, 831, 753, 215, 606, 606, 606, 606, 606,
606, 607, 213, 213, 607, 631, 831, 213, 631, 359,
634, 524, 831, 634, 633, 213, 831, 831, 604, 604,
213, 213, 632, 534, 831, 626, 604, 604, 604, 604,
604, 604, 213, 213, 213, 213, 635, 636, 213, 544,
636, 641, 544, 831, 641, 794, 213, 553, 213, 831,
553, 213, 360, 213, 649, 561, 631, 649, 561, 655,
656, 634, 655, 656, 566, 213, 213, 566, 702, 283,
213, 283, 283, 283, 283, 757, 283, 660, 213, 662,
660, 578, 662, 213, 578, 831, 285, 831, 636, 213,
544, 285, 641, 285, 307, 285, 831, 307, 553, 285,
659, 831, 213, 691, 307, 649, 561, 307, 658, 307,
655, 656, 307, 578, 657, 566, 578, 831, 307, 831,
283, 307, 283, 670, 283, 831, 670, 663, 660, 831,
662, 671, 578, 610, 671, 590, 610, 592, 590, 592,
592, 831, 592, 831, 665, 307, 676, 831, 664, 676,
666, 339, 591, 831, 591, 307, 591, 831, 678, 213,
307, 678, 680, 677, 578, 680, 831, 348, 696, 307,
599, 308, 213, 599, 670, 679, 831, 601, 492, 681,
601, 492, 671, 348, 610, 213, 601, 600, 346, 601,
346, 831, 703, 682, 600, 491, 682, 346, 213, 684,
831, 353, 684, 600, 686, 688, 499, 686, 688, 499,
683, 831, 359, 349, 359, 689, 685, 610, 689, 690,
610, 687, 690, 498, 613, 213, 754, 613, 357, 349,
614, 615, 616, 614, 615, 616, 694, 357, 213, 694,
831, 831, 831, 214, 357, 698, 215, 213, 698, 214,
214, 214, 215, 215, 215, 360, 688, 360, 708, 831,
213, 708, 831, 758, 213, 213, 689, 831, 610, 625,
690, 626, 625, 213, 626, 613, 700, 213, 213, 700,
812, 614, 615, 616, 831, 213, 213, 694, 214, 631,
214, 215, 631, 215, 701, 831, 698, 704, 213, 831,
704, 831, 705, 706, 213, 705, 706, 634, 214, 708,
634, 215, 709, 636, 831, 709, 636, 213, 641, 831,
625, 641, 626, 831, 831, 213, 214, 700, 831, 215,
213, 213, 214, 649, 719, 215, 649, 719, 213, 720,
631, 831, 720, 213, 213, 831, 655, 656, 704, 655,
656, 831, 283, 705, 706, 283, 724, 725, 634, 724,
725, 831, 831, 709, 636, 660, 831, 662, 660, 641,
662, 831, 662, 307, 285, 662, 307, 307, 285, 285,
307, 723, 831, 831, 649, 719, 307, 285, 670, 307,
720, 670, 729, 730, 831, 729, 730, 655, 656, 831,
831, 731, 727, 283, 731, 831, 670, 724, 725, 670,
671, 688, 726, 671, 688, 728, 660, 689, 662, 736,
689, 831, 736, 662, 307, 831, 831, 831, 307, 734,
738, 831, 734, 738, 339, 688, 737, 307, 688, 670,
308, 308, 738, 729, 730, 738, 735, 739, 740, 308,
742, 740, 731, 742, 831, 743, 831, 670, 743, 739,
831, 671, 688, 353, 831, 741, 745, 742, 689, 745,
747, 747, 744, 747, 747, 749, 751, 213, 749, 751,
346, 689, 690, 746, 689, 690, 688, 748, 748, 213,
213, 752, 750, 751, 694, 755, 213, 694, 698, 831,
831, 698, 213, 756, 700, 704, 357, 700, 704, 213,
831, 759, 760, 214, 759, 760, 215, 214, 761, 705,
215, 761, 705, 214, 214, 706, 215, 215, 706, 213,
789, 708, 689, 690, 708, 831, 831, 831, 214, 213,
213, 215, 213, 831, 214, 694, 213, 215, 708, 698,
831, 708, 213, 213, 709, 700, 704, 709, 765, 213,
831, 765, 759, 760, 766, 768, 831, 766, 768, 761,
705, 770, 719, 831, 770, 719, 706, 720, 772, 831,
720, 772, 708, 831, 283, 724, 725, 283, 724, 725,
729, 730, 731, 729, 730, 731, 831, 729, 730, 708,
729, 730, 831, 831, 831, 709, 285, 285, 285, 765,
731, 831, 831, 731, 734, 766, 768, 734, 831, 339,
213, 734, 770, 719, 734, 773, 339, 776, 720, 772,
776, 735, 339, 213, 793, 283, 724, 725, 735, 831,
831, 729, 730, 731, 777, 213, 813, 776, 729, 730,
776, 778, 339, 831, 778, 831, 339, 778, 213, 831,
778, 731, 339, 831, 777, 346, 780, 831, 779, 780,
780, 339, 346, 780, 779, 339, 743, 743, 346, 743,
743, 831, 831, 781, 353, 353, 831, 781, 782, 782,
831, 782, 782, 744, 744, 831, 353, 353, 346, 831,
795, 784, 346, 795, 784, 783, 783, 784, 346, 353,
784, 797, 831, 788, 797, 353, 788, 346, 785, 831,
790, 346, 791, 790, 785, 791, 786, 357, 357, 786,
786, 213, 814, 786, 353, 831, 831, 831, 353, 357,
357, 213, 792, 787, 213, 792, 759, 787, 213, 759,
213, 795, 357, 760, 213, 831, 760, 761, 357, 831,
761, 213, 797, 213, 788, 214, 765, 831, 215, 765,
213, 790, 214, 791, 831, 215, 214, 357, 831, 215,
831, 357, 766, 213, 768, 766, 799, 768, 770, 799,
831, 770, 800, 792, 831, 800, 772, 759, 801, 772,
831, 801, 804, 831, 760, 804, 804, 339, 761, 804,
593, 339, 831, 593, 831, 339, 831, 765, 831, 805,
285, 593, 831, 805, 593, 593, 339, 594, 593, 806,
339, 831, 806, 766, 831, 768, 831, 799, 594, 770,
831, 810, 594, 800, 810, 831, 807, 772, 808, 801,
831, 808, 808, 346, 831, 808, 353, 346, 811, 788,
353, 346, 788, 602, 831, 809, 602, 602, 831, 809,
602, 353, 346, 831, 602, 353, 346, 602, 214, 831,
603, 215, 353, 790, 603, 791, 790, 792, 791, 795,
792, 603, 795, 815, 797, 816, 815, 797, 816, 357,
831, 831, 214, 357, 214, 215, 214, 215, 799, 215,
788, 799, 800, 801, 357, 800, 801, 831, 357, 831,
819, 831, 831, 819, 676, 357, 831, 676, 831, 339,
819, 831, 831, 819, 790, 285, 791, 820, 792, 821,
795, 677, 821, 831, 815, 797, 816, 820, 676, 682,
831, 676, 682, 339, 831, 821, 822, 353, 821, 799,
831, 831, 831, 800, 801, 677, 683, 823, 682, 831,
823, 682, 822, 831, 824, 346, 353, 824, 815, 825,
816, 815, 825, 816, 740, 683, 740, 740, 749, 740,
831, 749, 831, 749, 823, 213, 749, 823, 831, 346,
357, 741, 213, 741, 831, 750, 829, 213, 213, 829,
750, 831, 831, 214, 824, 213, 215, 824, 823, 357,
213, 825, 831, 830, 825, 824, 830, 831, 831, 815,
825, 816, 829, 214, 830, 829, 215, 830, 831, 831,
214, 831, 831, 215, 831, 823, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 829, 831, 831,
831, 831, 831, 831, 831, 824, 831, 831, 831, 831,
831, 831, 825, 831, 830, 831, 831, 831, 831, 831,
831, 831, 831, 829, 831, 830, 156, 831, 831, 831,
156, 157, 157, 157, 157, 157, 157, 157, 157, 166,
166, 166, 166, 166, 166, 166, 166, 178, 178, 831,
831, 178, 178, 213, 213, 831, 213, 213, 213, 213,
217, 217, 217, 217, 217, 217, 217, 284, 284, 831,
831, 284, 284, 284, 308, 308, 831, 831, 831, 308,
308, 299, 831, 831, 831, 831, 299, 299, 342, 342,
342, 342, 342, 342, 342, 342, 487, 487, 831, 831,
487, 487, 831, 487, 488, 488, 831, 831, 488, 488,
831, 488, 589, 589, 831, 831, 589, 589, 831, 589,
31, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831
} ;
static yyconst short int yy_chk[3267] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
5, 6, 312, 5, 6, 7, 7, 312, 7, 8,
8, 11, 8, 7, 17, 11, 17, 8, 7, 59,
59, 11, 8, 11, 18, 11, 18, 91, 11, 21,
11, 11, 21, 47, 70, 826, 69, 70, 5, 6,
91, 47, 47, 12, 118, 5, 6, 12, 71, 69,
70, 5, 6, 12, 118, 12, 69, 12, 71, 121,
12, 71, 12, 12, 19, 34, 38, 22, 34, 38,
22, 87, 21, 103, 102, 47, 102, 103, 87, 268,
21, 268, 121, 818, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
22, 151, 151, 364, 364, 817, 34, 38, 22, 23,
23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 25, 25, 25, 25, 178, 26,
26, 26, 26, 73, 29, 39, 30, 29, 39, 30,
119, 181, 39, 73, 25, 105, 73, 77, 25, 26,
119, 105, 41, 26, 44, 41, 45, 44, 77, 45,
77, 46, 77, 29, 46, 30, 43, 25, 48, 43,
178, 48, 26, 580, 803, 25, 29, 43, 30, 29,
26, 30, 314, 181, 48, 29, 39, 30, 33, 33,
33, 33, 580, 51, 33, 33, 51, 314, 33, 33,
33, 33, 33, 41, 33, 44, 802, 45, 33, 33,
33, 33, 46, 61, 33, 49, 61, 43, 33, 48,
113, 49, 62, 49, 49, 62, 113, 52, 775, 774,
52, 33, 33, 53, 33, 49, 53, 210, 33, 33,
33, 33, 37, 210, 51, 37, 315, 37, 52, 52,
52, 315, 75, 75, 53, 53, 53, 49, 54, 37,
37, 54, 80, 80, 61, 75, 120, 37, 37, 37,
37, 37, 37, 62, 62, 80, 213, 120, 52, 54,
54, 54, 60, 64, 53, 60, 64, 83, 65, 213,
767, 65, 63, 37, 40, 63, 83, 40, 763, 310,
83, 469, 40, 60, 60, 60, 310, 65, 581, 54,
65, 40, 40, 63, 63, 63, 469, 223, 230, 40,
40, 40, 40, 40, 40, 78, 64, 581, 78, 66,
223, 230, 66, 60, 64, 733, 79, 68, 66, 65,
68, 78, 472, 63, 78, 40, 66, 66, 66, 79,
470, 66, 79, 72, 470, 74, 68, 74, 472, 68,
72, 76, 72, 82, 74, 68, 72, 82, 74, 278,
74, 76, 72, 82, 76, 278, 82, 76, 68, 81,
66, 67, 81, 81, 67, 732, 721, 81, 68, 84,
67, 122, 122, 84, 84, 81, 67, 717, 67, 67,
67, 85, 84, 67, 85, 86, 89, 122, 86, 89,
67, 106, 107, 715, 106, 107, 108, 109, 712, 108,
109, 110, 112, 114, 110, 112, 114, 123, 125, 293,
123, 125, 67, 106, 107, 293, 711, 111, 108, 109,
111, 710, 127, 110, 85, 127, 126, 126, 231, 126,
86, 89, 85, 231, 108, 109, 86, 89, 110, 111,
107, 231, 106, 107, 159, 112, 114, 108, 109, 111,
111, 673, 110, 112, 114, 672, 654, 653, 123, 125,
217, 650, 217, 217, 218, 159, 218, 218, 111, 115,
115, 115, 115, 127, 217, 115, 115, 126, 648, 115,
115, 115, 115, 115, 647, 115, 159, 482, 646, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 116, 645, 644, 116, 116, 117, 482,
128, 117, 117, 128, 124, 124, 124, 124, 116, 129,
116, 116, 129, 117, 134, 117, 117, 134, 136, 137,
139, 136, 137, 139, 124, 643, 137, 140, 124, 141,
140, 139, 141, 142, 143, 144, 142, 143, 144, 155,
145, 232, 155, 145, 116, 146, 117, 124, 146, 117,
143, 128, 642, 640, 232, 124, 144, 144, 144, 637,
129, 145, 145, 145, 587, 134, 146, 146, 146, 136,
137, 139, 152, 154, 224, 152, 154, 224, 140, 160,
141, 168, 160, 586, 142, 143, 144, 224, 585, 163,
155, 145, 163, 152, 152, 152, 146, 161, 164, 168,
161, 164, 161, 584, 241, 164, 165, 169, 172, 165,
169, 172, 174, 175, 161, 174, 175, 241, 176, 170,
168, 176, 170, 152, 154, 154, 158, 170, 571, 158,
160, 158, 177, 313, 173, 177, 170, 173, 183, 563,
163, 183, 562, 158, 158, 173, 313, 188, 161, 164,
188, 158, 158, 158, 158, 158, 158, 165, 169, 172,
560, 226, 559, 174, 175, 558, 556, 555, 226, 176,
170, 180, 182, 189, 226, 182, 189, 158, 162, 180,
180, 162, 554, 177, 552, 173, 551, 185, 182, 183,
185, 180, 185, 550, 191, 162, 162, 191, 188, 186,
549, 547, 186, 162, 162, 162, 162, 162, 162, 167,
184, 187, 167, 180, 187, 546, 184, 167, 184, 184,
186, 186, 186, 182, 189, 190, 167, 167, 190, 185,
184, 545, 543, 187, 167, 167, 167, 167, 167, 167,
338, 192, 512, 338, 192, 191, 190, 190, 190, 505,
186, 193, 184, 194, 193, 195, 194, 338, 195, 504,
167, 171, 187, 197, 171, 479, 197, 206, 207, 229,
206, 207, 193, 193, 193, 194, 190, 201, 171, 171,
201, 478, 229, 229, 477, 475, 171, 171, 171, 171,
171, 171, 192, 208, 202, 474, 208, 202, 201, 201,
201, 473, 193, 458, 194, 457, 195, 450, 203, 209,
204, 203, 209, 204, 197, 202, 202, 448, 206, 207,
207, 211, 214, 215, 211, 214, 215, 234, 201, 203,
203, 203, 204, 204, 212, 216, 219, 212, 216, 219,
234, 447, 234, 445, 208, 202, 220, 261, 225, 220,
261, 225, 209, 212, 216, 220, 212, 216, 240, 203,
209, 204, 240, 227, 211, 220, 227, 233, 220, 228,
233, 240, 211, 214, 215, 222, 225, 222, 222, 228,
222, 222, 228, 235, 235, 212, 216, 219, 239, 225,
236, 227, 222, 236, 237, 233, 235, 220, 261, 225,
444, 239, 238, 239, 227, 237, 236, 237, 233, 242,
238, 244, 244, 243, 227, 238, 245, 246, 233, 242,
243, 247, 242, 443, 244, 442, 243, 243, 247, 245,
246, 245, 248, 250, 247, 248, 250, 246, 249, 249,
251, 257, 252, 251, 257, 248, 393, 253, 253, 254,
255, 249, 253, 255, 441, 252, 251, 252, 398, 393,
253, 250, 254, 256, 254, 259, 256, 263, 259, 398,
263, 398, 264, 283, 250, 264, 283, 284, 286, 352,
284, 286, 352, 440, 250, 287, 257, 288, 287, 500,
288, 289, 257, 255, 289, 283, 352, 500, 500, 284,
286, 255, 292, 439, 437, 292, 256, 287, 290, 288,
259, 290, 263, 289, 256, 436, 259, 264, 263, 435,
396, 434, 291, 264, 283, 291, 287, 396, 284, 286,
290, 500, 294, 396, 289, 294, 287, 296, 288, 433,
296, 290, 289, 297, 291, 292, 297, 299, 300, 301,
299, 300, 301, 292, 302, 432, 431, 302, 303, 290,
304, 303, 486, 304, 307, 291, 486, 307, 309, 305,
430, 309, 305, 291, 311, 294, 317, 311, 319, 317,
296, 319, 427, 294, 405, 304, 297, 301, 296, 388,
320, 320, 302, 320, 297, 303, 300, 405, 299, 300,
301, 305, 305, 321, 323, 302, 321, 323, 486, 303,
324, 304, 378, 324, 326, 307, 309, 326, 330, 309,
305, 330, 311, 332, 411, 311, 332, 317, 336, 319,
391, 336, 391, 391, 377, 337, 339, 411, 411, 337,
339, 320, 340, 341, 350, 340, 341, 350, 341, 336,
336, 336, 376, 342, 321, 323, 337, 339, 335, 340,
341, 324, 334, 345, 333, 326, 345, 331, 347, 330,
329, 347, 361, 347, 332, 361, 328, 337, 339, 336,
345, 337, 339, 348, 414, 347, 349, 348, 414, 349,
327, 349, 401, 340, 341, 350, 308, 414, 295, 354,
399, 399, 354, 349, 348, 401, 282, 401, 351, 351,
353, 353, 281, 399, 345, 346, 354, 363, 346, 347,
363, 356, 471, 361, 356, 348, 351, 366, 353, 348,
366, 355, 346, 346, 355, 471, 280, 349, 356, 355,
346, 346, 346, 346, 346, 346, 279, 351, 355, 353,
354, 351, 358, 353, 277, 358, 359, 359, 404, 404,
358, 276, 483, 275, 274, 483, 346, 360, 363, 358,
360, 404, 356, 367, 359, 360, 367, 368, 366, 483,
368, 273, 355, 357, 360, 362, 357, 369, 370, 372,
369, 370, 372, 362, 362, 359, 272, 271, 270, 359,
357, 357, 426, 358, 365, 362, 426, 365, 357, 357,
357, 357, 357, 357, 371, 426, 373, 371, 360, 373,
374, 269, 375, 374, 367, 375, 365, 362, 368, 379,
380, 267, 379, 380, 357, 521, 371, 266, 369, 370,
372, 381, 383, 384, 381, 383, 384, 265, 521, 386,
379, 379, 386, 382, 387, 365, 382, 387, 389, 390,
385, 389, 390, 385, 525, 371, 392, 373, 262, 392,
260, 374, 258, 375, 382, 382, 382, 525, 406, 200,
379, 380, 385, 385, 394, 400, 402, 394, 400, 402,
199, 406, 381, 383, 384, 406, 395, 198, 196, 395,
386, 166, 157, 407, 382, 387, 407, 150, 149, 389,
390, 385, 394, 400, 402, 395, 409, 392, 395, 397,
403, 409, 397, 403, 148, 394, 400, 402, 147, 409,
135, 407, 408, 408, 132, 394, 400, 402, 397, 403,
428, 397, 403, 428, 407, 408, 413, 395, 410, 410,
412, 412, 415, 413, 407, 417, 416, 429, 417, 413,
429, 410, 418, 418, 412, 415, 131, 419, 415, 416,
397, 403, 416, 420, 423, 418, 419, 130, 421, 423,
419, 421, 420, 417, 422, 422, 420, 423, 425, 438,
424, 428, 438, 104, 101, 425, 417, 421, 422, 424,
421, 425, 446, 424, 100, 446, 417, 449, 429, 451,
449, 453, 451, 452, 453, 454, 452, 455, 454, 456,
455, 459, 456, 461, 459, 527, 461, 466, 99, 421,
466, 451, 533, 453, 98, 452, 97, 454, 527, 455,
438, 456, 452, 449, 460, 533, 462, 460, 454, 462,
579, 456, 455, 446, 464, 96, 463, 464, 449, 463,
451, 95, 453, 579, 452, 94, 454, 93, 455, 92,
456, 90, 459, 465, 461, 618, 465, 467, 466, 468,
467, 476, 468, 484, 476, 460, 484, 464, 618, 462,
618, 463, 88, 485, 58, 460, 485, 462, 491, 501,
484, 491, 501, 493, 57, 464, 493, 463, 502, 494,
485, 502, 494, 56, 495, 491, 465, 495, 498, 55,
493, 498, 35, 31, 465, 467, 494, 28, 467, 27,
468, 495, 476, 503, 484, 498, 503, 506, 507, 508,
506, 507, 508, 10, 485, 489, 509, 9, 489, 509,
501, 0, 522, 513, 513, 522, 523, 523, 510, 502,
494, 510, 489, 489, 511, 495, 513, 511, 522, 523,
489, 489, 489, 489, 489, 489, 490, 514, 620, 490,
514, 490, 526, 620, 503, 528, 528, 624, 506, 507,
508, 620, 526, 490, 490, 526, 514, 509, 528, 514,
624, 490, 490, 490, 490, 490, 490, 492, 622, 510,
492, 0, 492, 515, 516, 511, 515, 516, 617, 517,
519, 622, 517, 519, 492, 492, 622, 518, 514, 617,
518, 617, 492, 492, 492, 492, 492, 492, 529, 529,
530, 515, 516, 530, 532, 532, 518, 517, 519, 518,
520, 529, 0, 520, 515, 516, 0, 532, 492, 496,
517, 519, 496, 536, 515, 516, 536, 0, 530, 520,
517, 519, 520, 0, 0, 0, 496, 496, 518, 536,
524, 530, 0, 524, 496, 496, 496, 496, 496, 496,
497, 530, 534, 497, 531, 534, 0, 531, 497, 524,
692, 520, 524, 0, 0, 0, 0, 497, 497, 535,
535, 534, 0, 692, 534, 497, 497, 497, 497, 497,
497, 499, 531, 535, 499, 537, 0, 539, 537, 499,
540, 524, 0, 540, 539, 531, 0, 0, 499, 499,
539, 538, 538, 534, 0, 531, 499, 499, 499, 499,
499, 499, 758, 537, 538, 541, 541, 542, 540, 544,
542, 548, 544, 0, 548, 758, 537, 553, 541, 0,
553, 540, 499, 629, 557, 561, 537, 557, 561, 564,
565, 540, 564, 565, 566, 542, 629, 566, 629, 567,
697, 569, 567, 568, 569, 697, 568, 570, 542, 572,
570, 573, 572, 697, 573, 0, 566, 0, 542, 612,
544, 567, 548, 569, 574, 568, 0, 574, 553, 570,
569, 0, 612, 612, 575, 557, 561, 575, 568, 576,
564, 565, 576, 578, 567, 566, 578, 0, 577, 0,
567, 577, 569, 582, 568, 0, 582, 574, 570, 0,
572, 583, 573, 588, 583, 590, 588, 591, 590, 592,
591, 0, 592, 0, 576, 574, 593, 0, 575, 593,
577, 593, 590, 0, 591, 575, 592, 0, 594, 621,
576, 594, 596, 593, 578, 596, 0, 596, 621, 577,
599, 582, 621, 599, 582, 594, 0, 600, 597, 596,
600, 597, 583, 597, 588, 630, 601, 599, 591, 601,
592, 0, 630, 602, 600, 597, 602, 593, 630, 603,
0, 602, 603, 601, 605, 608, 606, 605, 608, 606,
602, 0, 605, 596, 606, 609, 603, 610, 609, 611,
610, 605, 611, 606, 613, 693, 693, 613, 600, 597,
614, 615, 616, 614, 615, 616, 619, 601, 693, 619,
0, 0, 0, 613, 602, 623, 613, 699, 623, 614,
615, 616, 614, 615, 616, 605, 608, 606, 638, 0,
699, 638, 0, 699, 619, 789, 609, 0, 610, 625,
611, 626, 625, 623, 626, 613, 627, 619, 789, 627,
789, 614, 615, 616, 0, 628, 623, 619, 625, 631,
626, 625, 631, 626, 628, 0, 623, 632, 628, 0,
632, 0, 633, 635, 627, 633, 635, 634, 631, 638,
634, 631, 639, 636, 0, 639, 636, 627, 641, 0,
625, 641, 626, 0, 0, 632, 634, 627, 0, 634,
633, 635, 636, 649, 651, 636, 649, 651, 632, 652,
631, 0, 652, 633, 635, 0, 655, 656, 632, 655,
656, 0, 657, 633, 635, 657, 658, 659, 634, 658,
659, 0, 0, 639, 636, 660, 0, 661, 660, 641,
661, 0, 662, 664, 657, 662, 664, 663, 658, 659,
663, 657, 0, 0, 649, 651, 665, 660, 666, 665,
652, 666, 667, 668, 0, 667, 668, 655, 656, 0,
0, 669, 664, 657, 669, 0, 670, 658, 659, 670,
671, 674, 663, 671, 674, 665, 660, 675, 661, 677,
675, 0, 677, 662, 664, 0, 0, 0, 663, 676,
678, 0, 676, 678, 676, 688, 677, 665, 688, 666,
667, 668, 679, 667, 668, 679, 676, 678, 680, 669,
681, 680, 669, 681, 0, 682, 0, 670, 682, 679,
0, 671, 674, 682, 0, 680, 683, 681, 675, 683,
684, 685, 682, 684, 685, 686, 687, 691, 686, 687,
676, 689, 690, 683, 689, 690, 688, 684, 685, 696,
691, 691, 686, 687, 694, 695, 695, 694, 698, 0,
0, 698, 696, 696, 700, 704, 682, 700, 704, 695,
0, 701, 702, 694, 701, 702, 694, 698, 703, 705,
698, 703, 705, 700, 704, 706, 700, 704, 706, 753,
753, 707, 689, 690, 707, 0, 0, 0, 705, 701,
702, 705, 753, 0, 706, 694, 703, 706, 708, 698,
0, 708, 701, 702, 709, 700, 704, 709, 713, 703,
0, 713, 701, 702, 714, 716, 0, 714, 716, 703,
705, 718, 719, 0, 718, 719, 706, 720, 722, 0,
720, 722, 707, 0, 723, 724, 725, 723, 724, 725,
726, 727, 728, 726, 727, 728, 0, 729, 730, 708,
729, 730, 0, 0, 0, 709, 723, 724, 725, 713,
731, 0, 0, 731, 734, 714, 716, 734, 0, 734,
757, 735, 718, 719, 735, 723, 735, 736, 720, 722,
736, 734, 736, 757, 757, 723, 724, 725, 735, 0,
0, 726, 727, 728, 736, 793, 793, 737, 729, 730,
737, 738, 737, 0, 738, 0, 738, 739, 793, 0,
739, 731, 739, 0, 737, 734, 740, 0, 738, 740,
741, 740, 735, 741, 739, 741, 743, 744, 736, 743,
744, 0, 0, 740, 743, 744, 0, 741, 745, 746,
0, 745, 746, 743, 744, 0, 745, 746, 737, 0,
762, 747, 738, 762, 747, 745, 746, 748, 739, 747,
748, 764, 0, 752, 764, 748, 752, 740, 747, 0,
754, 741, 755, 754, 748, 755, 749, 743, 744, 749,
750, 794, 794, 750, 749, 0, 0, 0, 750, 745,
746, 752, 756, 749, 794, 756, 759, 750, 754, 759,
755, 762, 747, 760, 752, 0, 760, 761, 748, 0,
761, 754, 764, 755, 752, 759, 765, 0, 759, 765,
756, 754, 760, 755, 0, 760, 761, 749, 0, 761,
0, 750, 766, 756, 768, 766, 769, 768, 770, 769,
0, 770, 771, 756, 0, 771, 772, 759, 773, 772,
0, 773, 776, 0, 760, 776, 777, 776, 761, 777,
778, 777, 0, 778, 0, 778, 0, 765, 0, 776,
773, 779, 0, 777, 779, 780, 779, 778, 780, 781,
780, 0, 781, 766, 0, 768, 0, 769, 779, 770,
0, 787, 780, 771, 787, 0, 781, 772, 782, 773,
0, 782, 783, 776, 0, 783, 782, 777, 787, 788,
783, 778, 788, 784, 0, 782, 784, 785, 0, 783,
785, 784, 779, 0, 786, 785, 780, 786, 788, 0,
784, 788, 786, 790, 785, 791, 790, 792, 791, 795,
792, 786, 795, 796, 797, 798, 796, 797, 798, 782,
0, 0, 790, 783, 791, 790, 792, 791, 799, 792,
788, 799, 800, 801, 784, 800, 801, 0, 785, 0,
806, 0, 0, 806, 804, 786, 0, 804, 0, 804,
807, 0, 0, 807, 790, 801, 791, 806, 792, 810,
795, 804, 810, 0, 796, 797, 798, 807, 805, 808,
0, 805, 808, 805, 0, 811, 810, 808, 811, 799,
0, 0, 0, 800, 801, 805, 808, 812, 809, 0,
812, 809, 811, 0, 813, 804, 809, 813, 815, 814,
816, 815, 814, 816, 819, 809, 820, 819, 821, 820,
0, 821, 0, 822, 823, 812, 822, 823, 0, 805,
808, 819, 813, 820, 0, 821, 827, 814, 812, 827,
822, 0, 0, 823, 824, 813, 823, 824, 812, 809,
814, 825, 0, 828, 825, 813, 828, 0, 0, 815,
814, 816, 829, 824, 830, 829, 824, 830, 0, 0,
825, 0, 0, 825, 0, 823, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 827, 0, 0,
0, 0, 0, 0, 0, 824, 0, 0, 0, 0,
0, 0, 825, 0, 828, 0, 0, 0, 0, 0,
0, 0, 0, 829, 0, 830, 832, 0, 0, 0,
832, 833, 833, 833, 833, 833, 833, 833, 833, 834,
834, 834, 834, 834, 834, 834, 834, 835, 835, 0,
0, 835, 835, 836, 836, 0, 836, 836, 836, 836,
837, 837, 837, 837, 837, 837, 837, 838, 838, 0,
0, 838, 838, 838, 839, 839, 0, 0, 0, 839,
839, 840, 0, 0, 0, 0, 840, 840, 841, 841,
841, 841, 841, 841, 841, 841, 842, 842, 0, 0,
842, 842, 0, 842, 843, 843, 0, 0, 843, 843,
0, 843, 844, 844, 0, 0, 844, 844, 0, 844,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831, 831, 831, 831, 831,
831, 831, 831, 831, 831, 831
} ;
static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
static char *yy_full_match;
static int yy_lp;
#define REJECT \
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
++yy_lp; \
goto find_rule; \
}
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "lexsrc.l"
#define INITIAL 0
#line 2 "lexsrc.l"
#ifndef lint
static char *RCSid = "$Id: lexsrc.c,v 1.6 2001/05/23 07:55:30 mark Exp $";
#endif
/*
* The Regina Rexx Interpreter
* Copyright (C) 1992-1994 Anders Christensen <anders@pvv.unit.no>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "rexx.h"
#include "yaccsrc.h"
#include <ctype.h>
#include <string.h>
#include <assert.h>
/* Define ASCII_0_TERMINATES_STRING if you want that ASCII-0 terminates
* an input string. Normally this should not happen. Input strings are
* terminated by a length encoding. The string {"", length=1} is invalid for
* the lexer (ASCII-0 is not allowed) while {"", length=0} is allowed (this
* is an empty input).
* ASCII_0_TERMINATES_STRING is only(!) for backward compatibility and
* shouldn't be used under normal circumstances.
* FGC
*/
#define ASCII_0_TERMINATES_STRING
#ifdef YYLMAX
# undef YYLMAX
#endif
#define YYLMAX BUFFERSIZE
#ifdef FLEX_SCANNER
#undef YY_CHAR
#define YY_CHAR YY_CHAR_TYPE
#undef YY_INPUT
#define YY_INPUT(buf,result,max_size) result=fill_buffer(buf,max_size)
#endif
/* NOTE: Every comment is replaced by a '`' character in the lower input
* routines. These should check for such (illegal) characters.
*/
#define MY_ISBLANK(c) (((c)==' ')||((c)=='\t')||((c)=='`'))
PROTECTION_VAR(regina_parser)
/* externals which are protected by regina_parser */
internal_parser_type parser_data = {NULL, };
int retlength=0 ;
char retvalue[BUFFERSIZE] ;
/* end of externals protected by regina_parser */
/* locals, they are protected by regina_parser, too */
static int nextline = 1;
static int nextstart = 1;
static int do_level = 0 ;
static int in_numform=0, next_numform=0 ;
static int obs_with=0, in_do=0, in_then=0, dontlast=0 ;
static int sum=0 ;
static int code=0, nexta=0, in_parse=0, in_trace=0, itflag=0 ;
static int in_signal=0, in_call=0, in_address=0 ;
static int seek_with=0 ;
static int preva=0, lasta=0 ;
static char ch, ech ;
static int kill_this_space=0, kill_next_space=1 ;
static int extnextline = -1, extnextstart; /* for a delayed line increment */
static int linenr=1 ;
static int contline = 0;
static int inEOF=0 ;
static int singlequote=0, doblequote=0 ;
static int firstln=0 ;
static int bufptr=0 ;
/* Previous bug. 8-bits clean combined with EOF ==> need at least short */
static short chbuffer[LOOKAHEAD] ;
static int ipretflag=0, cch=0 ;
static const char *interptr=NULL ;
static const char *interptrmax ;
static int cchmax = 0 ;
static YY_CHAR_TYPE *rmspc( YY_CHAR_TYPE *instr ) ;
static int fill_buffer( char *buf, int max_size ) ;
#define SET_NEXTSTART() (nextstart += yyleng)
#define YY_FATAL_ERROR(s) exiterror( ERR_PROG_UNREADABLE, 1, s )
#define comm 1
#define signal 2
#define sgtype 3
#define procd 4
#define parse 5
#define then 6
#define with 7
#define numeric 8
#define do1 9
#define other 10
#define value1 11
#define ifcont 12
#define signame 13
#define nmform 14
#line 112 "lexsrc.l"
/* int yy_startcond=comm ; FGC: Needless? */
#line 1638 "./lexsrc.c"
#line 318 "flex.skl"
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif
#line 333 "flex.skl"
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#line 338 "flex.skl"
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
#line 350 "flex.skl"
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif
#line 358 "flex.skl"
#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif
#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines.. This will fail
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
* or sizeof(void*) != sizeof(int).
*/
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
#line 404 "flex.skl"
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
#line 414 "flex.skl"
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
&& ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#line 422 "flex.skl"
#endif
#line 429 "flex.skl"
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#line 447 "flex.skl"
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
#line 454 "flex.skl"
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#line 461 "flex.skl"
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
#line 468 "flex.skl"
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
#define YY_RULE_SETUP \
YY_USER_ACTION
#line 483 "flex.skl"
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 162 "lexsrc.l"
{ if (nexta==1) {
nexta = 0 ;
lasta = (dontlast==0) ;
dontlast = 0 ;
return code ; }
if (next_numform)
{
in_numform = 1 ;
next_numform = 0 ;
}
else
in_numform = 0 ;
if (in_address)
in_address-- ;
kill_this_space = kill_next_space ;
kill_next_space = 0 ;
if (itflag)
in_trace = seek_with = 0 ;
itflag = (in_trace) ;
if (extnextline != -1)
{
parser_data.tstart = nextstart = extnextstart;
parser_data.tline = nextline = extnextline;
extnextline = -1;
}
else
{
parser_data.tstart = nextstart ;
parser_data.tline = nextline ;
}
preva = lasta ;
lasta = 0 ;
}
#line 1846 "./lexsrc.c"
#line 492 "flex.skl"
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
#line 507 "flex.skl"
yyin = stdin;
#line 513 "flex.skl"
if ( ! yyout )
#line 517 "flex.skl"
yyout = stdout;
#line 523 "flex.skl"
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
while ( 1 ) /* loops until end-of-file is reached */
{
#line 535 "flex.skl"
yy_cp = yy_c_buf_p;
/* Support of yytext. */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
yy_state_ptr = yy_state_buf;
*yy_state_ptr++ = yy_current_state;
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 832 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
*yy_state_ptr++ = yy_current_state;
++yy_cp;
}
while ( yy_base[yy_current_state] != 3211 );
#line 547 "flex.skl"
yy_find_action:
yy_current_state = *--yy_state_ptr;
yy_lp = yy_accept[yy_current_state];
find_rule: /* we branch to this label when backing up */
for ( ; ; ) /* until we find what rule we matched */
{
if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
{
yy_act = yy_acclist[yy_lp];
{
yy_full_match = yy_cp;
break;
}
}
--yy_cp;
yy_current_state = *--yy_state_ptr;
yy_lp = yy_accept[yy_current_state];
}
#line 551 "flex.skl"
YY_DO_BEFORE_ACTION;
#line 556 "flex.skl"
do_action: /* This label is used only to access EOF actions. */
#line 561 "flex.skl"
switch ( yy_act )
{ /* beginning of action switch */
case 1:
YY_RULE_SETUP
#line 204 "lexsrc.l"
SET_NEXTSTART() ;
YY_BREAK
case 2:
YY_RULE_SETUP
#line 206 "lexsrc.l"
{
char *ptr;
if ((ptr = strchr(yytext, '\n')) != NULL)
{
nextstart = yyleng - (int) (ptr - yytext) ;
nextline++ ;
if (extnextline != -1)
extnextline++;
}
else
SET_NEXTSTART() ;
return STATSEP ; }
YY_BREAK
case 3:
YY_RULE_SETUP
#line 219 "lexsrc.l"
{
char *ptr;
BEGIN comm ;
if (obs_with==1)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_TEMPLATE, 1, yytext ) ;
}
obs_with = in_do = 0 ;
in_signal = in_address = in_call = 0 ;
in_parse = 0 ;
if ((ptr = strchr(yytext, '\n')) != NULL)
{
nextstart = yyleng - (int) (ptr - yytext) ;
nextline++ ;
if (extnextline != -1)
extnextline++;
}
else
SET_NEXTSTART() ;
return STATSEP ; }
YY_BREAK
case 4:
YY_RULE_SETUP
#line 241 "lexsrc.l"
{
BEGIN value1 ;
in_signal = 1 ;
in_address = 2 ;
SET_NEXTSTART() ;
return ADDRESS ; }
YY_BREAK
case 5:
YY_RULE_SETUP
#line 248 "lexsrc.l"
{
BEGIN other ;
in_parse = 1 ;
SET_NEXTSTART() ;
return ARG ; }
YY_BREAK
case 6:
YY_RULE_SETUP
#line 254 "lexsrc.l"
{
BEGIN signal ;
in_call = 1 ;
SET_NEXTSTART() ;
return CALL ; }
YY_BREAK
case 7:
YY_RULE_SETUP
#line 260 "lexsrc.l"
{
BEGIN do1 ;
assert( do_level >=0 ) ;
do_level++ ;
in_do = 1 ;
SET_NEXTSTART() ;
return DO ; }
YY_BREAK
case 8:
YY_RULE_SETUP
#line 268 "lexsrc.l"
{
BEGIN other ;
in_parse = 1 ;
SET_NEXTSTART() ;
return DROP ; }
YY_BREAK
case 9:
YY_RULE_SETUP
#line 274 "lexsrc.l"
{
BEGIN comm ;
SET_NEXTSTART() ;
return ELSE ; }
YY_BREAK
case 10:
YY_RULE_SETUP
#line 279 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return EXIT ; }
YY_BREAK
case 11:
YY_RULE_SETUP
#line 284 "lexsrc.l"
{
BEGIN ifcont ;
in_then = 1 ;
SET_NEXTSTART() ;
return IF ; }
YY_BREAK
case 12:
YY_RULE_SETUP
#line 290 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return INTERPRET ; }
YY_BREAK
case 13:
YY_RULE_SETUP
#line 295 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return ITERATE ; }
YY_BREAK
case 14:
YY_RULE_SETUP
#line 300 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return LEAVE ; }
YY_BREAK
case 15:
YY_RULE_SETUP
#line 305 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return OPTIONS ; }
YY_BREAK
case 16:
YY_RULE_SETUP
#line 310 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return NOP ; }
YY_BREAK
case 17:
YY_RULE_SETUP
#line 315 "lexsrc.l"
{
BEGIN numeric ;
SET_NEXTSTART() ;
return NUMERIC ; }
YY_BREAK
case 18:
YY_RULE_SETUP
#line 320 "lexsrc.l"
{
BEGIN parse ;
in_parse = 1 ;
SET_NEXTSTART() ;
return PARSE ; }
YY_BREAK
case 19:
YY_RULE_SETUP
#line 326 "lexsrc.l"
{
BEGIN procd ;
SET_NEXTSTART() ;
return PROCEDURE ; }
YY_BREAK
case 20:
YY_RULE_SETUP
#line 331 "lexsrc.l"
{
BEGIN other ;
in_parse = 1 ;
SET_NEXTSTART() ;
return PULL ; }
YY_BREAK
case 21:
YY_RULE_SETUP
#line 337 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return PUSH ; }
YY_BREAK
case 22:
YY_RULE_SETUP
#line 342 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return QUEUE ; }
YY_BREAK
case 23:
YY_RULE_SETUP
#line 347 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return RETURN ; }
YY_BREAK
case 24:
YY_RULE_SETUP
#line 352 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return SAY ; }
YY_BREAK
case 25:
YY_RULE_SETUP
#line 357 "lexsrc.l"
{
BEGIN other ;
assert( do_level >= 0 ) ;
do_level++ ;
SET_NEXTSTART() ;
return SELECT ; }
YY_BREAK
case 26:
YY_RULE_SETUP
#line 364 "lexsrc.l"
{
BEGIN signal ;
in_signal = 1 ;
SET_NEXTSTART() ;
return SIGNAL ; }
YY_BREAK
case 27:
YY_RULE_SETUP
#line 370 "lexsrc.l"
{
BEGIN value1 ;
in_trace = 1 ;
SET_NEXTSTART() ;
return TRACE ; }
YY_BREAK
case 28:
YY_RULE_SETUP
#line 376 "lexsrc.l"
{
BEGIN ifcont ;
in_then = 1 ;
SET_NEXTSTART() ;
return WHEN ; }
YY_BREAK
case 29:
YY_RULE_SETUP
#line 382 "lexsrc.l"
{
BEGIN comm ;
SET_NEXTSTART() ;
return OTHERWISE ; }
YY_BREAK
case 30:
YY_RULE_SETUP
#line 387 "lexsrc.l"
{
BEGIN other ;
assert( do_level >= 0 ) ;
if (do_level==0)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_END, 1 ) ;
}
do_level-- ;
SET_NEXTSTART() ;
return END ; }
YY_BREAK
case 31:
YY_RULE_SETUP
#line 399 "lexsrc.l"
{
if (in_parse)
{
SET_NEXTSTART() ;
return yylex() ;
}
else
REJECT ; }
YY_BREAK
case 32:
YY_RULE_SETUP
#line 408 "lexsrc.l"
{
if (in_parse)
{
SET_NEXTSTART() ;
return PLACEHOLDER ;
}
else
{
REJECT ;
#if 0
/* FGC: What should the following mean after a REJECT? */
retvalue[0] = '.' ;
retvalue[1] = '\0' ;
return CONSYMBOL ;
#endif
}
}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 426 "lexsrc.l"
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
if (yytext[0] == '.')
exiterror( ERR_INVALID_START, 3, yytext ) ;
else
exiterror( ERR_INVALID_START, 2, yytext ) ;
SET_NEXTSTART() ; }
YY_BREAK
case 34:
YY_RULE_SETUP
#line 434 "lexsrc.l"
{
unsigned i,j;
BEGIN other ;
j = 0 ;
for (i=0;yytext[i];i++)
if ('a' <= yytext[i] && yytext[i] <= 'z')
retvalue[j++] = (char) (yytext[i] & 0xDF) ; /* ASCII only */
else if (yytext[i]!='=' && yytext[i]!='\n' && !MY_ISBLANK(yytext[i]))
retvalue[j++] = yytext[i] ;
retvalue[j] = '\0' ;
SET_NEXTSTART() ;
return ASSIGNMENTVARIABLE ; }
YY_BREAK
case 35:
YY_RULE_SETUP
#line 449 "lexsrc.l"
{
if (in_call) REJECT ;
BEGIN other ;
if ((!in_trace)&&(!in_address)&&(!in_signal)&&(!in_call)&&(!in_numform))
obs_with = 1 ;
in_trace = in_signal = in_call = in_address = 0 ;
SET_NEXTSTART() ;
return VALUE ; }
YY_BREAK
case 36:
YY_RULE_SETUP
#line 458 "lexsrc.l"
{
BEGIN sgtype ;
SET_NEXTSTART() ;
return ON ; }
YY_BREAK
case 37:
YY_RULE_SETUP
#line 463 "lexsrc.l"
{
BEGIN sgtype ;
SET_NEXTSTART() ;
return OFF ; }
YY_BREAK
case 38:
YY_RULE_SETUP
#line 468 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return NAME ; }
YY_BREAK
case 39:
YY_RULE_SETUP
#line 473 "lexsrc.l"
{
BEGIN signame ;
SET_NEXTSTART() ;
return ERROR ; }
YY_BREAK
case 40:
YY_RULE_SETUP
#line 478 "lexsrc.l"
{
BEGIN signame ;
SET_NEXTSTART() ;
return HALT ; }
YY_BREAK
case 41:
YY_RULE_SETUP
#line 483 "lexsrc.l"
{
BEGIN signame ;
SET_NEXTSTART() ;
return NOVALUE ; }
YY_BREAK
case 42:
YY_RULE_SETUP
#line 488 "lexsrc.l"
{
BEGIN signame ;
SET_NEXTSTART() ;
return NOTREADY ; }
YY_BREAK
case 43:
YY_RULE_SETUP
#line 493 "lexsrc.l"
{
BEGIN signame ;
SET_NEXTSTART() ;
return FAILURE ; }
YY_BREAK
case 44:
YY_RULE_SETUP
#line 498 "lexsrc.l"
{
BEGIN signame ;
SET_NEXTSTART() ;
return SYNTAX ; }
YY_BREAK
case 45:
YY_RULE_SETUP
#line 503 "lexsrc.l"
{
if (!in_trace) REJECT ;
strcpy(retvalue,rmspc( yytext )) ;
SET_NEXTSTART() ;
return WHATEVER ; }
YY_BREAK
case 46:
YY_RULE_SETUP
#line 509 "lexsrc.l"
{
BEGIN other ;
in_parse = 1 ;
SET_NEXTSTART() ;
return EXPOSE ; }
YY_BREAK
case 47:
YY_RULE_SETUP
#line 515 "lexsrc.l"
{
SET_NEXTSTART() ;
return UPPER ; }
YY_BREAK
case 48:
YY_RULE_SETUP
#line 519 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return ARG ; }
YY_BREAK
case 49:
YY_RULE_SETUP
#line 524 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return NUMERIC ; }
YY_BREAK
case 50:
YY_RULE_SETUP
#line 529 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return PULL ; }
YY_BREAK
case 51:
YY_RULE_SETUP
#line 534 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return SOURCE ; }
YY_BREAK
case 52:
YY_RULE_SETUP
#line 539 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return EXTERNAL ; }
YY_BREAK
case 53:
YY_RULE_SETUP
#line 544 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return LINEIN ; }
YY_BREAK
case 54:
YY_RULE_SETUP
#line 549 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return VERSION ; }
YY_BREAK
case 55:
YY_RULE_SETUP
#line 554 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return VAR ; }
YY_BREAK
case 56:
YY_RULE_SETUP
#line 559 "lexsrc.l"
{
seek_with = 1 ;
in_trace = 0 ;
in_parse = 0 ;
BEGIN with ;
SET_NEXTSTART() ;
return VALUE ; }
YY_BREAK
case 57:
YY_RULE_SETUP
#line 567 "lexsrc.l"
{
in_then = 0 ;
SET_NEXTSTART() ;
return THEN ; }
YY_BREAK
case 58:
YY_RULE_SETUP
#line 572 "lexsrc.l"
{
if (in_then!=1) REJECT ;
BEGIN comm ;
in_then = 0 ;
SET_NEXTSTART() ;
return THEN ; }
YY_BREAK
case 59:
YY_RULE_SETUP
#line 579 "lexsrc.l"
{
BEGIN other ;
if ((in_do)||(!seek_with))
REJECT ;
seek_with = 0 ;
in_parse = 1 ;
SET_NEXTSTART() ;
return WITH ; }
YY_BREAK
case 60:
YY_RULE_SETUP
#line 589 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return DIGITS ; }
YY_BREAK
case 61:
YY_RULE_SETUP
#line 594 "lexsrc.l"
{
BEGIN nmform ;
next_numform = 1 ;
SET_NEXTSTART() ;
return FORM ; }
YY_BREAK
case 62:
YY_RULE_SETUP
#line 600 "lexsrc.l"
{
SET_NEXTSTART() ;
return SCIENTIFIC ; }
YY_BREAK
case 63:
YY_RULE_SETUP
#line 604 "lexsrc.l"
{
SET_NEXTSTART() ;
return ENGINEERING ; }
YY_BREAK
case 64:
YY_RULE_SETUP
#line 608 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return FUZZ ; }
YY_BREAK
case 65:
YY_RULE_SETUP
#line 613 "lexsrc.l"
{
BEGIN other ;
assert(in_do) ;
in_do = 2 ;
SET_NEXTSTART() ;
return FOREVER ; }
YY_BREAK
case 66:
YY_RULE_SETUP
#line 620 "lexsrc.l"
{
if (in_do==2) {
BEGIN other ;
SET_NEXTSTART() ;
return TO ; }
else if (in_do==1)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_DO_SYNTAX, 0 ) ;
}
REJECT ; }
YY_BREAK
case 67:
YY_RULE_SETUP
#line 632 "lexsrc.l"
{
if (in_do==2) {
BEGIN other ;
SET_NEXTSTART() ;
return BY ; }
else if (in_do==1)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_DO_SYNTAX, 0 ) ;
}
REJECT ; }
YY_BREAK
case 68:
YY_RULE_SETUP
#line 644 "lexsrc.l"
{
if (in_do==2) {
BEGIN other ;
SET_NEXTSTART() ;
return FOR ; }
else if (in_do==1)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_DO_SYNTAX, 0 ) ;
}
REJECT ; }
YY_BREAK
case 69:
YY_RULE_SETUP
#line 656 "lexsrc.l"
{
if (in_do) {
if (in_do==3)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_DO_SYNTAX, 0 ) ;
}
in_do=3 ;
BEGIN other ;
SET_NEXTSTART() ;
return WHILE ; }
REJECT ; }
YY_BREAK
case 70:
YY_RULE_SETUP
#line 669 "lexsrc.l"
{
if (in_do) {
if (in_do==3)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_DO_SYNTAX, 0 ) ;
}
in_do=3 ;
BEGIN other ;
SET_NEXTSTART() ;
return UNTIL ; }
REJECT ; }
YY_BREAK
case 71:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 684 "lexsrc.l"
{
BEGIN other ;
in_do = 2 ;
strcpy(retvalue,rmspc( yytext )) ;
SET_NEXTSTART() ;
return DOVARIABLE ; }
YY_BREAK
case 72:
YY_RULE_SETUP
#line 691 "lexsrc.l"
{ /* set labl to sym for other kind or vice versa*/
unsigned i,j;
BEGIN comm ;
for (i=j=0;(ch=yytext[i])!=0;i++) {
if ('a' <= ch && ch <= 'z')
retvalue[j++] = (char) (ch & 0xDF) ; /* ASCII only */
/* FIXME: the following is WRONG, must first cut off {bl}:{bl} and
* then fixup strings, FGC */
else if ((ch!=',')&&(ch!='\n')&&(ch!=':')&&!MY_ISBLANK(ch))
retvalue[j++] = ch ; }
retvalue[j] = '\0' ;
SET_NEXTSTART() ;
return LABEL ; }
YY_BREAK
case 73:
YY_RULE_SETUP
#line 707 "lexsrc.l"
{
int i;
BEGIN other ;
strcpy(retvalue,&yytext[1]) ;
for (i=3; i<=yyleng && retvalue[yyleng-i]=='`'; i++) ;
retvalue[yyleng-i] = '\0' ;
kill_next_space = 1 ;
if (preva==1) {
nexta = dontlast = 1 ;
code = EXFUNCNAME ;
SET_NEXTSTART() ;
return CONCATENATE ; }
lasta = 0 ;
SET_NEXTSTART() ;
return EXFUNCNAME ; }
YY_BREAK
case 74:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 728 "lexsrc.l"
{
unsigned i,j,k;
BEGIN other ;
ech = yytext[0] ;
/* first group can be large and odd-numbered; find # of zeros to pad */
for (i=1; (yytext[i]!=ech) && isxdigit(yytext[i]); i++) ;
/* j is the number of digits processed */
j = (i-1)%2 ;
sum = k = 0 ;
for (i=1;(ech!=(ch=yytext[i]));i++)
{
if (isspace(ch))
{
if ((i==1)||(j)) /* leading space or space within a byte */
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_HEX_CONST, 1, i ) ;
}
}
else if (isxdigit(ch))
{
sum = sum *16 + (HEXVAL(ch)) ;
if ((++j)==2)
{
retvalue[k++] = (char) sum ;
sum = j = 0 ;
}
}
}
if ((i>1) && isspace(yytext[i-1]))
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_HEX_CONST, 1, i ) ;
}
retvalue[k] = '\0' ;
retlength = k ;
if ((preva==1)&&(!in_parse)&&(!in_call))
{
nexta = 1 ;
code = STRING ;
SET_NEXTSTART() ;
return CONCATENATE ;
}
if (in_call)
{
in_call = 0 ;
kill_next_space = 1 ;
}
else
lasta = 1 ;
SET_NEXTSTART() ;
return HEXSTRING ;
}
YY_BREAK
case 75:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 792 "lexsrc.l"
{
unsigned i,j,k;
BEGIN other ;
ech = yytext[0] ;
/* first group can be large and odd-numbered; find # of zeros to pad */
for (i=1; (yytext[i]!=ech) && isdigit(yytext[i]); i++) ;
/* j is the number of digits processed */
j = (4 - (i-1))%4 ;
sum = k = 0 ;
for (i=1;(ech!=(ch=yytext[i]));i++)
{
if (isspace(ch))
{
if ((i==1)||(j)) /* leading space or space within a byte */
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_HEX_CONST, 2, i ) ;
}
}
else if ((ch=='0')||(ch=='1'))
{
sum = sum *2 + (ch-'0') ;
if ((++j)==4)
{
retvalue[k++] = (char) sum ;
sum = j = 0 ;
}
}
}
if ((i>1) && isspace(yytext[i-1]))
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_HEX_CONST, 2, i ) ;
}
j = (k%2) ;
/* then pack the nibbles */
for (i=j=(k%2); i<=k; i++)
{
if (i%2)
retvalue[i/2] = (char)((retvalue[i/2]&0xf0) + retvalue[i-j]) ;
else
retvalue[i/2] = (char)((retvalue[i-j]&0x0f)<<4) ;
}
retvalue[retlength=i/2] = '\0' ;
if ((preva==1)&&(!in_parse)&&(!in_call))
{
nexta = 1 ;
code = STRING ;
SET_NEXTSTART() ;
return CONCATENATE ;
}
if (in_call)
{
in_call = 0 ;
kill_next_space = 1 ;
}
else
lasta = 1 ;
SET_NEXTSTART() ;
return BINSTRING ;
}
YY_BREAK
case 76:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 864 "lexsrc.l"
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_HEX_CONST, 3, yytext ) ;
SET_NEXTSTART() ;
}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 871 "lexsrc.l"
{
unsigned i,j;
BEGIN other ;
for (i=1; yytext[i+1]; i++)
{
if (yytext[i]=='\n')
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_QUOTE, 0 ) ;
}
if (yytext[i]==yytext[0] && yytext[i+1]==yytext[0])
for (j=i+1; yytext[j]; j++)
yytext[j] = yytext[j+1] ;
}
yytext[strlen(yytext)-1] = '\0' ;
strcpy(retvalue,&yytext[1]) ;
if (in_numform)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INV_SUBKEYWORD, 11, "ENGINEERING SCIENTIFIC", retvalue ) ;
}
if ((preva==1)&&(!in_parse)&&(!in_call)) {
nexta = 1 ;
code = STRING ;
SET_NEXTSTART() ;
return CONCATENATE ; }
if (in_call)
{
in_call = 0 ;
kill_next_space = 1 ;
}
else
lasta = 1 ;
SET_NEXTSTART() ;
return STRING ; }
YY_BREAK
case 78:
YY_RULE_SETUP
#line 914 "lexsrc.l"
{
if (!in_parse)
REJECT ;
strcpy(retvalue,yytext) ;
SET_NEXTSTART() ;
return OFFSET ; }
YY_BREAK
case 79:
YY_RULE_SETUP
#line 921 "lexsrc.l"
{
int i;
BEGIN other ;
for (i=0; i<yyleng-1 && yytext[i]!='`'; i++) /* Copy value only */
retvalue[i] = (char) toupper(yytext[i]) ;
retvalue[i] = '\0' ;
if (in_numform)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INV_SUBKEYWORD, 11, "ENGINEERING SCIENTIFIC", retvalue ) ;
}
BEGIN other ;
kill_next_space = 1 ;
if (preva==1)
{
nexta = dontlast = 1 ;
code = INFUNCNAME ;
SET_NEXTSTART() ;
return CONCATENATE ;
}
lasta = 0 ;
SET_NEXTSTART() ;
return INFUNCNAME ; }
YY_BREAK
case 80:
YY_RULE_SETUP
#line 947 "lexsrc.l"
{
int i;
BEGIN other ;
for (i=0; i<=yyleng; i++) /* Copy '\0', too */
retvalue[i] = (char) toupper(yytext[i]) ;
if (in_numform)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INV_SUBKEYWORD, 11, "ENGINEERING SCIENTIFIC", retvalue ) ;
}
if (in_call)
{
in_call = 0 ;
BEGIN other ;
kill_next_space = 1 ;
lasta = 1 ;
SET_NEXTSTART() ;
return CONSYMBOL ;
}
if ((preva==1)&&(!in_parse)) {
nexta = 1 ;
code = CONSYMBOL ;
SET_NEXTSTART() ;
return CONCATENATE ; }
lasta = 1 ;
SET_NEXTSTART() ;
return CONSYMBOL ; }
YY_BREAK
case 81:
YY_RULE_SETUP
#line 979 "lexsrc.l"
{
int i,j;
/*
* this might be a symbol in front of a function, but only if next
* char in input stream is "(".
*/
if (in_trace) REJECT ;
for (i=0; i<=yyleng; i++) /* include terminating '\0' */
retvalue[i] = (char) toupper(yytext[i]) ;
if (in_numform)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INV_SUBKEYWORD, 11, "ENGINEERING SCIENTIFIC", retvalue ) ;
}
if (in_address)
{
kill_next_space = 1 ;
in_address=0 ;
SET_NEXTSTART() ;
return ENVIRONMENT ;
}
/* We must check if a '(' follows. Remember the number of eaten chars. */
j = 0;
for (;(i=input())=='`';)
j++ ;
if (i != '(')
{
j-- ;
unput(i) ;
}
SET_NEXTSTART() ;
nextstart += j ;
if (i=='(')
{
BEGIN other ;
kill_next_space = 1 ;
if (preva==1)
{
nexta = dontlast = 1 ;
code = INFUNCNAME ;
return CONCATENATE ;
}
lasta = 0 ;
return INFUNCNAME ;
}
if (in_call)
{
kill_next_space = 1 ;
BEGIN other ;
in_call = 0 ;
lasta = 1 ;
return SIMSYMBOL ;
}
BEGIN other ;
if ((preva==1)&&(!in_parse)) {
nexta = 1 ;
code = SIMSYMBOL ;
return CONCATENATE ; }
lasta = 1 ;
return SIMSYMBOL ; }
YY_BREAK
case 82:
YY_RULE_SETUP
#line 1049 "lexsrc.l"
{
lasta = 1 ;
SET_NEXTSTART() ;
return ')' ; }
YY_BREAK
case 83:
YY_RULE_SETUP
#line 1054 "lexsrc.l"
{
BEGIN other ;
if (preva==1)
{
nexta = dontlast = 1 ;
code = '(' ;
SET_NEXTSTART() ;
return CONCATENATE ;
}
SET_NEXTSTART() ;
return '(' ; }
YY_BREAK
case 84:
YY_RULE_SETUP
#line 1066 "lexsrc.l"
{
SET_NEXTSTART() ;
return ',' ; }
YY_BREAK
case 85:
YY_RULE_SETUP
#line 1070 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return '-' ; }
YY_BREAK
case 86:
YY_RULE_SETUP
#line 1075 "lexsrc.l"
{
BEGIN other ;
SET_NEXTSTART() ;
return '+' ; }
YY_BREAK
case 87:
YY_RULE_SETUP
#line 1080 "lexsrc.l"
{
SET_NEXTSTART() ;
return '/' ; }
YY_BREAK
case 88:
YY_RULE_SETUP
#line 1084 "lexsrc.l"
{
SET_NEXTSTART() ;
return '%' ; }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 1088 "lexsrc.l"
{
SET_NEXTSTART() ;
return '*' ; }
YY_BREAK
case 90:
YY_RULE_SETUP
#line 1092 "lexsrc.l"
{
SET_NEXTSTART() ;
return '|' ; }
YY_BREAK
case 91:
YY_RULE_SETUP
#line 1096 "lexsrc.l"
{
SET_NEXTSTART() ;
return '&' ; }
YY_BREAK
case 92:
YY_RULE_SETUP
#line 1100 "lexsrc.l"
{
SET_NEXTSTART() ;
return '=' ; }
YY_BREAK
case 93:
YY_RULE_SETUP
#line 1104 "lexsrc.l"
{
/* why don't I have a {bl} in the beginning of this re? bug? */
BEGIN other ;
SET_NEXTSTART() ;
return NOT ; }
YY_BREAK
case 94:
YY_RULE_SETUP
#line 1110 "lexsrc.l"
{
SET_NEXTSTART() ;
return GTGT ; }
YY_BREAK
case 95:
YY_RULE_SETUP
#line 1114 "lexsrc.l"
{
SET_NEXTSTART() ;
return LTLT ; }
YY_BREAK
case 96:
YY_RULE_SETUP
#line 1118 "lexsrc.l"
{
SET_NEXTSTART() ;
return NOTGTGT ; }
YY_BREAK
case 97:
YY_RULE_SETUP
#line 1122 "lexsrc.l"
{
SET_NEXTSTART() ;
return NOTLTLT ; }
YY_BREAK
case 98:
YY_RULE_SETUP
#line 1126 "lexsrc.l"
{
SET_NEXTSTART() ;
return GTGTE ; }
YY_BREAK
case 99:
YY_RULE_SETUP
#line 1130 "lexsrc.l"
{
SET_NEXTSTART() ;
return LTLTE ; }
YY_BREAK
case 100:
YY_RULE_SETUP
#line 1134 "lexsrc.l"
{
SET_NEXTSTART() ;
return GT ; }
YY_BREAK
case 101:
YY_RULE_SETUP
#line 1138 "lexsrc.l"
{
SET_NEXTSTART() ;
return GTE ; }
YY_BREAK
case 102:
YY_RULE_SETUP
#line 1142 "lexsrc.l"
{
SET_NEXTSTART() ;
return LT ; }
YY_BREAK
case 103:
YY_RULE_SETUP
#line 1146 "lexsrc.l"
{
SET_NEXTSTART() ;
return LTE ; }
YY_BREAK
case 104:
YY_RULE_SETUP
#line 1150 "lexsrc.l"
{
SET_NEXTSTART() ;
return DIFFERENT ; }
YY_BREAK
case 105:
YY_RULE_SETUP
#line 1154 "lexsrc.l"
{
SET_NEXTSTART() ;
return EQUALEQUAL ; }
YY_BREAK
case 106:
YY_RULE_SETUP
#line 1158 "lexsrc.l"
{
SET_NEXTSTART() ;
return NOTEQUALEQUAL ; }
YY_BREAK
case 107:
YY_RULE_SETUP
#line 1162 "lexsrc.l"
{
SET_NEXTSTART() ;
return MODULUS ; }
YY_BREAK
case 108:
YY_RULE_SETUP
#line 1166 "lexsrc.l"
{
SET_NEXTSTART() ;
return XOR ; }
YY_BREAK
case 109:
YY_RULE_SETUP
#line 1170 "lexsrc.l"
{
SET_NEXTSTART() ;
return CONCATENATE ; }
YY_BREAK
case 110:
YY_RULE_SETUP
#line 1174 "lexsrc.l"
{
SET_NEXTSTART() ;
return EXP ; }
YY_BREAK
case 111:
YY_RULE_SETUP
#line 1178 "lexsrc.l"
{
if (kill_this_space)
{
SET_NEXTSTART() ;
return yylex() ;
}
if (in_address)
{
in_address = 0 ;
SET_NEXTSTART() ;
return yylex() ;
}
SET_NEXTSTART() ;
return (((in_parse)&&(!seek_with)) ? yylex() : SPACE) ; }
YY_BREAK
case 112:
YY_RULE_SETUP
#line 1193 "lexsrc.l"
{
SET_NEXTSTART() ;
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_QUOTE, 0 ) ; }
YY_BREAK
case 113:
YY_RULE_SETUP
#line 1199 "lexsrc.l"
{
SET_NEXTSTART() ;
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_CHAR, 1, yytext[0], yytext[0] ) ; }
YY_BREAK
case 114:
YY_RULE_SETUP
#line 1204 "lexsrc.l"
{
SET_NEXTSTART() ;
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_SYMBOL_EXPECTED, 0 ) ;}
YY_BREAK
case 115:
YY_RULE_SETUP
#line 1209 "lexsrc.l"
{
SET_NEXTSTART() ;
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INTERPRETER_FAILURE, 1, __FILE__, __LINE__ ) ;
}
YY_BREAK
case 116:
YY_RULE_SETUP
#line 1215 "lexsrc.l"
ECHO;
YY_BREAK
#line 3301 "./lexsrc.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(comm):
case YY_STATE_EOF(signal):
case YY_STATE_EOF(sgtype):
case YY_STATE_EOF(procd):
case YY_STATE_EOF(parse):
case YY_STATE_EOF(then):
case YY_STATE_EOF(with):
case YY_STATE_EOF(numeric):
case YY_STATE_EOF(do1):
case YY_STATE_EOF(other):
case YY_STATE_EOF(value1):
case YY_STATE_EOF(ifcont):
case YY_STATE_EOF(signame):
case YY_STATE_EOF(nmform):
yyterminate();
#line 566 "flex.skl"
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = yy_hold_char;
YY_RESTORE_YY_MORE_OFFSET
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
* just pointed yyin at a new source and called
* yylex(). If so, then we have to assure
* consistency between yy_current_buffer and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input source.
*/
yy_n_chars = yy_current_buffer->yy_n_chars;
yy_current_buffer->yy_input_file = yyin;
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
}
/* Note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the
* end-of-buffer state). Contrast this with the test
* in input().
*/
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
{ /* This was really a NUL. */
yy_state_type yy_next_state;
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
/* Okay, we're now positioned to make the NUL
* transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we don't
* want to build jamming into it because then it
* will run more slowly).
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext_ptr + YY_MORE_ADJ;
if ( yy_next_state )
{
/* Consume the NUL. */
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = yy_c_buf_p;
#line 632 "flex.skl"
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* yytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
* YY_NULL, it'll still work - another
* YY_NULL will get returned.
*/
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
yy_act = YY_STATE_EOF(YY_START);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p =
yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
} /* end of yylex */
#line 782 "flex.skl"
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
#line 793 "flex.skl"
static int yy_get_next_buffer()
#line 799 "flex.skl"
{
register char *dest = yy_current_buffer->yy_ch_buf;
register char *source = yytext_ptr;
register int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( yy_current_buffer->yy_fill_buffer == 0 )
{ /* Don't try to fill the buffer, so this is an EOF. */
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
{
/* We matched a single character, the EOB, so
* treat this as a final EOF.
*/
return EOB_ACT_END_OF_FILE;
}
else
{
/* We matched some text prior to the EOB, first
* process it.
*/
return EOB_ACT_LAST_MATCH;
}
}
/* Try to read more data. */
/* First move last chars to start of buffer. */
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
else
{
int num_to_read =
yy_current_buffer->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = yy_current_buffer;
int yy_c_buf_p_offset =
(int) (yy_c_buf_p - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
else
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
yy_flex_realloc( (void *) b->yy_ch_buf,
b->yy_buf_size + 2 );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = 0;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = yy_current_buffer->yy_buf_size -
number_to_move - 1;
#endif
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
yy_current_buffer->yy_n_chars = yy_n_chars;
}
if ( yy_n_chars == 0 )
{
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart( yyin );
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
yy_n_chars += number_to_move;
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
return ret_val;
}
/* yy_get_previous_state - get the state just before the EOB char was reached */
#line 932 "flex.skl"
static yy_state_type yy_get_previous_state()
#line 938 "flex.skl"
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = yy_start;
yy_state_ptr = yy_state_buf;
*yy_state_ptr++ = yy_current_state;
#line 944 "flex.skl"
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 832 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
*yy_state_ptr++ = yy_current_state;
#line 949 "flex.skl"
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
#line 963 "flex.skl"
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
#line 974 "flex.skl"
{
register int yy_is_jam;
register YY_CHAR yy_c = 1;
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 832 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 831);
if ( ! yy_is_jam )
*yy_state_ptr++ = yy_current_state;
#line 978 "flex.skl"
return yy_is_jam ? 0 : yy_current_state;
}
#line 985 "flex.skl"
#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
#line 998 "flex.skl"
{
register char *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
register int number_to_move = yy_n_chars + 2;
register char *dest = &yy_current_buffer->yy_ch_buf[
yy_current_buffer->yy_buf_size + 2];
register char *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
yy_current_buffer->yy_n_chars =
yy_n_chars = yy_current_buffer->yy_buf_size;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
*--yy_cp = (char) c;
#line 1029 "flex.skl"
yytext_ptr = yy_bp;
yy_hold_char = *yy_cp;
yy_c_buf_p = yy_cp;
}
#line 1036 "flex.skl"
#endif /* ifndef YY_NO_UNPUT */
#line 1039 "flex.skl"
#line 1043 "flex.skl"
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
#line 1053 "flex.skl"
{
int c;
*yy_c_buf_p = yy_hold_char;
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* This was really a NUL. */
*yy_c_buf_p = '\0';
else
{ /* need more input */
int offset = yy_c_buf_p - yytext_ptr;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_LAST_MATCH:
/* This happens because yy_g_n_b()
* sees that we've accumulated a
* token and flags that we need to
* try matching the token before
* proceeding. But for input(),
* there's no matching to consider.
* So convert the EOB_ACT_LAST_MATCH
* to EOB_ACT_END_OF_FILE.
*/
/* Reset buffer status. */
yyrestart( yyin );
/* fall through */
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
return EOF;
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext_ptr + offset;
break;
}
}
}
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
*yy_c_buf_p = '\0'; /* preserve yytext */
yy_hold_char = *++yy_c_buf_p;
#line 1118 "flex.skl"
return c;
}
#line 1125 "flex.skl"
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
#line 1136 "flex.skl"
{
if ( ! yy_current_buffer )
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#line 1147 "flex.skl"
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
#line 1158 "flex.skl"
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_buffer )
{
/* Flush out information for old buffer. */
*yy_c_buf_p = yy_hold_char;
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
yy_current_buffer->yy_n_chars = yy_n_chars;
}
yy_current_buffer = new_buffer;
yy_load_buffer_state();
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
yy_did_buffer_switch_on_eof = 1;
}
#line 1184 "flex.skl"
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
#line 1194 "flex.skl"
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
yyin = yy_current_buffer->yy_input_file;
yy_hold_char = *yy_c_buf_p;
}
#line 1204 "flex.skl"
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
#line 1216 "flex.skl"
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
yy_init_buffer( b, file );
return b;
}
#line 1242 "flex.skl"
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
#line 1253 "flex.skl"
{
if ( ! b )
return;
if ( b == yy_current_buffer )
yy_current_buffer = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yy_flex_free( (void *) b->yy_ch_buf );
yy_flex_free( (void *) b );
}
#line 1269 "flex.skl"
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
#line 1289 "flex.skl"
{
#line 1292 "flex.skl"
yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
#line 1299 "flex.skl"
#if YY_ALWAYS_INTERACTIVE
b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
b->yy_is_interactive = 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
#line 1313 "flex.skl"
}
#line 1318 "flex.skl"
#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif
#line 1330 "flex.skl"
{
if ( ! b )
return;
b->yy_n_chars = 0;
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == yy_current_buffer )
yy_load_buffer_state();
}
#line 1353 "flex.skl"
#ifndef YY_NO_SCAN_BUFFER
#line 1358 "flex.skl"
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
{
YY_BUFFER_STATE b;
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
return 0;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = 0;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer( b );
return b;
}
#endif
#line 1395 "flex.skl"
#ifndef YY_NO_SCAN_STRING
#line 1400 "flex.skl"
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
{
int len;
for ( len = 0; yy_str[len]; ++len )
;
return yy_scan_bytes( yy_str, len );
}
#endif
#line 1416 "flex.skl"
#ifndef YY_NO_SCAN_BYTES
#line 1421 "flex.skl"
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = len + 2;
buf = (char *) yy_flex_alloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < len; ++i )
buf[i] = bytes[i];
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
/* It's okay to grow etc. this buffer, and we should throw it
* away when we're done.
*/
b->yy_is_our_buffer = 1;
return b;
}
#endif
#line 1459 "flex.skl"
#ifndef YY_NO_PUSH_STATE
#line 1464 "flex.skl"
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
#line 1475 "flex.skl"
{
if ( yy_start_stack_ptr >= yy_start_stack_depth )
{
yy_size_t new_size;
yy_start_stack_depth += YY_START_STACK_INCR;
new_size = yy_start_stack_depth * sizeof( int );
if ( ! yy_start_stack )
yy_start_stack = (int *) yy_flex_alloc( new_size );
else
yy_start_stack = (int *) yy_flex_realloc(
(void *) yy_start_stack, new_size );
if ( ! yy_start_stack )
YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
}
yy_start_stack[yy_start_stack_ptr++] = YY_START;
BEGIN(new_state);
}
#endif
#ifndef YY_NO_POP_STATE
#line 1505 "flex.skl"
static void yy_pop_state()
#line 1511 "flex.skl"
{
if ( --yy_start_stack_ptr < 0 )
YY_FATAL_ERROR( "start-condition stack underflow" );
BEGIN(yy_start_stack[yy_start_stack_ptr]);
}
#endif
#ifndef YY_NO_TOP_STATE
#line 1523 "flex.skl"
static int yy_top_state()
#line 1529 "flex.skl"
{
return yy_start_stack[yy_start_stack_ptr - 1];
}
#endif
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
#line 1540 "flex.skl"
#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
#line 1561 "flex.skl"
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
yytext[yyleng] = yy_hold_char; \
yy_c_buf_p = yytext + n; \
yy_hold_char = *yy_c_buf_p; \
*yy_c_buf_p = '\0'; \
yyleng = n; \
} \
while ( 0 )
/* Internal utility routines. */
#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
{
return (void *) malloc( size );
}
#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
{
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
* because both ANSI C and C++ allow castless assignment from
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
return (void *) realloc( (char *) ptr, size );
}
#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
{
free( ptr );
}
#if YY_MAIN
int main()
{
yylex();
return 0;
}
#endif
#line 1215 "lexsrc.l"
#define NORMALSTAT 0
#define COMMENTSTAT 1
#define SINGLEQUOTE 2
#define DOUBLEQUOTE 3
/* rmspc uppercases all characters and removes blanks from a string.
* Returns the input string.
*/
static YY_CHAR_TYPE *rmspc( YY_CHAR_TYPE *instr )
{
YY_CHAR_TYPE *retval=instr ,
*dest =instr ,
c ;
while ((c = *instr++) != '\0')
{
c = (YY_CHAR_TYPE) toupper(c);
/* These characters are treated as blanks: */
if ((c!='`') && (c!=' ') && (c!=',') && (c!='\t') && (c!='\n'))
*dest++ = c ;
}
*dest = '\0' ;
return( retval ) ;
}
/* get_next_line: Lower level input fetcher.
* Reads exactly one line from the input stream (file or string).
* All EOL characters are removed and the result is stored in
* last_source_line. A check for line overflow occurred here.
* A special check is done for CP/M ^Z (DOS and friends use this for
* "backward" compatibility, too).
* line is filled with valid values on success.
* max must reflect size of line and should be at least BUFFERSIZE + 2;
* Returns -1 (no input) or the number of valid chars in line.
*/
static int get_next_line( char *line, int max, FILE *stream )
{
lineboxptr newline ;
offsrcline *incore_newline;
int pos = 0;
int c = 0, nextEOL ;
if (inEOF) /* You can't use myunputc if EOF is reached! */
return EOF ;
while (pos <= max - 2)
{
/* get next char */
if (bufptr>0)
c = chbuffer[--bufptr] ;
else if (ipretflag)
{
if (interptr>=interptrmax)
c = EOF ;
else
#ifdef ASCII_0_TERMINATES_STRING
if ((c = *interptr++) == '\0')
c = EOF ;
#else
c = *interptr++ ;
#endif
}
else
c = getc(stream) ;
if ((c=='\r') || (c=='\n') || (c==EOF))
break ;
line[pos++] = (char) (unsigned char) c ;
}
/* first, check for overflow */
if ((c!='\r') && (c!='\n') && (c!=EOF))
{
parser_data.tline = linenr ; /* set tline for exiterror */
exiterror( ERR_TOO_LONG_LINE, 0 ) ;
}
/* We have either a (first) line terminator or EOF */
if (c==EOF)
{
if ((pos==1) && (line[0]=='\x1A')) /* CP/M ^Z EOF? */
pos-- ;
if (pos == 0)
{
inEOF = 1 ;
return EOF ;
}
nextEOL = EOF;
}
else
{
/* get one more char */
if (bufptr>0)
nextEOL = chbuffer[--bufptr] ;
else if (ipretflag)
{
if (interptr>=interptrmax)
nextEOL = EOF ;
else
#ifdef ASCII_0_TERMINATES_STRING
if ((nextEOL = *interptr++) == '\0')
nextEOL = EOF ;
#else
nextEOL = *interptr++ ;
#endif
}
else
nextEOL = getc(stream) ;
}
/* Decide if the next character is the last char of a EOL pair.
* Valid pairs are CR/LF or LF/CR. Put nextEOL back if there is no pair.
*/
if (((c!='\n') || (nextEOL!='\r')) &&
((c!='\r') || (nextEOL!='\n')))
chbuffer[bufptr++] = (short) nextEOL ;
cch = 0 ; /* not needed ? */
line[pos++] = '\n';
if (parser_data.incore_source)
{ /* We can use the incore string to describe a source line. */
incore_newline = FreshLine() ;
incore_newline->length = pos - 1 ;
/* FIXME: What happens on the second attempt to read EOF or with CRLF? */
incore_newline->offset = interptr - parser_data.incore_source ;
return pos ;
}
newline = (lineboxptr)Malloc(sizeof(linebox)) ;
newline->line = Str_make_TSD( parser_data.TSD, pos - 1 ) ;
newline->line->len = pos - 1 ;
memcpy(newline->line->value, line, pos - 1 ) ;
newline->prev = parser_data.last_source_line ;
newline->next = NULL ;
newline->lineno = linenr++ ;
if (parser_data.first_source_line==NULL)
parser_data.first_source_line = newline ;
else
parser_data.last_source_line->next = newline ;
parser_data.last_source_line = newline ;
return pos ;
}
/* fill_buffer: Higher level input fetcher.
* (To allow the C-file to compile, all Rexx comments in this comment
* are written as "{*" "*}" instead of the normal, C-like manner.)
* Reads lines from the input stream (yyin or string) with get_next_line.
* Only one line is returned to allow the saving of the line number.
* This routine replaces all comments by '`' signs. This allows
* the detection of a "pseudo" blank: The fragment "say x{* *}y" uses two
* variables, not one called "xy". The parsing of comments must be done
* here to check for the actual numbers of open and closes ("{*" and "*}").
* While doing this we must always check for strings since "'{*'" is not part
* of a comment.
* Here is a problem: Is this a nested valid comment: "{* '{*' *} *}"?
* I think so although you cannot remove the outer comment signs without an
* error. Everything within a comment is a comment (per def.). Counting
* opens and closes of comment signs is an ugly trick to help the user.
* He/she must know what he/she is doing if nesting comments!
*
* max_size gives the maximum size of buf. This is filled up with input.
* We never return less than one character until EOF is reached. Thus, we
* read more than one true input line if a comment spans over more than one
* line.
* A line will either be terminated by a single '\n' or by a blank. The
* later one replaces a line continuation (',' [spaces] EOL).
* Errors in this low
*
* Conclusion: We have to fight very hard to set the expected line number.
* * Comments spanning over lines set them on getting the
* "follow" lines.
* * Concatenated lines set
*/
static int fill_buffer( char *buf, int max_size )
{
/* statics protected by regina_parser */
static char line[BUFFERSIZE+2] ; /* special buffer to allow max_size */
static int pos = 0, max = 0 ; /* being smaller than BUFFERSIZE+1 */
static int nesting = 0; /* nesting level of comments */
char *dest, c;
int i, squote, dquote;
if (firstln == 0)
{
firstln = 1;
contline = 0;
nesting = 0;
pos = 0;
max = get_next_line( line, sizeof(line), yyin ) ;
if (max < 0) /* empty input file */
return 0 ;
#if 0
if (line[0] == '#')
{ /* Ignore first line beginning this way for unix compat */
max = 0;
return fill_buffer( buf, max_size ) ;
}
#else
if (line[0] == '#')
{ /* Ignore first line beginning this way for unix compat */
max = 5;
memcpy( line, "/**/\n", 5 );
}
#endif
}
else if (pos < max) /* Are there still characters to transmit? */
{
/* Buffer already checked for correctness */
if (max_size > max - pos)
max_size = max - pos;
memcpy(buf, line + pos, max_size);
pos += max_size;
return(max_size);
}
else /* Need next line */
{
if (contline && !nesting)
{
extnextline = ++nextline ;
extnextstart = 1 ;
contline = 0;
}
pos = 0;
max = get_next_line( line, sizeof(line), yyin ) ;
if (max < 0) /* empty input file */
{
if (nesting)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_QUOTE, 1 ) ;
}
return 0 ;
}
}
/* A new line is available, check first for an ending comment */
dest = line; /* we change comments in line */
if (nesting) /* This may lead to more line reading */
{
extnextline = ++nextline ;
extnextstart = 1; /* See Reference (*) below */
repeated_nesting:
while (pos < max)
{
c = line[pos];
if (c == '*') /* start of comment end? */
{
if (line[pos+1] == '/')
{ /* pos+1 always exists, at least '\n' or '\0' */
if (--nesting == 0)
{
pos += 2;
*dest++ = '`';
*dest++ = '`';
break;
}
*dest++ = '`';
pos++;
}
}
else if (c == '/') /* start of new begin? */
{
if (line[pos+1] == '*')
{
nesting++;
*dest++ = '`';
pos++;
}
}
*dest++ = '`';
pos++;
}
if (pos >= max)
{
pos = 0;
max = get_next_line( line, sizeof(line), yyin ) ;
if (max < 0) /* empty input file */
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_QUOTE, 1 ) ;
return 0 ;
}
/* This is a comment continuation. If the lexer will return
* something it already has a valid tline/tstart pair.
* The lexer will return the current token and on the NEXT
* call it expects a valid nextline/nextstart pair.
*/
extnextline = ++nextline; extnextstart = 1;
dest = line; /* we change comments in line */
goto repeated_nesting;
}
extnextstart = pos + 1;
if (contline)
{ /* Exception! Have a look at: "x='y',{*\n\n*}\n'z'". This should
* result in "x = 'y' 'z'".
* We must parse until EOL and check for whitespaces and comments...
*/
while (pos < max)
{
c = line[pos];
if (!isspace(c))
{
if (c == '/')
{
if (line[pos+1] == '*')
{
pos += 2;
nesting++;
goto repeated_nesting;
}
}
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_YACC_SYNTAX, 1, parser_data.tline ) ; /* standard error */
}
pos++;
}
/* All done, it was a continuation line. */
/* contline will be resetted by: */
return fill_buffer( buf, max_size ) ;
}
}
/* We have something to play with. Run through the input and check for
* strings including comments.
*/
squote = dquote = 0;
while (pos < max)
{
/* We use selective loops to reduce comparisons */
if (nesting)
do
{
c = line[pos];
if (c == '*') /* start of comment end? */
{
if (line[pos+1] == '/')
{ /* pos+1 always exists, at least '\n' or '\0' */
if (--nesting == 0)
{
pos += 2;
*dest++ = '`';
*dest++ = '`';
break;
}
pos++;
}
}
else if (c == '/') /* start of new begin? */
{
if (line[pos+1] == '*')
{
nesting++;
pos++;
*dest++ = '`';
}
}
pos++;
*dest++ = '`';
} while (pos < max);
else if (squote)
{
while ((c = line[pos]) != '\'')
{
*dest++ = c;
if (++pos >= max)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_QUOTE, 2 ) ;
}
}
*dest++ = '\'';
pos++;
squote = 0;
}
else if (dquote)
{
while ((c = line[pos]) != '\"')
{
*dest++ = c;
if (++pos >= max)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_UNMATCHED_QUOTE, 3 ) ;
}
}
*dest++ = '\"';
pos++;
dquote = 0;
}
else
while (pos < max)
switch (c = line[pos])
{
case '\'':
*dest++ = c ;
squote = 1 ;
pos++ ;
goto outer_loop;
case '\"':
*dest++ = c ;
dquote = 1 ;
pos++ ;
goto outer_loop;
case '/':
if (line[pos + 1] == '*')
{
*dest++ = '`' ;
*dest++ = '`' ;
pos += 2 ;
nesting++ ;
goto outer_loop;
}
else
{
*dest++ = c;
pos++ ;
}
break ;
case '`':
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INVALID_CHAR, 1, c, c ) ;
default:
*dest++ = c;
pos++ ;
}
outer_loop:
;
}
max = (int) (dest - line);
/* Now we can replace a ',' [spaces|comments] '\n' with the line
* continuation, but check for nesting first
*/
if (nesting)
{ /* Don't leave ANY spaces at EOL. That would confuse the lexer. */
i = max - 1;
while ((i >= 0) && isspace(line[i]))
i--;
max = i + 1;
/* Of course, there is one exception: line continuation */
while ((i >= 0) && (line[i] == '`'))
i-- ;
if ((i >= 0) && (line[i] == ','))
{
contline = 1;
line[i] = ' ';
max = i + 1;
}
/* (Reference (*) )
* At this point the lexer can't determine the nextline since we eat up
* the \n. This leads to an incorrect count. But either the '`'-signs
* are ignored or they are follows of a "token", a valid word.
* Look at "say x;say y ``". This will cause the lexer to
* return at least 4 tokens (SAY "x" ";" SAY) before "y" will be
* returned. We can only set nextline/nextstart at "y".
* Result: We set this pair at the start of the next call to
* fill_buffer such that the next call to yylex will set the correct
* values.
*/
}
else
{
i = max - 1; /* on last valid char */
while (i >= 0)
{
if (!MY_ISBLANK(line[i]) && (line[i] != '\n'))
break;
i--;
}
/* i now -1 or on last nonblank */
if ((i >= 0) && (line[i] == ','))
{ /* FIXME: What shall be do with "," followed by EOF? */
max = i + 1;
line[i] = ' ';
contline = 1;
}
}
if (max_size > max)
max_size = max;
memcpy(buf, line, max_size);
pos = max_size;
return(max_size);
}
/* yywrap MAY be called by the lexer is EOF encounters, see (f)lex docu */
int yywrap( void )
{
assert( do_level>= 0 ) ;
if (do_level>0)
{
parser_data.tline = linenr - 1 ; /* set tline for exiterror */
exiterror( ERR_INCOMPLETE_STRUCT, 0 ) ;
}
return 1 ;
}
/******************************************************************************
******************************************************************************
* global interface ***********************************************************
******************************************************************************
*****************************************************************************/
/* initalize all local and global values */
static void init_it_all( tsd_t *TSD )
{
inEOF = 0 ;
in_numform = 0 ;
next_numform = 0 ;
nexta = 0 ;
lasta = 0 ;
preva = 0 ;
obs_with = 0 ;
in_do = 0 ;
in_then = 0 ;
dontlast = 0 ;
sum = 0 ;
firstln = 0 ;
in_parse = 0 ;
in_trace = 0 ;
itflag = 0 ;
in_signal = 0 ;
in_call = 0 ;
in_address = 0 ;
seek_with = 0 ;
kill_this_space = 0 ;
ipretflag = 0 ;
do_level = 0 ;
singlequote = 0 ;
doblequote = 0 ;
cch = 0 ;
bufptr = 0 ;
cchmax = 0 ;
ch = '\0',
code = 0,
contline = 0;
ech= '\0' ;
extnextstart = 0;
interptr = NULL ;
interptrmax = NULL ;
/* non-zero values */
linenr = 1 ;
nextline = 1;
nextstart = 1;
kill_next_space = 1 ;
extnextline = -1 ;
memset(&parser_data, 0, sizeof(internal_parser_type));
parser_data.TSD = TSD;
}
/* fetch may only be called by fetch_protected. The parser and lexer are
* already protected by regina_parser by fetch_protected.
* This function prepares the lexer and parser and call them. The
* result and all generated values are stored in result. The parser
* tree isn't executed here.
* Exactly fptr xor str must be non-null.
*/
static void fetch(tsd_t *TSD, FILE *fptr, const streng *str,
internal_parser_type *result)
{
init_it_all( TSD ) ;
#ifdef FLEX_SCANNER
yy_init = 1 ;
yy_delete_buffer(YY_CURRENT_BUFFER) ;
yyrestart(fptr) ;
#else
yysptr = yysbuf ;
yyin = fptr ;
#endif
if (str != NULL)
{
ipretflag = 1 ;
cchmax = str->len ;
interptr = str->value ;
interptrmax = interptr + cchmax ;
result->incore_source = str->value;
}
BEGIN comm ;
NewProg();
parser_data.result = __reginaparse();
#ifdef FLEX_SCANNER
yy_delete_buffer(YY_CURRENT_BUFFER) ;
#else
yysptr = yysbuf ;
#endif
yyin = NULL ;
*result = parser_data;
/* Some functions assume null values if parsing isn't running: */
memset(&parser_data, 0, sizeof(internal_parser_type));
}
/* This function serializes the parser/lexer requests of the process and
* call fetch which will make the work. Look there.
*/
static void fetch_protected(tsd_t *TSD, FILE *fptr, const streng *str,
internal_parser_type *result)
{
volatile int panicked = 0;
THREAD_PROTECT(regina_parser)
TSD->in_protected = 1;
if ( setjmp( TSD->protect_return ) )
panicked = 1;
else
fetch(TSD, fptr, str, result);
TSD->in_protected = 0;
THREAD_UNPROTECT(regina_parser)
if (!panicked)
return;
/* We got a fatal condition while fetching the input. */
if (TSD->delayed_error_type == PROTECTED_DelayedExit)
TSD->MTExit(TSD->expected_exit_error);
if (TSD->delayed_error_type == PROTECTED_DelayedSetjmpBuf)
longjmp( *(TSD->currlevel->buf), 1 ) ;
longjmp( *(TSD->systeminfo->panic), 1 ) ;
}
/* fetch_file reads in a REXX file from disk (or a pipe). It returns without
* executing the program. The parsed tree with all needed values including
* the result of the parsing is copied to result.
* fptr remains open after this call.
* type is either PARSE_ONLY or PARSE_AND_TIN. In the later case a tinned variant of the
* parsing tree is created, too.
*/
void fetch_file(tsd_t *TSD, FILE *fptr, internal_parser_type *result)
{
fetch_protected(TSD, fptr, NULL, result);
}
/* fetch_string reads in a REXX macro from a streng. It returns without
* executing the program. The parsed tree with all needed values including
* the result of the parsing is copied to result.
* type is either PARSE_ONLY or PARSE_AND_TIN. In the later case a tinned variant of the
* parsing tree is created, too.
* The function is typically called by an "INTERPRET" instruction.
*/
void fetch_string(tsd_t *TSD, const streng *str, internal_parser_type *result)
{
fetch_protected(TSD, NULL, str, result);
}
|