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
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
|
#line 3 "<stdout>"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 39
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
#ifdef __cplusplus
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
/* C99 requires __STDC__ to be defined as 1. */
#if defined (__STDC__)
#define YY_USE_CONST
#endif /* defined (__STDC__) */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#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. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
*/
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern yy_size_t yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
#define YY_LINENO_REWIND_TO(ptr)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
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.
*/
yy_size_t 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;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* 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
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* 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".
*
* Returns the top of the stack, or NULL.
*/
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
yy_size_t yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 0; /* 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 (FILE *input_file );
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
void yy_delete_buffer (YY_BUFFER_STATE b );
void yy_flush_buffer (YY_BUFFER_STATE b );
void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
void yypop_buffer_state (void );
static void yyensure_buffer_stack (void );
static void yy_load_buffer_state (void );
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
void *yyalloc (yy_size_t );
void *yyrealloc (void *,yy_size_t );
void yyfree (void * );
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer(yyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer(yyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* Begin user sect3 */
#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
static int yy_get_next_buffer (void );
static void yy_fatal_error (yyconst char msg[] );
/* 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 = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 198
#define YY_END_OF_BUFFER 199
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
{
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static yyconst flex_int16_t yy_accept[701] =
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 199, 197,
196, 196, 193, 197, 1, 197, 8, 9, 10, 11,
13, 12, 197, 14, 3, 16, 17, 18, 22, 23,
142, 195, 195, 195, 195, 195, 195, 195, 195, 195,
195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
195, 195, 195, 195, 15, 26, 47, 48, 49, 47,
46, 50, 198, 198, 198, 98, 196, 193, 0, 7,
6, 0, 0, 2, 2, 3, 2, 3, 0, 19,
21, 20, 25, 24, 143, 195, 195, 195, 195, 31,
195, 195, 195, 195, 195, 43, 195, 195, 195, 60,
195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
195, 195, 195, 195, 96, 195, 195, 105, 195, 195,
195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
195, 135, 195, 140, 195, 142, 195, 195, 195, 153,
195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
195, 195, 195, 195, 195, 171, 195, 195, 195, 195,
195, 195, 195, 195, 195, 195, 195, 195, 47, 48,
47, 45, 44, 0, 66, 0, 98, 4, 5, 2,
0, 2, 2, 0, 0, 2, 195, 30, 168, 195,
195, 195, 195, 195, 39, 195, 41, 195, 195, 51,
195, 195, 58, 195, 0, 195, 64, 195, 72, 195,
75, 195, 195, 195, 0, 195, 195, 84, 195, 91,
0, 195, 195, 195, 95, 195, 100, 101, 195, 104,
195, 107, 195, 195, 195, 195, 195, 195, 195, 195,
125, 195, 127, 195, 128, 195, 131, 0, 195, 195,
141, 143, 195, 195, 145, 195, 195, 191, 195, 195,
195, 195, 195, 155, 195, 195, 195, 195, 195, 161,
195, 195, 166, 195, 195, 170, 169, 195, 172, 195,
195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
187, 195, 189, 195, 44, 0, 2, 2, 0, 0,
2, 2, 195, 32, 34, 195, 195, 195, 195, 42,
0, 195, 195, 195, 195, 195, 0, 0, 63, 64,
0, 195, 195, 195, 195, 195, 195, 195, 195, 195,
195, 0, 195, 92, 0, 0, 195, 94, 39, 195,
195, 106, 195, 195, 108, 195, 110, 195, 113, 116,
195, 119, 0, 195, 129, 130, 0, 136, 195, 144,
195, 146, 195, 148, 191, 191, 149, 195, 195, 150,
195, 151, 195, 195, 195, 154, 156, 195, 195, 195,
195, 162, 163, 0, 195, 167, 195, 195, 174, 195,
195, 195, 195, 195, 180, 181, 195, 195, 195, 188,
190, 0, 2, 195, 0, 35, 36, 37, 40, 0,
0, 195, 195, 195, 195, 195, 0, 0, 195, 0,
0, 0, 0, 68, 195, 195, 195, 195, 74, 0,
80, 82, 195, 0, 0, 0, 0, 0, 195, 0,
94, 93, 99, 102, 0, 195, 109, 111, 195, 0,
0, 195, 0, 0, 0, 0, 126, 0, 195, 195,
191, 195, 195, 195, 195, 195, 195, 195, 159, 160,
0, 195, 195, 195, 173, 195, 195, 177, 178, 179,
182, 183, 185, 195, 0, 38, 0, 0, 52, 53,
54, 57, 195, 0, 0, 65, 0, 68, 0, 0,
0, 195, 195, 71, 195, 0, 0, 0, 81, 195,
0, 0, 0, 0, 0, 195, 93, 97, 0, 97,
97, 103, 0, 194, 112, 0, 0, 0, 118, 0,
0, 0, 0, 0, 195, 195, 192, 195, 152, 195,
158, 0, 0, 164, 195, 168, 195, 176, 184, 186,
0, 0, 0, 55, 0, 59, 0, 0, 0, 0,
0, 71, 69, 195, 73, 76, 0, 0, 0, 195,
0, 0, 0, 0, 0, 195, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 195, 0, 164,
0, 165, 195, 0, 0, 0, 0, 61, 62, 0,
69, 0, 195, 77, 0, 79, 83, 0, 0, 0,
0, 0, 90, 0, 0, 0, 0, 0, 0, 122,
0, 0, 134, 0, 0, 0, 195, 0, 165, 175,
0, 0, 33, 56, 0, 0, 70, 0, 0, 0,
85, 0, 0, 0, 114, 0, 0, 120, 121, 123,
124, 0, 0, 0, 0, 147, 0, 0, 0, 0,
70, 0, 87, 89, 86, 88, 194, 115, 117, 0,
0, 0, 138, 0, 0, 27, 0, 0, 0, 0,
0, 137, 139, 157, 0, 29, 67, 0, 0, 132,
0, 78, 0, 0, 0, 0, 133, 0, 28, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 20,
20, 20, 20, 20, 20, 21, 21, 22, 23, 24,
25, 26, 27, 1, 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, 1, 59, 60, 61, 62,
63, 64, 65, 66, 67, 37, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, 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, 1, 1, 1, 1
} ;
static yyconst flex_int32_t yy_meta[84] =
{ 0,
1, 2, 3, 1, 4, 5, 5, 5, 1, 1,
1, 1, 1, 1, 6, 1, 7, 1, 8, 8,
8, 6, 1, 1, 1, 1, 1, 9, 9, 9,
9, 9, 9, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 1, 1, 1, 1, 7, 9, 9,
9, 9, 9, 9, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10
} ;
static yyconst flex_int16_t yy_base[718] =
{ 0,
0, 0, 82, 86, 50, 54, 292, 268, 260, 3041,
90, 92, 0, 93, 3041, 64, 3041, 3041, 3041, 3041,
3041, 3041, 90, 3041, 99, 3041, 3041, 87, 76, 90,
242, 117, 120, 126, 138, 205, 211, 144, 131, 284,
134, 218, 355, 235, 294, 302, 334, 397, 470, 413,
258, 547, 409, 427, 3041, 3041, 0, 235, 3041, 172,
3041, 3041, 3041, 89, 232, 3041, 146, 0, 154, 164,
218, 0, 162, 506, 3041, 3041, 538, 557, 213, 3041,
3041, 3041, 3041, 3041, 3041, 3041, 183, 232, 290, 214,
305, 455, 364, 565, 578, 262, 312, 596, 592, 325,
377, 588, 617, 458, 646, 636, 663, 674, 485, 677,
680, 692, 430, 683, 489, 701, 704, 508, 707, 714,
725, 744, 756, 734, 781, 786, 796, 799, 812, 815,
828, 560, 839, 818, 831, 834, 842, 847, 862, 866,
881, 947, 885, 891, 912, 905, 917, 934, 920, 950,
971, 957, 923, 996, 1002, 927, 1020, 1030, 965, 1036,
1033, 1039, 1047, 1043, 1051, 1076, 1079, 1082, 0, 213,
385, 201, 209, 225, 3041, 205, 3041, 0, 164, 3041,
1097, 3041, 1108, 1116, 917, 1127, 1087, 1114, 1135, 1149,
1152, 1155, 1158, 1161, 1166, 1169, 1172, 1175, 1186, 1189,
1197, 1202, 1194, 1213, 695, 1223, 1217, 1240, 1247, 1232,
1244, 1255, 1268, 1271, 198, 1281, 1274, 1289, 1305, 1301,
406, 1310, 1318, 1321, 1326, 1335, 1340, 1343, 1348, 1355,
1364, 1367, 1372, 1375, 1379, 1385, 1391, 1399, 1402, 1406,
1454, 1457, 1424, 1460, 1433, 1467, 1470, 243, 1474, 1480,
1483, 3041, 1488, 1491, 1494, 1497, 1502, 1564, 1533, 1577,
1550, 1547, 1594, 1505, 1597, 1600, 1606, 1609, 1627, 1511,
1630, 1636, 1648, 1639, 1658, 1519, 1523, 1616, 1528, 1661,
1669, 1677, 1685, 1690, 1693, 1700, 1707, 1714, 1721, 1735,
1710, 1738, 1744, 1748, 194, 1739, 1766, 3041, 1774, 1746,
1785, 3041, 1767, 1793, 1801, 1808, 1811, 1814, 1817, 1820,
1808, 1825, 1828, 1831, 1841, 1851, 138, 94, 1857, 1860,
1858, 1899, 1867, 1903, 1907, 1922, 1931, 1937, 1940, 1949,
1953, 1947, 1963, 3041, 183, 209, 1966, 1971, 1980, 1995,
1990, 2009, 2026, 2017, 2035, 2038, 2041, 2044, 2053, 2062,
2065, 2068, 2051, 2071, 2074, 2082, 212, 2091, 2096, 2101,
2104, 3041, 2121, 2126, 0, 0, 2133, 2136, 2142, 2146,
2149, 2152, 2158, 2163, 2166, 2172, 2177, 2183, 2188, 2180,
2191, 2208, 2215, 333, 2218, 2221, 2229, 2232, 2239, 2246,
2249, 2260, 2264, 2267, 2274, 2277, 2280, 2287, 2307, 2298,
2310, 2300, 2305, 2321, 367, 2328, 2334, 2338, 2341, 217,
239, 2344, 2348, 2351, 2354, 2357, 281, 356, 2365, 296,
378, 311, 471, 2368, 2372, 2381, 2386, 2393, 2396, 2375,
2403, 2416, 2424, 359, 404, 409, 409, 476, 2434, 527,
3041, 2441, 2502, 2446, 579, 2453, 2449, 2456, 2460, 2055,
734, 2472, 470, 476, 576, 543, 2467, 586, 2480, 2491,
0, 2475, 2487, 2529, 2533, 2536, 2539, 2547, 2483, 2560,
1377, 2563, 2574, 2577, 2581, 2584, 2591, 2594, 2607, 2612,
2615, 2620, 2624, 2631, 594, 3041, 194, 603, 2628, 2638,
2642, 2645, 2648, 573, 654, 2654, 684, 3041, 686, 728,
598, 2657, 2660, 2663, 2666, 728, 1164, 730, 3041, 2669,
756, 791, 808, 813, 823, 2673, 3041, 3041, 169, 3041,
2676, 3041, 835, 2682, 2687, 604, 832, 844, 2690, 878,
637, 1392, 723, 917, 2697, 2702, 2705, 2714, 2718, 2725,
2728, 754, 931, 2733, 2741, 2744, 2747, 2750, 3041, 3041,
2715, 938, 162, 3041, 991, 2755, 966, 997, 1003, 1036,
1153, 3041, 2760, 2766, 2772, 3041, 1025, 1074, 1184, 2775,
1203, 1239, 1290, 1316, 1240, 2778, 1321, 1277, 1470, 1318,
1379, 1408, 1476, 1485, 1516, 1551, 2762, 2791, 1628, 3041,
1584, 2794, 2797, 1607, 1629, 1698, 0, 3041, 3041, 1701,
3041, 1701, 2803, 3041, 1800, 3041, 2806, 1799, 1805, 1805,
1839, 1847, 2824, 1845, 1814, 1917, 1835, 1943, 1944, 3041,
1965, 1863, 154, 1908, 1960, 1962, 2827, 1925, 3041, 2833,
1934, 1995, 3041, 3041, 2050, 1989, 2845, 2007, 2061, 2011,
3041, 2090, 2105, 2115, 3041, 2169, 2179, 3041, 3041, 3041,
3041, 2813, 2214, 2237, 2296, 2850, 2336, 2200, 2381, 2480,
3041, 2369, 3041, 3041, 3041, 3041, 3041, 3041, 3041, 2490,
2374, 2413, 3041, 2490, 2516, 141, 2540, 2534, 2534, 2639,
2560, 3041, 3041, 3041, 2726, 3041, 3041, 2688, 2745, 3041,
2748, 3041, 133, 2575, 253, 2789, 3041, 2757, 3041, 3041,
2890, 2900, 2910, 2920, 2930, 2936, 2946, 2956, 2966, 2969,
2978, 2987, 2997, 3007, 3016, 3026, 3030
} ;
static yyconst flex_int16_t yy_def[718] =
{ 0,
700, 1, 701, 701, 702, 702, 703, 703, 700, 700,
700, 700, 704, 705, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 700, 700, 707, 700, 700, 708,
700, 700, 700, 700, 709, 700, 700, 704, 705, 705,
700, 710, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 707, 700,
708, 711, 707, 711, 700, 709, 700, 710, 700, 700,
700, 700, 700, 700, 700, 700, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 700, 706, 706, 706, 706, 706,
706, 706, 706, 706, 712, 706, 706, 706, 706, 706,
700, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 700, 706, 706,
706, 700, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 700, 700, 700, 700, 700, 700,
700, 700, 706, 706, 706, 706, 706, 706, 706, 706,
700, 706, 706, 706, 706, 706, 700, 700, 706, 706,
700, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 700, 706, 700, 700, 700, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 700, 706, 706, 706, 700, 706, 706, 706,
706, 700, 706, 706, 713, 713, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 700, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 700, 700, 706, 700, 706, 706, 706, 706, 700,
700, 706, 706, 706, 706, 706, 700, 700, 706, 700,
700, 700, 700, 706, 706, 706, 706, 706, 706, 700,
706, 706, 706, 700, 700, 700, 700, 700, 706, 700,
700, 706, 714, 706, 700, 706, 706, 706, 706, 700,
700, 706, 700, 700, 700, 700, 706, 700, 706, 706,
713, 706, 706, 706, 706, 706, 706, 706, 706, 706,
700, 706, 706, 706, 706, 706, 706, 706, 706, 706,
706, 706, 706, 706, 700, 700, 715, 700, 706, 706,
706, 706, 706, 700, 700, 706, 700, 700, 700, 700,
700, 706, 706, 706, 706, 700, 700, 700, 700, 706,
700, 700, 700, 700, 700, 706, 700, 700, 716, 700,
706, 700, 700, 706, 706, 700, 700, 700, 706, 700,
700, 700, 700, 700, 706, 706, 706, 706, 706, 706,
706, 700, 700, 706, 706, 706, 706, 706, 700, 700,
700, 700, 715, 700, 700, 706, 700, 700, 700, 700,
700, 700, 706, 706, 706, 700, 700, 700, 700, 706,
700, 700, 700, 700, 700, 706, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 706, 700, 700,
700, 706, 706, 700, 700, 700, 717, 700, 700, 700,
700, 700, 706, 700, 700, 700, 706, 700, 700, 700,
700, 700, 706, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 706, 700, 700, 706,
700, 700, 700, 700, 700, 700, 706, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 706, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 0,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700
} ;
static yyconst flex_int16_t yy_nxt[3125] =
{ 0,
10, 11, 12, 13, 14, 15, 10, 10, 16, 13,
17, 18, 19, 20, 21, 22, 23, 24, 25, 25,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 41, 48, 49, 50, 51, 41, 52,
53, 41, 54, 17, 55, 18, 56, 10, 32, 33,
34, 35, 36, 37, 38, 39, 40, 42, 43, 44,
45, 46, 47, 41, 48, 49, 50, 51, 41, 52,
53, 41, 54, 58, 59, 64, 60, 58, 59, 64,
60, 67, 67, 67, 67, 70, 61, 71, 72, 82,
61, 83, 75, 62, 75, 73, 76, 62, 74, 74,
74, 80, 81, 81, 84, 77, 64, 78, 78, 78,
64, 175, 86, 86, 86, 86, 86, 86, 418, 72,
79, 86, 86, 86, 695, 73, 86, 86, 86, 86,
86, 86, 685, 86, 86, 86, 88, 67, 67, 86,
86, 86, 175, 92, 96, 652, 70, 89, 71, 418,
93, 79, 90, 553, 94, 97, 70, 95, 71, 98,
519, 91, 113, 99, 172, 111, 173, 88, 417, 100,
179, 179, 179, 179, 92, 112, 174, 89, 86, 86,
86, 93, 90, 174, 94, 553, 97, 95, 174, 215,
98, 91, 113, 172, 99, 295, 111, 177, 417, 100,
86, 86, 86, 171, 170, 112, 86, 86, 86, 86,
86, 86, 69, 86, 86, 86, 185, 172, 185, 295,
440, 186, 186, 186, 177, 101, 170, 86, 86, 86,
86, 86, 86, 102, 248, 103, 107, 85, 104, 105,
441, 108, 109, 119, 695, 106, 458, 487, 110, 700,
440, 187, 126, 86, 86, 86, 101, 86, 86, 86,
66, 697, 127, 102, 357, 103, 128, 107, 104, 105,
441, 108, 109, 488, 119, 106, 458, 487, 110, 86,
86, 86, 187, 126, 66, 86, 86, 86, 158, 86,
86, 86, 127, 159, 700, 357, 128, 86, 86, 86,
86, 86, 86, 488, 114, 700, 115, 86, 86, 86,
188, 129, 700, 116, 117, 130, 205, 494, 158, 118,
86, 86, 86, 159, 384, 131, 189, 700, 700, 86,
86, 86, 132, 497, 133, 114, 134, 115, 700, 135,
136, 188, 129, 116, 117, 499, 130, 494, 199, 118,
86, 86, 86, 700, 471, 131, 700, 189, 405, 86,
86, 86, 132, 497, 133, 137, 134, 700, 138, 135,
700, 139, 86, 86, 86, 499, 120, 172, 199, 173,
121, 495, 700, 122, 192, 471, 123, 124, 485, 174,
125, 511, 86, 86, 86, 137, 174, 221, 138, 700,
498, 139, 206, 140, 86, 86, 86, 120, 86, 86,
86, 121, 495, 122, 141, 192, 123, 124, 142, 485,
125, 511, 86, 86, 86, 86, 86, 86, 700, 512,
154, 498, 143, 206, 144, 700, 700, 155, 700, 513,
165, 335, 336, 166, 156, 141, 514, 157, 167, 142,
86, 86, 86, 86, 86, 86, 700, 700, 168, 224,
512, 154, 143, 700, 144, 86, 86, 86, 155, 513,
165, 335, 336, 166, 156, 700, 514, 157, 700, 167,
86, 86, 86, 190, 86, 86, 86, 145, 168, 224,
191, 146, 500, 515, 147, 700, 211, 700, 148, 180,
530, 180, 149, 86, 86, 86, 150, 151, 501, 152,
531, 153, 700, 190, 74, 74, 74, 700, 145, 218,
191, 700, 146, 500, 515, 147, 211, 181, 148, 700,
530, 182, 149, 182, 700, 700, 150, 151, 501, 152,
531, 153, 86, 86, 86, 517, 183, 183, 183, 218,
75, 248, 75, 700, 76, 86, 86, 86, 181, 184,
86, 86, 86, 77, 160, 78, 78, 78, 161, 700,
445, 162, 163, 86, 86, 86, 517, 533, 79, 700,
700, 164, 700, 86, 86, 86, 193, 86, 86, 86,
184, 86, 86, 86, 207, 160, 194, 532, 557, 161,
195, 700, 162, 163, 523, 700, 196, 533, 197, 79,
198, 164, 86, 86, 86, 200, 562, 193, 201, 700,
534, 203, 552, 208, 202, 578, 194, 204, 532, 557,
195, 86, 86, 86, 555, 523, 196, 209, 197, 700,
198, 86, 86, 86, 700, 700, 200, 562, 700, 201,
534, 203, 552, 208, 202, 210, 578, 204, 86, 86,
86, 213, 582, 212, 555, 215, 700, 700, 209, 86,
86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
86, 700, 558, 221, 214, 210, 205, 86, 86, 86,
700, 700, 213, 582, 212, 216, 86, 86, 86, 86,
86, 86, 86, 86, 86, 700, 700, 219, 217, 86,
86, 86, 558, 225, 559, 214, 220, 560, 226, 700,
86, 86, 86, 228, 700, 451, 216, 222, 223, 86,
86, 86, 317, 227, 318, 231, 229, 219, 217, 86,
86, 86, 230, 225, 559, 700, 220, 560, 585, 226,
232, 86, 86, 86, 228, 233, 561, 222, 223, 566,
234, 700, 317, 227, 318, 231, 229, 569, 239, 235,
700, 528, 230, 236, 590, 237, 86, 86, 86, 585,
232, 86, 86, 86, 700, 233, 561, 238, 571, 566,
234, 86, 86, 86, 86, 86, 86, 569, 239, 700,
235, 528, 240, 700, 236, 590, 237, 86, 86, 86,
86, 86, 86, 86, 86, 86, 242, 238, 571, 243,
700, 572, 241, 86, 86, 86, 86, 86, 86, 252,
86, 86, 700, 240, 86, 86, 86, 86, 86, 86,
573, 244, 86, 86, 86, 700, 700, 242, 700, 574,
243, 572, 241, 575, 245, 246, 700, 86, 86, 86,
249, 86, 86, 86, 247, 577, 579, 251, 700, 253,
573, 244, 254, 700, 580, 250, 86, 86, 86, 574,
86, 86, 86, 575, 245, 246, 86, 86, 86, 700,
700, 249, 700, 700, 247, 577, 579, 251, 255, 253,
86, 86, 86, 254, 580, 250, 263, 86, 86, 86,
581, 256, 86, 86, 86, 86, 86, 86, 86, 86,
86, 264, 86, 86, 86, 186, 186, 186, 255, 86,
86, 86, 700, 266, 267, 700, 700, 263, 268, 270,
581, 256, 86, 86, 86, 86, 86, 86, 586, 700,
265, 264, 86, 86, 86, 269, 591, 700, 275, 700,
86, 86, 86, 266, 257, 267, 86, 86, 86, 268,
270, 271, 700, 596, 274, 700, 258, 259, 586, 260,
265, 272, 261, 262, 700, 700, 269, 591, 275, 273,
285, 86, 86, 86, 598, 257, 700, 86, 86, 86,
700, 700, 271, 596, 700, 274, 258, 259, 277, 260,
597, 272, 261, 262, 276, 86, 86, 86, 599, 700,
273, 285, 600, 278, 598, 86, 86, 86, 86, 86,
86, 86, 86, 86, 86, 86, 86, 700, 86, 86,
86, 597, 86, 86, 86, 276, 86, 86, 86, 599,
279, 280, 700, 600, 278, 601, 700, 281, 282, 604,
283, 286, 700, 287, 288, 700, 284, 289, 290, 700,
700, 86, 86, 86, 86, 86, 86, 86, 86, 86,
279, 280, 86, 86, 86, 291, 601, 281, 282, 604,
283, 700, 286, 287, 700, 288, 284, 292, 289, 290,
296, 298, 296, 298, 605, 297, 297, 297, 303, 86,
86, 86, 294, 293, 700, 291, 183, 183, 183, 300,
302, 300, 302, 700, 301, 301, 301, 700, 292, 299,
86, 86, 86, 700, 605, 186, 186, 186, 700, 303,
700, 700, 294, 293, 86, 86, 86, 86, 86, 86,
86, 86, 86, 86, 86, 86, 86, 86, 86, 700,
299, 86, 86, 86, 86, 86, 86, 86, 86, 86,
86, 86, 86, 305, 602, 307, 700, 304, 700, 700,
306, 86, 86, 86, 86, 86, 86, 700, 311, 86,
86, 86, 86, 86, 86, 567, 308, 86, 86, 86,
309, 568, 606, 96, 305, 602, 307, 304, 86, 86,
86, 306, 86, 86, 86, 700, 310, 312, 86, 86,
86, 700, 313, 315, 608, 567, 308, 86, 86, 86,
309, 568, 314, 606, 96, 86, 86, 86, 321, 86,
86, 86, 86, 86, 86, 316, 310, 700, 312, 700,
86, 86, 86, 313, 315, 608, 609, 325, 700, 319,
612, 320, 314, 86, 86, 86, 86, 86, 86, 86,
86, 86, 322, 700, 700, 316, 86, 86, 86, 323,
332, 700, 324, 700, 86, 86, 86, 609, 325, 319,
326, 612, 320, 700, 615, 331, 334, 86, 86, 328,
86, 86, 86, 322, 327, 86, 86, 86, 700, 323,
700, 330, 324, 86, 86, 86, 86, 86, 86, 700,
326, 86, 86, 86, 333, 615, 331, 610, 700, 328,
86, 86, 86, 700, 327, 86, 86, 86, 86, 86,
86, 330, 339, 86, 86, 86, 700, 337, 611, 338,
86, 86, 86, 614, 617, 333, 700, 610, 340, 86,
86, 86, 86, 86, 86, 700, 700, 86, 86, 86,
86, 86, 86, 339, 86, 86, 86, 337, 611, 338,
86, 86, 86, 614, 617, 341, 86, 86, 86, 340,
700, 700, 342, 343, 86, 86, 86, 86, 86, 86,
700, 86, 86, 86, 344, 347, 700, 542, 348, 583,
700, 345, 584, 700, 346, 341, 618, 543, 349, 86,
86, 86, 342, 700, 343, 700, 700, 351, 86, 86,
86, 350, 700, 700, 344, 700, 347, 542, 619, 348,
583, 345, 352, 584, 346, 353, 618, 543, 349, 86,
86, 86, 86, 86, 86, 86, 86, 86, 351, 700,
700, 350, 86, 86, 86, 86, 86, 86, 619, 86,
86, 86, 352, 700, 700, 86, 86, 86, 86, 86,
86, 355, 354, 86, 86, 86, 86, 86, 86, 362,
86, 86, 86, 86, 86, 616, 620, 86, 86, 86,
86, 86, 86, 356, 358, 359, 86, 86, 86, 360,
621, 700, 355, 354, 86, 86, 86, 363, 86, 86,
86, 361, 364, 86, 86, 86, 616, 620, 86, 86,
86, 700, 700, 356, 358, 700, 359, 700, 700, 367,
360, 621, 86, 86, 86, 86, 86, 86, 363, 700,
368, 361, 622, 364, 365, 365, 372, 365, 365, 366,
366, 366, 365, 365, 365, 365, 365, 365, 365, 365,
369, 365, 86, 86, 86, 365, 365, 365, 365, 365,
365, 368, 622, 370, 375, 623, 373, 374, 700, 86,
86, 86, 86, 86, 86, 86, 86, 86, 371, 700,
369, 86, 86, 86, 86, 86, 86, 365, 365, 365,
365, 86, 86, 86, 375, 623, 373, 374, 377, 589,
629, 378, 86, 86, 86, 86, 86, 86, 631, 371,
376, 86, 86, 86, 86, 86, 86, 380, 700, 384,
379, 700, 700, 86, 86, 86, 277, 628, 381, 377,
629, 700, 378, 86, 86, 86, 86, 86, 86, 631,
376, 700, 382, 632, 86, 86, 86, 380, 383, 385,
379, 386, 86, 86, 86, 700, 277, 700, 628, 381,
86, 86, 86, 388, 700, 86, 86, 86, 86, 86,
86, 389, 382, 632, 387, 86, 86, 86, 383, 390,
385, 386, 86, 86, 86, 86, 86, 86, 391, 86,
86, 86, 700, 700, 388, 393, 86, 86, 86, 633,
636, 389, 392, 394, 387, 700, 700, 396, 700, 390,
86, 86, 86, 86, 86, 86, 395, 635, 391, 86,
86, 86, 397, 86, 86, 86, 393, 297, 297, 297,
633, 636, 392, 394, 301, 301, 301, 398, 396, 180,
400, 180, 86, 86, 86, 700, 395, 635, 700, 401,
700, 399, 397, 700, 297, 297, 297, 402, 182, 402,
182, 700, 403, 403, 403, 700, 700, 398, 86, 86,
86, 400, 405, 301, 301, 301, 86, 86, 86, 311,
401, 399, 404, 86, 86, 86, 86, 86, 86, 86,
86, 86, 86, 86, 86, 86, 86, 86, 700, 638,
86, 86, 86, 86, 86, 86, 86, 86, 86, 639,
410, 700, 404, 700, 645, 408, 86, 86, 86, 640,
411, 641, 406, 412, 700, 407, 86, 86, 86, 321,
638, 409, 86, 86, 86, 86, 86, 86, 413, 639,
647, 410, 86, 86, 86, 645, 408, 414, 700, 640,
411, 641, 406, 700, 412, 407, 642, 415, 643, 416,
420, 409, 644, 421, 651, 419, 700, 700, 413, 700,
422, 647, 700, 423, 86, 86, 86, 414, 86, 86,
86, 425, 86, 86, 86, 700, 642, 415, 643, 416,
700, 420, 644, 700, 421, 651, 419, 86, 86, 86,
422, 424, 430, 423, 426, 653, 86, 86, 86, 700,
700, 425, 86, 86, 86, 86, 86, 86, 332, 700,
427, 428, 657, 429, 86, 86, 86, 700, 86, 86,
86, 658, 424, 646, 700, 426, 653, 431, 86, 86,
86, 86, 86, 86, 434, 435, 86, 86, 86, 432,
427, 428, 436, 657, 429, 86, 86, 86, 437, 648,
649, 438, 658, 646, 442, 86, 86, 86, 431, 433,
86, 86, 86, 700, 650, 434, 435, 654, 655, 439,
432, 700, 700, 436, 86, 86, 86, 700, 437, 648,
649, 438, 86, 86, 86, 442, 443, 445, 700, 433,
659, 86, 86, 86, 650, 661, 444, 654, 655, 439,
86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
86, 86, 353, 662, 450, 700, 450, 443, 86, 86,
86, 659, 664, 451, 446, 661, 444, 86, 86, 86,
86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
86, 86, 448, 662, 447, 660, 453, 86, 86, 86,
449, 663, 664, 454, 446, 455, 86, 86, 86, 526,
456, 86, 86, 86, 527, 452, 86, 86, 86, 86,
86, 86, 448, 700, 447, 457, 660, 453, 700, 700,
449, 700, 663, 454, 700, 455, 86, 86, 86, 526,
456, 86, 86, 86, 527, 452, 665, 459, 86, 86,
86, 86, 86, 86, 666, 457, 700, 86, 86, 86,
136, 86, 86, 86, 86, 86, 86, 86, 86, 86,
700, 667, 460, 86, 86, 86, 665, 459, 86, 86,
86, 86, 86, 86, 666, 462, 463, 86, 86, 86,
136, 367, 86, 86, 86, 86, 86, 86, 86, 86,
86, 667, 460, 86, 86, 86, 86, 86, 86, 464,
668, 700, 465, 700, 700, 462, 700, 463, 700, 700,
466, 367, 467, 86, 86, 86, 700, 669, 469, 468,
86, 86, 86, 86, 86, 86, 86, 86, 86, 464,
676, 668, 465, 470, 86, 86, 86, 86, 86, 86,
466, 700, 700, 467, 86, 86, 86, 669, 469, 700,
468, 86, 86, 86, 86, 86, 86, 700, 472, 672,
474, 676, 700, 470, 475, 86, 86, 86, 473, 86,
86, 86, 86, 86, 86, 476, 700, 673, 477, 86,
86, 86, 86, 86, 86, 86, 86, 86, 472, 672,
700, 474, 86, 86, 86, 475, 700, 700, 473, 478,
480, 700, 479, 86, 86, 86, 476, 673, 298, 477,
298, 481, 86, 86, 86, 86, 86, 86, 403, 403,
403, 482, 700, 403, 403, 403, 86, 86, 86, 478,
700, 480, 479, 86, 86, 86, 700, 674, 483, 86,
86, 86, 481, 486, 86, 86, 86, 86, 86, 86,
86, 86, 482, 86, 86, 86, 86, 86, 86, 86,
86, 86, 86, 86, 86, 700, 484, 674, 700, 483,
86, 86, 86, 86, 86, 86, 430, 86, 86, 86,
700, 675, 489, 700, 493, 492, 86, 86, 86, 700,
700, 86, 86, 86, 490, 491, 484, 496, 86, 86,
86, 86, 86, 86, 679, 506, 681, 507, 509, 86,
86, 675, 489, 502, 504, 493, 492, 700, 700, 503,
508, 86, 86, 86, 490, 491, 700, 677, 496, 86,
86, 86, 700, 700, 505, 679, 506, 681, 507, 86,
86, 86, 700, 502, 682, 504, 86, 86, 86, 503,
508, 522, 86, 86, 86, 86, 86, 677, 86, 86,
86, 86, 86, 86, 505, 86, 86, 86, 700, 516,
700, 510, 86, 86, 86, 682, 700, 86, 86, 86,
86, 86, 86, 700, 700, 86, 86, 86, 86, 86,
86, 525, 86, 86, 86, 700, 86, 86, 86, 524,
516, 510, 518, 519, 700, 518, 537, 520, 520, 520,
518, 518, 518, 518, 518, 518, 518, 518, 529, 518,
535, 678, 525, 518, 518, 518, 518, 518, 518, 524,
536, 680, 683, 370, 86, 86, 86, 537, 86, 86,
86, 86, 86, 86, 86, 86, 86, 684, 529, 700,
535, 678, 86, 86, 86, 518, 518, 518, 518, 700,
536, 680, 683, 370, 539, 86, 86, 86, 86, 86,
86, 686, 700, 538, 687, 688, 140, 541, 684, 86,
86, 86, 86, 86, 86, 540, 86, 86, 86, 86,
86, 86, 690, 544, 700, 539, 86, 86, 86, 86,
86, 86, 686, 538, 687, 688, 140, 700, 541, 545,
696, 547, 86, 86, 86, 540, 546, 86, 86, 86,
86, 86, 86, 690, 544, 549, 86, 86, 548, 550,
86, 86, 551, 86, 86, 86, 86, 86, 86, 700,
545, 696, 547, 86, 86, 86, 546, 86, 86, 86,
86, 86, 86, 86, 86, 86, 700, 700, 548, 86,
86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
86, 86, 86, 86, 86, 86, 86, 700, 86, 86,
86, 86, 86, 86, 700, 689, 563, 86, 86, 86,
700, 564, 86, 86, 86, 86, 86, 86, 587, 556,
700, 700, 86, 86, 86, 700, 565, 86, 86, 86,
86, 86, 86, 570, 576, 689, 551, 563, 700, 86,
86, 86, 564, 86, 86, 86, 589, 685, 692, 556,
86, 86, 86, 86, 86, 86, 565, 588, 86, 86,
86, 700, 700, 570, 576, 372, 86, 86, 86, 86,
86, 86, 86, 86, 86, 86, 86, 86, 692, 594,
86, 86, 86, 587, 595, 86, 86, 86, 588, 700,
700, 86, 86, 86, 700, 691, 372, 86, 86, 86,
86, 86, 86, 86, 86, 86, 693, 592, 699, 594,
624, 700, 694, 593, 595, 603, 86, 86, 86, 86,
86, 86, 86, 86, 86, 691, 625, 626, 86, 86,
86, 86, 86, 86, 652, 607, 693, 592, 613, 699,
700, 624, 694, 593, 700, 700, 603, 700, 630, 86,
86, 86, 86, 86, 86, 698, 625, 626, 86, 86,
86, 700, 700, 627, 700, 607, 670, 700, 613, 637,
86, 86, 86, 700, 671, 86, 86, 86, 656, 630,
700, 700, 700, 700, 700, 698, 700, 700, 700, 700,
700, 700, 700, 627, 700, 700, 700, 670, 700, 637,
700, 700, 700, 700, 671, 700, 700, 700, 700, 656,
57, 57, 57, 57, 57, 57, 57, 57, 57, 57,
63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
68, 68, 700, 68, 68, 68, 68, 68, 68, 68,
69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
87, 700, 87, 87, 87, 87, 169, 169, 700, 169,
169, 700, 169, 169, 169, 169, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 176, 176, 176, 176,
176, 176, 176, 176, 176, 176, 178, 178, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 329, 700,
700, 700, 700, 700, 700, 329, 329, 461, 461, 700,
461, 461, 461, 461, 461, 461, 461, 521, 521, 700,
700, 521, 521, 521, 521, 521, 521, 554, 700, 700,
700, 700, 554, 554, 554, 554, 518, 518, 700, 700,
518, 518, 518, 518, 518, 518, 634, 634, 634, 634,
9, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700
} ;
static yyconst flex_int16_t yy_chk[3125] =
{ 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, 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, 5, 3, 4, 4, 6,
4, 11, 11, 12, 12, 14, 3, 14, 16, 29,
4, 29, 25, 3, 25, 16, 25, 4, 23, 23,
23, 28, 28, 30, 30, 25, 5, 25, 25, 25,
6, 64, 32, 32, 32, 33, 33, 33, 318, 16,
25, 34, 34, 34, 693, 16, 39, 39, 39, 41,
41, 41, 676, 35, 35, 35, 32, 67, 67, 38,
38, 38, 64, 34, 35, 623, 69, 32, 69, 318,
34, 25, 32, 553, 34, 35, 70, 34, 70, 35,
519, 33, 39, 35, 60, 38, 60, 32, 317, 35,
73, 73, 179, 179, 34, 38, 60, 32, 87, 87,
87, 34, 32, 60, 34, 487, 35, 34, 295, 215,
35, 33, 39, 172, 35, 172, 38, 176, 317, 35,
36, 36, 36, 173, 170, 38, 37, 37, 37, 90,
90, 90, 71, 42, 42, 42, 79, 174, 79, 174,
335, 79, 79, 79, 65, 36, 58, 88, 88, 88,
44, 44, 44, 36, 248, 36, 37, 31, 36, 36,
336, 37, 37, 42, 695, 36, 357, 410, 37, 9,
335, 88, 44, 51, 51, 51, 36, 96, 96, 96,
8, 695, 44, 36, 248, 36, 44, 37, 36, 36,
336, 37, 37, 411, 42, 36, 357, 410, 37, 40,
40, 40, 88, 44, 7, 89, 89, 89, 51, 45,
45, 45, 44, 51, 0, 248, 44, 46, 46, 46,
91, 91, 91, 411, 40, 0, 40, 97, 97, 97,
89, 45, 0, 40, 40, 45, 100, 417, 51, 40,
100, 100, 100, 51, 384, 45, 91, 0, 0, 47,
47, 47, 46, 420, 46, 40, 46, 40, 0, 46,
47, 89, 45, 40, 40, 422, 45, 417, 97, 40,
43, 43, 43, 0, 384, 45, 0, 91, 405, 93,
93, 93, 46, 420, 46, 47, 46, 0, 47, 46,
0, 47, 101, 101, 101, 422, 43, 171, 97, 171,
43, 418, 0, 43, 93, 384, 43, 43, 405, 171,
43, 434, 48, 48, 48, 47, 171, 221, 47, 0,
421, 47, 101, 48, 53, 53, 53, 43, 50, 50,
50, 43, 418, 43, 48, 93, 43, 43, 48, 405,
43, 434, 54, 54, 54, 113, 113, 113, 0, 435,
50, 421, 48, 101, 48, 0, 0, 50, 0, 436,
53, 221, 221, 53, 50, 48, 437, 50, 54, 48,
92, 92, 92, 104, 104, 104, 0, 0, 54, 113,
435, 50, 48, 0, 48, 49, 49, 49, 50, 436,
53, 221, 221, 53, 50, 0, 437, 50, 0, 54,
109, 109, 109, 92, 115, 115, 115, 49, 54, 113,
92, 49, 423, 438, 49, 0, 104, 0, 49, 74,
453, 74, 49, 118, 118, 118, 49, 49, 423, 49,
454, 49, 0, 92, 74, 74, 74, 0, 49, 109,
92, 0, 49, 423, 438, 49, 104, 74, 49, 0,
453, 77, 49, 77, 0, 0, 49, 49, 423, 49,
454, 49, 52, 52, 52, 440, 77, 77, 77, 109,
78, 132, 78, 0, 78, 132, 132, 132, 74, 77,
94, 94, 94, 78, 52, 78, 78, 78, 52, 0,
445, 52, 52, 95, 95, 95, 440, 456, 78, 0,
0, 52, 0, 102, 102, 102, 94, 99, 99, 99,
77, 98, 98, 98, 102, 52, 94, 455, 494, 52,
94, 0, 52, 52, 445, 0, 95, 456, 95, 78,
95, 52, 103, 103, 103, 98, 501, 94, 98, 0,
458, 99, 485, 102, 98, 526, 94, 99, 455, 494,
94, 106, 106, 106, 488, 445, 95, 103, 95, 0,
95, 105, 105, 105, 0, 0, 98, 501, 0, 98,
458, 99, 485, 102, 98, 103, 526, 99, 107, 107,
107, 106, 531, 105, 488, 108, 0, 0, 103, 108,
108, 108, 110, 110, 110, 111, 111, 111, 114, 114,
114, 0, 495, 112, 107, 103, 205, 112, 112, 112,
0, 0, 106, 531, 105, 108, 116, 116, 116, 117,
117, 117, 119, 119, 119, 0, 0, 110, 108, 120,
120, 120, 495, 114, 497, 107, 111, 499, 116, 0,
121, 121, 121, 117, 0, 451, 108, 112, 112, 124,
124, 124, 205, 116, 205, 119, 117, 110, 108, 122,
122, 122, 117, 114, 497, 0, 111, 499, 533, 116,
120, 123, 123, 123, 117, 121, 500, 112, 112, 506,
121, 0, 205, 116, 205, 119, 117, 508, 124, 122,
0, 451, 117, 123, 542, 123, 125, 125, 125, 533,
120, 126, 126, 126, 0, 121, 500, 123, 511, 506,
121, 127, 127, 127, 128, 128, 128, 508, 124, 0,
122, 451, 125, 0, 123, 542, 123, 129, 129, 129,
130, 130, 130, 134, 134, 134, 127, 123, 511, 128,
0, 512, 126, 131, 131, 131, 135, 135, 135, 136,
136, 136, 0, 125, 133, 133, 133, 137, 137, 137,
513, 129, 138, 138, 138, 0, 0, 127, 0, 514,
128, 512, 126, 515, 130, 130, 0, 139, 139, 139,
133, 140, 140, 140, 131, 523, 527, 135, 0, 137,
513, 129, 138, 0, 528, 133, 141, 141, 141, 514,
143, 143, 143, 515, 130, 130, 144, 144, 144, 0,
0, 133, 0, 0, 131, 523, 527, 135, 139, 137,
146, 146, 146, 138, 528, 133, 143, 145, 145, 145,
530, 141, 147, 147, 147, 149, 149, 149, 153, 153,
153, 144, 156, 156, 156, 185, 185, 185, 139, 148,
148, 148, 0, 146, 147, 0, 0, 143, 147, 149,
530, 141, 142, 142, 142, 150, 150, 150, 534, 0,
145, 144, 152, 152, 152, 148, 543, 0, 153, 0,
159, 159, 159, 146, 142, 147, 151, 151, 151, 147,
149, 150, 0, 552, 152, 0, 142, 142, 534, 142,
145, 150, 142, 142, 0, 0, 148, 543, 153, 151,
159, 154, 154, 154, 557, 142, 0, 155, 155, 155,
0, 0, 150, 552, 0, 152, 142, 142, 155, 142,
555, 150, 142, 142, 154, 157, 157, 157, 558, 0,
151, 159, 559, 155, 557, 158, 158, 158, 161, 161,
161, 160, 160, 160, 162, 162, 162, 0, 164, 164,
164, 555, 163, 163, 163, 154, 165, 165, 165, 558,
157, 157, 0, 559, 155, 560, 0, 157, 158, 567,
158, 160, 0, 161, 162, 0, 158, 163, 164, 0,
0, 166, 166, 166, 167, 167, 167, 168, 168, 168,
157, 157, 187, 187, 187, 165, 560, 157, 158, 567,
158, 0, 160, 161, 0, 162, 158, 166, 163, 164,
181, 183, 181, 183, 568, 181, 181, 181, 187, 188,
188, 188, 168, 167, 0, 165, 183, 183, 183, 184,
186, 184, 186, 0, 184, 184, 184, 0, 166, 183,
189, 189, 189, 0, 568, 186, 186, 186, 0, 187,
0, 0, 168, 167, 190, 190, 190, 191, 191, 191,
192, 192, 192, 193, 193, 193, 194, 194, 194, 0,
183, 195, 195, 195, 196, 196, 196, 197, 197, 197,
198, 198, 198, 191, 561, 193, 0, 190, 0, 0,
192, 199, 199, 199, 200, 200, 200, 0, 201, 203,
203, 203, 201, 201, 201, 507, 194, 202, 202, 202,
196, 507, 569, 199, 191, 561, 193, 190, 204, 204,
204, 192, 207, 207, 207, 0, 198, 201, 206, 206,
206, 0, 201, 202, 571, 507, 194, 210, 210, 210,
196, 507, 201, 569, 199, 208, 208, 208, 209, 211,
211, 211, 209, 209, 209, 204, 198, 0, 201, 0,
212, 212, 212, 201, 202, 571, 572, 210, 0, 206,
575, 208, 201, 213, 213, 213, 214, 214, 214, 217,
217, 217, 209, 0, 0, 204, 216, 216, 216, 209,
218, 0, 209, 0, 218, 218, 218, 572, 210, 206,
212, 575, 208, 0, 578, 217, 220, 220, 220, 214,
219, 219, 219, 209, 213, 222, 222, 222, 0, 209,
0, 216, 209, 223, 223, 223, 224, 224, 224, 0,
212, 225, 225, 225, 219, 578, 217, 573, 0, 214,
226, 226, 226, 0, 213, 227, 227, 227, 228, 228,
228, 216, 224, 229, 229, 229, 0, 222, 574, 223,
230, 230, 230, 577, 580, 219, 0, 573, 226, 231,
231, 231, 232, 232, 232, 0, 0, 233, 233, 233,
234, 234, 234, 224, 235, 235, 235, 222, 574, 223,
236, 236, 236, 577, 580, 229, 237, 237, 237, 226,
0, 0, 231, 233, 238, 238, 238, 239, 239, 239,
0, 240, 240, 240, 233, 236, 0, 471, 237, 532,
0, 234, 532, 0, 235, 229, 581, 471, 237, 243,
243, 243, 231, 0, 233, 0, 0, 239, 245, 245,
245, 238, 0, 0, 233, 0, 236, 471, 582, 237,
532, 234, 240, 532, 235, 241, 581, 471, 237, 241,
241, 241, 242, 242, 242, 244, 244, 244, 239, 0,
0, 238, 246, 246, 246, 247, 247, 247, 582, 249,
249, 249, 240, 0, 0, 250, 250, 250, 251, 251,
251, 244, 242, 253, 253, 253, 254, 254, 254, 255,
255, 255, 256, 256, 256, 579, 583, 257, 257, 257,
264, 264, 264, 246, 249, 250, 270, 270, 270, 253,
584, 0, 244, 242, 276, 276, 276, 256, 277, 277,
277, 254, 257, 279, 279, 279, 579, 583, 259, 259,
259, 0, 0, 246, 249, 0, 250, 0, 0, 259,
253, 584, 262, 262, 262, 261, 261, 261, 256, 0,
259, 254, 585, 257, 258, 258, 261, 258, 258, 258,
258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
259, 258, 260, 260, 260, 258, 258, 258, 258, 258,
258, 259, 585, 260, 262, 586, 261, 261, 0, 263,
263, 263, 265, 265, 265, 266, 266, 266, 260, 0,
259, 267, 267, 267, 268, 268, 268, 258, 258, 258,
258, 278, 278, 278, 262, 586, 261, 261, 265, 589,
591, 266, 269, 269, 269, 271, 271, 271, 594, 260,
263, 272, 272, 272, 274, 274, 274, 268, 0, 273,
267, 0, 0, 273, 273, 273, 278, 589, 269, 265,
591, 0, 266, 275, 275, 275, 280, 280, 280, 594,
263, 0, 271, 595, 281, 281, 281, 268, 272, 273,
267, 274, 282, 282, 282, 0, 278, 0, 589, 269,
283, 283, 283, 280, 0, 284, 284, 284, 285, 285,
285, 280, 271, 595, 275, 286, 286, 286, 272, 281,
273, 274, 287, 287, 287, 291, 291, 291, 282, 288,
288, 288, 0, 0, 280, 284, 289, 289, 289, 596,
602, 280, 283, 285, 275, 0, 0, 287, 0, 281,
290, 290, 290, 292, 292, 292, 286, 600, 282, 293,
293, 293, 288, 294, 294, 294, 284, 296, 296, 296,
596, 602, 283, 285, 300, 300, 300, 289, 287, 297,
292, 297, 303, 303, 303, 0, 286, 600, 0, 294,
0, 290, 288, 0, 297, 297, 297, 299, 301, 299,
301, 0, 299, 299, 299, 0, 0, 289, 304, 304,
304, 292, 305, 301, 301, 301, 305, 305, 305, 311,
294, 290, 303, 306, 306, 306, 307, 307, 307, 308,
308, 308, 309, 309, 309, 310, 310, 310, 0, 605,
312, 312, 312, 313, 313, 313, 314, 314, 314, 608,
311, 0, 303, 0, 615, 308, 315, 315, 315, 609,
311, 610, 306, 312, 0, 307, 316, 316, 316, 321,
605, 309, 319, 319, 319, 320, 320, 320, 313, 608,
617, 311, 323, 323, 323, 615, 308, 314, 0, 609,
311, 610, 306, 0, 312, 307, 611, 315, 612, 316,
321, 309, 614, 321, 622, 320, 0, 0, 313, 0,
321, 617, 0, 321, 322, 322, 322, 314, 324, 324,
324, 323, 325, 325, 325, 0, 611, 315, 612, 316,
0, 321, 614, 0, 321, 622, 320, 326, 326, 326,
321, 322, 327, 321, 324, 624, 327, 327, 327, 0,
0, 323, 328, 328, 328, 329, 329, 329, 332, 0,
324, 325, 628, 326, 330, 330, 330, 0, 331, 331,
331, 631, 322, 616, 0, 324, 624, 328, 333, 333,
333, 337, 337, 337, 332, 332, 338, 338, 338, 330,
324, 325, 332, 628, 326, 339, 339, 339, 332, 618,
619, 332, 631, 616, 337, 341, 341, 341, 328, 331,
340, 340, 340, 0, 621, 332, 332, 625, 626, 333,
330, 0, 0, 332, 342, 342, 342, 0, 332, 618,
619, 332, 344, 344, 344, 337, 340, 343, 0, 331,
632, 343, 343, 343, 621, 636, 341, 625, 626, 333,
345, 345, 345, 346, 346, 346, 347, 347, 347, 348,
348, 348, 353, 638, 349, 0, 450, 340, 349, 349,
349, 632, 640, 350, 344, 636, 341, 350, 350, 350,
351, 351, 351, 352, 352, 352, 354, 354, 354, 355,
355, 355, 348, 638, 346, 635, 353, 356, 356, 356,
348, 639, 640, 353, 344, 353, 358, 358, 358, 450,
353, 359, 359, 359, 450, 351, 360, 360, 360, 361,
361, 361, 348, 0, 346, 354, 635, 353, 0, 0,
348, 0, 639, 353, 0, 353, 363, 363, 363, 450,
353, 364, 364, 364, 450, 351, 642, 359, 367, 367,
367, 368, 368, 368, 643, 354, 0, 369, 369, 369,
361, 370, 370, 370, 371, 371, 371, 372, 372, 372,
0, 644, 363, 373, 373, 373, 642, 359, 374, 374,
374, 375, 375, 375, 643, 368, 371, 376, 376, 376,
361, 369, 377, 377, 377, 380, 380, 380, 378, 378,
378, 644, 363, 379, 379, 379, 381, 381, 381, 373,
646, 0, 374, 0, 0, 368, 0, 371, 0, 0,
375, 369, 378, 382, 382, 382, 0, 647, 380, 379,
383, 383, 383, 385, 385, 385, 386, 386, 386, 373,
658, 646, 374, 381, 387, 387, 387, 388, 388, 388,
375, 0, 0, 378, 389, 389, 389, 647, 380, 0,
379, 390, 390, 390, 391, 391, 391, 0, 385, 653,
387, 658, 0, 381, 388, 392, 392, 392, 385, 393,
393, 393, 394, 394, 394, 390, 0, 654, 391, 395,
395, 395, 396, 396, 396, 397, 397, 397, 385, 653,
0, 387, 398, 398, 398, 388, 0, 0, 385, 392,
394, 0, 393, 400, 400, 400, 390, 654, 403, 391,
403, 397, 399, 399, 399, 401, 401, 401, 402, 402,
402, 398, 0, 403, 403, 403, 404, 404, 404, 392,
0, 394, 393, 406, 406, 406, 0, 655, 399, 407,
407, 407, 397, 408, 408, 408, 409, 409, 409, 412,
412, 412, 398, 413, 413, 413, 414, 414, 414, 415,
415, 415, 416, 416, 416, 0, 404, 655, 0, 399,
419, 419, 419, 424, 424, 424, 430, 425, 425, 425,
0, 657, 412, 0, 416, 415, 426, 426, 426, 0,
0, 427, 427, 427, 413, 414, 404, 419, 428, 428,
428, 429, 429, 429, 662, 430, 671, 430, 431, 431,
431, 657, 412, 425, 427, 416, 415, 0, 0, 426,
430, 432, 432, 432, 413, 414, 0, 659, 419, 433,
433, 433, 0, 0, 428, 662, 430, 671, 430, 439,
439, 439, 0, 425, 672, 427, 442, 442, 442, 426,
430, 444, 444, 444, 447, 447, 447, 659, 446, 446,
446, 448, 448, 448, 428, 449, 449, 449, 0, 439,
0, 433, 457, 457, 457, 672, 0, 452, 452, 452,
462, 462, 462, 0, 0, 459, 459, 459, 469, 469,
469, 449, 463, 463, 463, 0, 460, 460, 460, 446,
439, 433, 443, 443, 0, 443, 462, 443, 443, 443,
443, 443, 443, 443, 443, 443, 443, 443, 452, 443,
459, 660, 449, 443, 443, 443, 443, 443, 443, 446,
460, 670, 674, 463, 464, 464, 464, 462, 465, 465,
465, 466, 466, 466, 467, 467, 467, 675, 452, 0,
459, 660, 468, 468, 468, 443, 443, 443, 443, 0,
460, 670, 674, 463, 465, 470, 470, 470, 472, 472,
472, 677, 0, 464, 678, 679, 466, 468, 675, 473,
473, 473, 474, 474, 474, 467, 475, 475, 475, 476,
476, 476, 681, 472, 0, 465, 477, 477, 477, 478,
478, 478, 677, 464, 678, 679, 466, 0, 468, 473,
694, 476, 479, 479, 479, 467, 474, 480, 480, 480,
481, 481, 481, 681, 472, 482, 482, 482, 477, 483,
483, 483, 484, 489, 489, 489, 484, 484, 484, 0,
473, 694, 476, 490, 490, 490, 474, 491, 491, 491,
492, 492, 492, 493, 493, 493, 0, 0, 477, 496,
496, 496, 502, 502, 502, 503, 503, 503, 504, 504,
504, 505, 505, 505, 510, 510, 510, 0, 516, 516,
516, 521, 521, 521, 0, 680, 502, 524, 524, 524,
0, 503, 525, 525, 525, 529, 529, 529, 535, 493,
0, 0, 535, 535, 535, 0, 505, 536, 536, 536,
537, 537, 537, 510, 516, 680, 551, 502, 0, 538,
538, 538, 503, 539, 539, 539, 540, 685, 688, 493,
540, 540, 540, 541, 541, 541, 505, 536, 544, 544,
544, 0, 0, 510, 516, 538, 545, 545, 545, 546,
546, 546, 547, 547, 547, 548, 548, 548, 688, 551,
556, 556, 556, 587, 551, 563, 563, 563, 536, 0,
0, 564, 564, 564, 0, 685, 538, 565, 565, 565,
570, 570, 570, 576, 576, 576, 689, 545, 698, 551,
587, 0, 691, 547, 551, 564, 588, 588, 588, 592,
592, 592, 593, 593, 593, 685, 587, 587, 603, 603,
603, 607, 607, 607, 652, 570, 689, 545, 576, 698,
0, 587, 691, 547, 0, 0, 564, 0, 593, 613,
613, 613, 627, 627, 627, 696, 587, 587, 630, 630,
630, 0, 0, 588, 0, 570, 652, 0, 576, 603,
637, 637, 637, 0, 652, 656, 656, 656, 627, 593,
0, 0, 0, 0, 0, 696, 0, 0, 0, 0,
0, 0, 0, 588, 0, 0, 0, 652, 0, 603,
0, 0, 0, 0, 652, 0, 0, 0, 0, 627,
701, 701, 701, 701, 701, 701, 701, 701, 701, 701,
702, 702, 702, 702, 702, 702, 702, 702, 702, 702,
703, 703, 703, 703, 703, 703, 703, 703, 703, 703,
704, 704, 0, 704, 704, 704, 704, 704, 704, 704,
705, 705, 705, 705, 705, 705, 705, 705, 705, 705,
706, 0, 706, 706, 706, 706, 707, 707, 0, 707,
707, 0, 707, 707, 707, 707, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 709, 709, 709, 709,
709, 709, 709, 709, 709, 709, 710, 710, 711, 711,
711, 711, 711, 711, 711, 711, 711, 711, 712, 0,
0, 0, 0, 0, 0, 712, 712, 713, 713, 0,
713, 713, 713, 713, 713, 713, 713, 714, 714, 0,
0, 714, 714, 714, 714, 714, 714, 715, 0, 0,
0, 0, 715, 715, 715, 715, 716, 716, 0, 0,
716, 716, 716, 716, 716, 716, 717, 717, 717, 717,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
700, 700, 700, 700
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int yy_flex_debug;
int yy_flex_debug = 0;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "token.l"
/* Tokens and token sequence arrays. */
#line 3 "token.l"
/* #includes */ /*{{{C}}}*//*{{{*/
#include <nuttx/config.h>
#include <assert.h>
#include <ctype.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include "auto.h"
#include "token.h"
#include "statement.h"
static int g_matchdata;
static int g_backslash_colon;
static int g_uppercase;
static struct Token *cur;
int yylex(void);
static void string(const char *text) /*{{{*/
{
if (cur)
{
const char *t;
char *q;
size_t l;
for (t=text+1,l=0; *(t+1); ++t,++l)
{
if (*t=='"') ++t;
}
cur->u.string=malloc(sizeof(struct String));
String_size(String_new(cur->u.string),l);
for (t=text+1,q=cur->u.string->character; *(t+1); ++t,++q)
{
*q=*t;
if (*t=='"') ++t;
}
}
}
/*}}}*/
static void string2(void) /*{{{*/
{
if (cur)
{
char *t,*q;
size_t l;
for (t=yytext+1,l=0; *t; ++t,++l)
{
if (*t=='"') ++t;
}
cur->u.string=malloc(sizeof(struct String));
String_size(String_new(cur->u.string),l);
for (t=yytext+1,q=cur->u.string->character; *t; ++t,++q)
{
*q=*t;
if (*t=='"') ++t;
}
}
}
/*}}}*/
/* flex options and definitions */ /*{{{*/
/*}}}*/
#line 1463 "<stdout>"
#define INITIAL 0
#define DATAINPUT 1
#define ELSEIF 2
#define IMAGEFMT 3
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
static int yy_init_globals (void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int yylex_destroy (void );
int yyget_debug (void );
void yyset_debug (int debug_flag );
YY_EXTRA_TYPE yyget_extra (void );
void yyset_extra (YY_EXTRA_TYPE user_defined );
FILE *yyget_in (void );
void yyset_in (FILE * in_str );
FILE *yyget_out (void );
void yyset_out (FILE * out_str );
yy_size_t yyget_leng (void );
char *yyget_text (void );
int yyget_lineno (void );
void yyset_lineno (int line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap (void );
#else
extern int yywrap (void );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * );
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void );
#else
static int input (void );
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* 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_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
size_t 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 \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
#endif
/* 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
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
/* end tables serialization structures and prototypes */
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* 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
/** The main scanner function which does all the work.
*/
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
if ( !(yy_init) )
{
(yy_init) = 1;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! YY_CURRENT_BUFFER ) {
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer(yyin,YY_BUF_SIZE );
}
yy_load_buffer_state( );
}
{
#line 102 "token.l"
/* flex rules */ /*{{{*/
if (g_matchdata) BEGIN(DATAINPUT);
#line 1683 "<stdout>"
while ( 1 ) /* loops until end-of-file is reached */
{
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_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = 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 >= 701 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 3041 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 )
{ /* have to back up */
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = (yy_hold_char);
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 106 "token.l"
return T_CHANNEL;
YY_BREAK
case 2:
YY_RULE_SETUP
#line 107 "token.l"
{
int overflow;
double d;
d=Value_vald(yytext,(char**)0,&overflow);
if (overflow)
{
if (cur) cur->u.junk=yytext[0];
yyless(1);
return T_JUNK;
}
if (cur) cur->u.real=d;
return T_REAL;
}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 121 "token.l"
{
int overflow;
long int n;
n=Value_vali(yytext,(char**)0,&overflow);
if (overflow)
{
double d;
d=Value_vald(yytext,(char**)0,&overflow);
if (overflow)
{
if (cur) cur->u.junk=yytext[0];
yyless(1);
return T_JUNK;
}
if (cur) cur->u.real=d;
return T_REAL;
}
if (cur) cur->u.integer=n;
return T_INTEGER;
}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 143 "token.l"
{
int overflow;
long int n;
n=Value_vali(yytext,(char**)0,&overflow);
if (overflow)
{
if (cur) cur->u.junk=yytext[0];
yyless(1);
return T_JUNK;
}
if (cur) cur->u.hexinteger=n;
return T_HEXINTEGER;
}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 157 "token.l"
{
int overflow;
long int n;
n=Value_vali(yytext,(char**)0,&overflow);
if (overflow)
{
if (cur) cur->u.junk=yytext[0];
yyless(1);
return T_JUNK;
}
if (cur) cur->u.octinteger=n;
return T_OCTINTEGER;
}
YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
#line 171 "token.l"
string(yytext); return T_STRING;
YY_BREAK
case 7:
/* rule 7 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 172 "token.l"
string2(); return T_STRING;
YY_BREAK
case 8:
YY_RULE_SETUP
#line 173 "token.l"
return T_OP;
YY_BREAK
case 9:
YY_RULE_SETUP
#line 174 "token.l"
return T_CP;
YY_BREAK
case 10:
YY_RULE_SETUP
#line 175 "token.l"
return T_MULT;
YY_BREAK
case 11:
YY_RULE_SETUP
#line 176 "token.l"
return T_PLUS;
YY_BREAK
case 12:
YY_RULE_SETUP
#line 177 "token.l"
return T_MINUS;
YY_BREAK
case 13:
YY_RULE_SETUP
#line 178 "token.l"
return T_COMMA;
YY_BREAK
case 14:
YY_RULE_SETUP
#line 179 "token.l"
return T_DIV;
YY_BREAK
case 15:
YY_RULE_SETUP
#line 180 "token.l"
{
if (g_backslash_colon)
{
if (cur) cur->statement=stmt_COLON_EOL;
return T_COLON;
}
return T_IDIV;
}
YY_BREAK
case 16:
YY_RULE_SETUP
#line 188 "token.l"
{
if (cur)
{
cur->statement=stmt_COLON_EOL;
}
return T_COLON;
}
YY_BREAK
case 17:
YY_RULE_SETUP
#line 195 "token.l"
return T_SEMICOLON;
YY_BREAK
case 18:
YY_RULE_SETUP
#line 196 "token.l"
return T_LT;
YY_BREAK
case 19:
YY_RULE_SETUP
#line 197 "token.l"
return T_LE;
YY_BREAK
case 20:
YY_RULE_SETUP
#line 198 "token.l"
return T_LE;
YY_BREAK
case 21:
YY_RULE_SETUP
#line 199 "token.l"
return T_NE;
YY_BREAK
case 22:
YY_RULE_SETUP
#line 200 "token.l"
{
if (cur)
{
cur->statement=stmt_EQ_FNRETURN_FNEND;
}
return T_EQ;
}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 207 "token.l"
return T_GT;
YY_BREAK
case 24:
YY_RULE_SETUP
#line 208 "token.l"
return T_GE;
YY_BREAK
case 25:
YY_RULE_SETUP
#line 209 "token.l"
return T_GE;
YY_BREAK
case 26:
YY_RULE_SETUP
#line 210 "token.l"
return T_POW;
YY_BREAK
case 27:
YY_RULE_SETUP
#line 211 "token.l"
return T_ACCESS_READ;
YY_BREAK
case 28:
YY_RULE_SETUP
#line 212 "token.l"
return T_ACCESS_READ_WRITE;
YY_BREAK
case 29:
YY_RULE_SETUP
#line 213 "token.l"
return T_ACCESS_WRITE;
YY_BREAK
case 30:
YY_RULE_SETUP
#line 214 "token.l"
return T_AND;
YY_BREAK
case 31:
YY_RULE_SETUP
#line 215 "token.l"
return T_AS;
YY_BREAK
case 32:
YY_RULE_SETUP
#line 216 "token.l"
{
if (cur)
{
cur->statement=stmt_CALL;
}
return T_CALL;
}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 223 "token.l"
{
if (cur)
{
cur->statement=stmt_CASE;
cur->u.casevalue=malloc(sizeof(struct Casevalue));
}
return T_CASEELSE;
}
YY_BREAK
case 34:
YY_RULE_SETUP
#line 231 "token.l"
{
if (cur)
{
cur->statement=stmt_CASE;
cur->u.casevalue=malloc(sizeof(struct Casevalue));
}
return T_CASEVALUE;
}
YY_BREAK
case 35:
YY_RULE_SETUP
#line 239 "token.l"
{
if (cur)
{
cur->statement=stmt_CHDIR_MKDIR;
}
return T_CHDIR;
}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 246 "token.l"
{
if (cur)
{
cur->statement=stmt_CLEAR;
}
return T_CLEAR;
}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 253 "token.l"
{
if (cur)
{
cur->statement=stmt_CLOSE;
}
return T_CLOSE;
}
YY_BREAK
case 38:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 5;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 260 "token.l"
{
if (cur)
{
cur->statement=stmt_CLOSE;
}
return T_CLOSE;
}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 267 "token.l"
{
if (cur)
{
cur->statement=stmt_CLS;
}
return T_CLS;
}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 274 "token.l"
{
if (cur)
{
cur->statement=stmt_COLOR;
}
return T_COLOR;
}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 281 "token.l"
return T_CON;
YY_BREAK
case 42:
YY_RULE_SETUP
#line 282 "token.l"
{
if (cur)
{
cur->statement=stmt_COPY_RENAME;
}
return T_COPY;
}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 289 "token.l"
{
BEGIN(DATAINPUT);
if (cur)
{
cur->statement=stmt_DATA;
}
return T_DATA;
}
YY_BREAK
case 44:
/* rule 44 can match eol */
YY_RULE_SETUP
#line 297 "token.l"
string(yytext); return T_STRING;
YY_BREAK
case 45:
/* rule 45 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 298 "token.l"
string2(); return T_STRING;
YY_BREAK
case 46:
YY_RULE_SETUP
#line 299 "token.l"
return T_COMMA;
YY_BREAK
case 47:
YY_RULE_SETUP
#line 300 "token.l"
{
if (cur) cur->u.datainput=strcpy(malloc(strlen(yytext)+1),yytext);
return T_DATAINPUT;
}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 304 "token.l"
YY_BREAK
case 49:
/* rule 49 can match eol */
YY_RULE_SETUP
#line 305 "token.l"
BEGIN(INITIAL);
YY_BREAK
case 50:
YY_RULE_SETUP
#line 306 "token.l"
BEGIN(INITIAL); return T_COLON;
YY_BREAK
case 51:
YY_RULE_SETUP
#line 307 "token.l"
{
if (cur)
{
cur->statement=stmt_DEC_INC;
}
return T_DEC;
}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 314 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFINT_DEFDBL_DEFSTR;
}
return T_DEFDBL;
}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 321 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFINT_DEFDBL_DEFSTR;
}
return T_DEFINT;
}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 328 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFINT_DEFDBL_DEFSTR;
}
return T_DEFSTR;
}
YY_BREAK
case 55:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 3;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 335 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFFN_DEFPROC_FUNCTION_SUB;
cur->u.localSyms=(struct Symbol*)0;
}
return T_DEFFN;
}
YY_BREAK
case 56:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 3;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 343 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFFN_DEFPROC_FUNCTION_SUB;
cur->u.localSyms=(struct Symbol*)0;
}
return T_DEFPROC;
}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 351 "token.l"
{
if (cur)
{
cur->statement=stmt_DELETE;
}
return T_DELETE;
}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 358 "token.l"
{
if (cur)
{
cur->statement=stmt_DIM;
}
return T_DIM;
}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 365 "token.l"
{
if (cur)
{
cur->statement=stmt_DISPLAY;
}
return T_DISPLAY;
}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 372 "token.l"
{
if (cur)
{
cur->statement=stmt_DO;
}
return T_DO;
}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 379 "token.l"
{
if (cur)
{
cur->statement=stmt_DOcondition;
}
return T_DOUNTIL;
}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 386 "token.l"
{
if (cur)
{
cur->statement=stmt_DOcondition;
}
return T_DOWHILE;
}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 393 "token.l"
{
if (cur)
{
cur->statement=stmt_EDIT;
}
return T_EDIT;
}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 400 "token.l"
{
if (cur)
{
cur->statement=stmt_ELSE_ELSEIFELSE;
}
return T_ELSE;
}
YY_BREAK
case 65:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 4;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 407 "token.l"
{
BEGIN(ELSEIF);
if (cur)
{
cur->statement=stmt_ELSE_ELSEIFELSE;
}
return T_ELSEIFELSE;
}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 415 "token.l"
{
BEGIN(INITIAL);
if (cur)
{
cur->statement=stmt_IF_ELSEIFIF;
}
return T_ELSEIFIF;
}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 423 "token.l"
{
if (cur)
{
cur->statement=stmt_ENDFN;
}
return T_ENDFN;
}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 430 "token.l"
{
if (cur)
{
cur->statement=stmt_ENDIF;
}
return T_ENDIF;
}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 437 "token.l"
{
if (cur)
{
cur->statement=stmt_ENDPROC_SUBEND;
}
return T_ENDPROC;
}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 444 "token.l"
{
if (cur)
{
cur->statement=stmt_ENDSELECT;
}
return T_ENDSELECT;
}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 451 "token.l"
{
if (cur)
{
cur->statement=stmt_ENDPROC_SUBEND;
}
return T_SUBEND;
}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 458 "token.l"
{
if (cur)
{
cur->statement=stmt_END;
}
return T_END;
}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 465 "token.l"
{
if (cur)
{
cur->statement=stmt_ENVIRON;
}
return T_ENVIRON;
}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 472 "token.l"
{
if (cur)
{
cur->statement=stmt_ERASE;
}
return T_ERASE;
}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 479 "token.l"
return T_EQV;
YY_BREAK
case 76:
YY_RULE_SETUP
#line 480 "token.l"
{
if (cur)
{
cur->statement=stmt_EXITDO;
}
return T_EXITDO;
}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 487 "token.l"
{
if (cur)
{
cur->statement=stmt_EXITFOR;
}
return T_EXITFOR;
}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 494 "token.l"
{
if (cur)
{
cur->statement=stmt_FNEXIT;
}
return T_FNEXIT;
}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 501 "token.l"
{
if (cur)
{
cur->statement=stmt_SUBEXIT;
}
return T_SUBEXIT;
}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 508 "token.l"
{
if (cur)
{
cur->statement=stmt_FIELD;
}
return T_FIELD;
}
YY_BREAK
case 81:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 5;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 515 "token.l"
{
if (cur)
{
cur->statement=stmt_FIELD;
}
return T_FIELD;
}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 522 "token.l"
{
if (cur)
{
cur->statement=stmt_EQ_FNRETURN_FNEND;
}
return T_FNEND;
}
YY_BREAK
case 83:
YY_RULE_SETUP
#line 529 "token.l"
{
if (cur)
{
cur->statement=stmt_EQ_FNRETURN_FNEND;
}
return T_FNRETURN;
}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 536 "token.l"
{
if (cur)
{
cur->statement=stmt_FOR;
}
return T_FOR;
}
YY_BREAK
case 85:
YY_RULE_SETUP
#line 543 "token.l"
return T_FOR_INPUT;
YY_BREAK
case 86:
YY_RULE_SETUP
#line 544 "token.l"
return T_FOR_OUTPUT;
YY_BREAK
case 87:
YY_RULE_SETUP
#line 545 "token.l"
return T_FOR_APPEND;
YY_BREAK
case 88:
YY_RULE_SETUP
#line 546 "token.l"
return T_FOR_RANDOM;
YY_BREAK
case 89:
YY_RULE_SETUP
#line 547 "token.l"
return T_FOR_BINARY;
YY_BREAK
case 90:
YY_RULE_SETUP
#line 548 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFFN_DEFPROC_FUNCTION_SUB;
cur->u.localSyms=(struct Symbol*)0;
}
return T_FUNCTION;
}
YY_BREAK
case 91:
YY_RULE_SETUP
#line 556 "token.l"
{
if (cur)
{
cur->statement=stmt_GET_PUT;
}
return T_GET;
}
YY_BREAK
case 92:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 3;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 563 "token.l"
{
if (cur)
{
cur->statement=stmt_GET_PUT;
}
return T_GET;
}
YY_BREAK
case 93:
YY_RULE_SETUP
#line 570 "token.l"
{
if (cur)
{
cur->statement=stmt_GOSUB;
}
return T_GOSUB;
}
YY_BREAK
case 94:
YY_RULE_SETUP
#line 577 "token.l"
{
if (cur)
{
cur->statement=stmt_RESUME_GOTO;
}
return T_GOTO;
}
YY_BREAK
case 95:
YY_RULE_SETUP
#line 584 "token.l"
return T_IDN;
YY_BREAK
case 96:
YY_RULE_SETUP
#line 585 "token.l"
{
if (cur)
{
cur->statement=stmt_IF_ELSEIFIF;
}
return T_IF;
}
YY_BREAK
case 97:
*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 592 "token.l"
{
BEGIN(IMAGEFMT);
if (cur)
{
cur->statement=stmt_IMAGE;
}
return T_IMAGE;
}
YY_BREAK
case 98:
*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 600 "token.l"
{
BEGIN(INITIAL);
if (cur)
{
size_t l;
l=strlen(yytext);
cur->u.string=malloc(sizeof(struct String));
String_size(String_new(cur->u.string),l);
memcpy(cur->u.string->character,yytext,l);
}
return T_STRING;
}
YY_BREAK
case 99:
YY_RULE_SETUP
#line 613 "token.l"
{
if (cur)
{
cur->statement=stmt_IMAGE;
}
return T_IMAGE;
}
YY_BREAK
case 100:
YY_RULE_SETUP
#line 620 "token.l"
return T_IMP;
YY_BREAK
case 101:
YY_RULE_SETUP
#line 621 "token.l"
{
if (cur)
{
cur->statement=stmt_DEC_INC;
}
return T_INC;
}
YY_BREAK
case 102:
YY_RULE_SETUP
#line 628 "token.l"
{
if (cur)
{
cur->statement=stmt_INPUT;
}
return T_INPUT;
}
YY_BREAK
case 103:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 5;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 635 "token.l"
{
if (cur)
{
cur->statement=stmt_INPUT;
}
return T_INPUT;
}
YY_BREAK
case 104:
YY_RULE_SETUP
#line 642 "token.l"
return T_INV;
YY_BREAK
case 105:
YY_RULE_SETUP
#line 643 "token.l"
return T_IS;
YY_BREAK
case 106:
YY_RULE_SETUP
#line 644 "token.l"
{
if (cur)
{
cur->statement=stmt_KILL;
}
return T_KILL;
}
YY_BREAK
case 107:
YY_RULE_SETUP
#line 651 "token.l"
{
if (cur)
{
cur->statement=stmt_LET;
}
return T_LET;
}
YY_BREAK
case 108:
YY_RULE_SETUP
#line 658 "token.l"
{
if (cur)
{
cur->statement=stmt_LIST_LLIST;
}
return T_LIST;
}
YY_BREAK
case 109:
YY_RULE_SETUP
#line 665 "token.l"
{
if (cur)
{
cur->statement=stmt_LIST_LLIST;
}
return T_LLIST;
}
YY_BREAK
case 110:
YY_RULE_SETUP
#line 672 "token.l"
{
if (cur)
{
cur->statement=stmt_LOAD;
}
return T_LOAD;
}
YY_BREAK
case 111:
YY_RULE_SETUP
#line 679 "token.l"
{
if (cur)
{
cur->statement=stmt_LOCAL;
}
return T_LOCAL;
}
YY_BREAK
case 112:
YY_RULE_SETUP
#line 686 "token.l"
{
if (cur)
{
cur->statement=stmt_LOCATE;
}
return T_LOCATE;
}
YY_BREAK
case 113:
YY_RULE_SETUP
#line 693 "token.l"
{
if (cur)
{
cur->statement=stmt_LOCK_UNLOCK;
}
return T_LOCK;
}
YY_BREAK
case 114:
YY_RULE_SETUP
#line 700 "token.l"
return T_LOCK_READ;
YY_BREAK
case 115:
YY_RULE_SETUP
#line 701 "token.l"
return T_LOCK_WRITE;
YY_BREAK
case 116:
YY_RULE_SETUP
#line 702 "token.l"
{
if (cur)
{
cur->statement=stmt_LOOP;
}
return T_LOOP;
}
YY_BREAK
case 117:
YY_RULE_SETUP
#line 709 "token.l"
{
if (cur)
{
cur->statement=stmt_LOOPUNTIL;
}
return T_LOOPUNTIL;
}
YY_BREAK
case 118:
YY_RULE_SETUP
#line 716 "token.l"
{
if (cur)
{
cur->statement=stmt_PRINT_LPRINT;
}
return T_LPRINT;
}
YY_BREAK
case 119:
YY_RULE_SETUP
#line 723 "token.l"
{
if (cur)
{
cur->statement=stmt_LSET_RSET;
}
return T_LSET;
}
YY_BREAK
case 120:
YY_RULE_SETUP
#line 730 "token.l"
{
if (cur)
{
cur->statement=stmt_MATINPUT;
}
return T_MATINPUT;
}
YY_BREAK
case 121:
YY_RULE_SETUP
#line 737 "token.l"
{
if (cur)
{
cur->statement=stmt_MATPRINT;
}
return T_MATPRINT;
}
YY_BREAK
case 122:
YY_RULE_SETUP
#line 744 "token.l"
{
if (cur)
{
cur->statement=stmt_MATREAD;
}
return T_MATREAD;
}
YY_BREAK
case 123:
YY_RULE_SETUP
#line 751 "token.l"
{
if (cur)
{
cur->statement=stmt_MATREDIM;
}
return T_MATREDIM;
}
YY_BREAK
case 124:
YY_RULE_SETUP
#line 758 "token.l"
{
if (cur)
{
cur->statement=stmt_MATWRITE;
}
return T_MATWRITE;
}
YY_BREAK
case 125:
YY_RULE_SETUP
#line 765 "token.l"
{
if (cur)
{
cur->statement=stmt_MAT;
}
return T_MAT;
}
YY_BREAK
case 126:
YY_RULE_SETUP
#line 772 "token.l"
{
if (cur)
{
cur->statement=stmt_CHDIR_MKDIR;
}
return T_MKDIR;
}
YY_BREAK
case 127:
YY_RULE_SETUP
#line 779 "token.l"
return T_MOD;
YY_BREAK
case 128:
YY_RULE_SETUP
#line 780 "token.l"
{
if (cur)
{
cur->statement=stmt_NEW;
}
return T_NEW;
}
YY_BREAK
case 129:
YY_RULE_SETUP
#line 787 "token.l"
{
if (cur)
{
cur->statement=stmt_NAME;
}
return T_NAME;
}
YY_BREAK
case 130:
YY_RULE_SETUP
#line 794 "token.l"
{
if (cur)
{
cur->statement=stmt_NEXT;
cur->u.next=malloc(sizeof(struct Next));
}
return T_NEXT;
}
YY_BREAK
case 131:
YY_RULE_SETUP
#line 802 "token.l"
return T_NOT;
YY_BREAK
case 132:
YY_RULE_SETUP
#line 803 "token.l"
{
if (cur)
{
cur->statement=stmt_ONERROROFF;
}
return T_ONERROROFF;
}
YY_BREAK
case 133:
YY_RULE_SETUP
#line 810 "token.l"
{
if (cur)
{
cur->statement=stmt_ONERRORGOTO0;
}
return T_ONERRORGOTO0;
}
YY_BREAK
case 134:
YY_RULE_SETUP
#line 817 "token.l"
{
if (cur)
{
cur->statement=stmt_ONERROR;
}
return T_ONERROR;
}
YY_BREAK
case 135:
YY_RULE_SETUP
#line 824 "token.l"
{
if (cur)
{
cur->statement=stmt_ON;
cur->u.on.pcLength=1;
cur->u.on.pc=(struct Pc*)0;
}
return T_ON;
}
YY_BREAK
case 136:
YY_RULE_SETUP
#line 833 "token.l"
{
if (cur)
{
cur->statement=stmt_OPEN;
}
return T_OPEN;
}
YY_BREAK
case 137:
YY_RULE_SETUP
#line 840 "token.l"
{
if (cur)
{
cur->statement=stmt_OPTIONBASE;
}
return T_OPTIONBASE;
}
YY_BREAK
case 138:
YY_RULE_SETUP
#line 847 "token.l"
{
if (cur)
{
cur->statement=stmt_OPTIONRUN;
}
return T_OPTIONRUN;
}
YY_BREAK
case 139:
YY_RULE_SETUP
#line 854 "token.l"
{
if (cur)
{
cur->statement=stmt_OPTIONSTOP;
}
return T_OPTIONSTOP;
}
YY_BREAK
case 140:
YY_RULE_SETUP
#line 861 "token.l"
return T_OR;
YY_BREAK
case 141:
YY_RULE_SETUP
#line 862 "token.l"
{
if (cur)
{
cur->statement=stmt_OUT_POKE;
}
return T_OUT;
}
YY_BREAK
case 142:
YY_RULE_SETUP
#line 869 "token.l"
{
if (cur)
{
cur->statement=stmt_PRINT_LPRINT;
}
return T_PRINT;
}
YY_BREAK
case 143:
*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 876 "token.l"
{
if (cur)
{
cur->statement=stmt_PRINT_LPRINT;
}
return T_PRINT;
}
YY_BREAK
case 144:
YY_RULE_SETUP
#line 883 "token.l"
{
if (cur)
{
cur->statement=stmt_OUT_POKE;
}
return T_POKE;
}
YY_BREAK
case 145:
YY_RULE_SETUP
#line 890 "token.l"
{
if (cur)
{
cur->statement=stmt_GET_PUT;
}
return T_PUT;
}
YY_BREAK
case 146:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 3;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 897 "token.l"
{
if (cur)
{
cur->statement=stmt_GET_PUT;
}
return T_PUT;
}
YY_BREAK
case 147:
YY_RULE_SETUP
#line 904 "token.l"
{
if (cur)
{
cur->statement=stmt_RANDOMIZE;
}
return T_RANDOMIZE;
}
YY_BREAK
case 148:
YY_RULE_SETUP
#line 911 "token.l"
{
if (cur)
{
cur->statement=stmt_READ;
}
return T_READ;
}
YY_BREAK
case 149:
YY_RULE_SETUP
#line 918 "token.l"
{
if (cur)
{
cur->statement=stmt_RENUM;
}
return T_RENUM;
}
YY_BREAK
case 150:
YY_RULE_SETUP
#line 925 "token.l"
{
if (cur)
{
cur->statement=stmt_REPEAT;
}
return T_REPEAT;
}
YY_BREAK
case 151:
YY_RULE_SETUP
#line 932 "token.l"
{
if (cur)
{
cur->statement=stmt_RESTORE;
}
return T_RESTORE;
}
YY_BREAK
case 152:
YY_RULE_SETUP
#line 939 "token.l"
{
if (cur)
{
cur->statement=stmt_RESUME_GOTO;
}
return T_RESUME;
}
YY_BREAK
case 153:
YY_RULE_SETUP
#line 946 "token.l"
{
if (cur)
{
cur->statement=stmt_RETURN;
}
return T_RETURN;
}
YY_BREAK
case 154:
YY_RULE_SETUP
#line 953 "token.l"
{
if (cur)
{
cur->statement=stmt_LSET_RSET;
}
return T_RSET;
}
YY_BREAK
case 155:
YY_RULE_SETUP
#line 960 "token.l"
{
if (cur)
{
cur->statement=stmt_RUN;
}
return T_RUN;
}
YY_BREAK
case 156:
YY_RULE_SETUP
#line 967 "token.l"
{
if (cur)
{
cur->statement=stmt_SAVE;
}
return T_SAVE;
}
YY_BREAK
case 157:
YY_RULE_SETUP
#line 974 "token.l"
{
if (cur)
{
cur->statement=stmt_SELECTCASE;
cur->u.selectcase=malloc(sizeof(struct Selectcase));
}
return T_SELECTCASE;
}
YY_BREAK
case 158:
YY_RULE_SETUP
#line 982 "token.l"
return T_SHARED;
YY_BREAK
case 159:
YY_RULE_SETUP
#line 983 "token.l"
{
if (cur)
{
cur->statement=stmt_SHELL;
}
return T_SHELL;
}
YY_BREAK
case 160:
YY_RULE_SETUP
#line 990 "token.l"
{
if (cur)
{
cur->statement=stmt_SLEEP;
}
return T_SLEEP;
}
YY_BREAK
case 161:
YY_RULE_SETUP
#line 997 "token.l"
return T_SPC;
YY_BREAK
case 162:
YY_RULE_SETUP
#line 998 "token.l"
return T_STEP;
YY_BREAK
case 163:
YY_RULE_SETUP
#line 999 "token.l"
{
if (cur)
{
cur->statement=stmt_STOP;
}
return T_STOP;
}
YY_BREAK
case 164:
YY_RULE_SETUP
#line 1006 "token.l"
{
if (cur)
{
cur->statement=stmt_ENDPROC_SUBEND;
}
return T_SUBEND;
}
YY_BREAK
case 165:
YY_RULE_SETUP
#line 1013 "token.l"
{
if (cur)
{
cur->statement=stmt_SUBEXIT;
}
return T_SUBEXIT;
}
YY_BREAK
case 166:
YY_RULE_SETUP
#line 1020 "token.l"
{
if (cur)
{
cur->statement=stmt_DEFFN_DEFPROC_FUNCTION_SUB;
cur->u.localSyms=(struct Symbol*)0;
}
return T_SUB;
}
YY_BREAK
case 167:
YY_RULE_SETUP
#line 1028 "token.l"
{
if (cur)
{
cur->statement=stmt_SWAP;
}
return T_SWAP;
}
YY_BREAK
case 168:
YY_RULE_SETUP
#line 1035 "token.l"
{
if (cur)
{
cur->statement=stmt_SYSTEM;
}
return T_SYSTEM;
}
YY_BREAK
case 169:
YY_RULE_SETUP
#line 1042 "token.l"
return T_THEN;
YY_BREAK
case 170:
YY_RULE_SETUP
#line 1043 "token.l"
return T_TAB;
YY_BREAK
case 171:
YY_RULE_SETUP
#line 1044 "token.l"
return T_TO;
YY_BREAK
case 172:
YY_RULE_SETUP
#line 1045 "token.l"
return T_TRN;
YY_BREAK
case 173:
YY_RULE_SETUP
#line 1046 "token.l"
{
if (cur)
{
cur->statement=stmt_TROFF;
}
return T_TROFF;
}
YY_BREAK
case 174:
YY_RULE_SETUP
#line 1053 "token.l"
{
if (cur)
{
cur->statement=stmt_TRON;
}
return T_TRON;
}
YY_BREAK
case 175:
YY_RULE_SETUP
#line 1060 "token.l"
{
if (cur)
{
cur->statement=stmt_TRUNCATE;
}
return T_TRUNCATE;
}
YY_BREAK
case 176:
YY_RULE_SETUP
#line 1067 "token.l"
{
if (cur)
{
cur->statement=stmt_LOCK_UNLOCK;
}
return T_UNLOCK;
}
YY_BREAK
case 177:
YY_RULE_SETUP
#line 1074 "token.l"
{
if (cur)
{
cur->statement=stmt_UNNUM;
}
return T_UNNUM;
}
YY_BREAK
case 178:
YY_RULE_SETUP
#line 1081 "token.l"
{
if (cur)
{
cur->statement=stmt_UNTIL;
}
return T_UNTIL;
}
YY_BREAK
case 179:
YY_RULE_SETUP
#line 1088 "token.l"
return T_USING;
YY_BREAK
case 180:
YY_RULE_SETUP
#line 1089 "token.l"
{
if (cur)
{
cur->statement=stmt_WAIT;
}
return T_WAIT;
}
YY_BREAK
case 181:
YY_RULE_SETUP
#line 1096 "token.l"
{
if (cur)
{
cur->statement=stmt_WEND;
cur->u.whilepc=malloc(sizeof(struct Pc));
}
return T_WEND;
}
YY_BREAK
case 182:
YY_RULE_SETUP
#line 1104 "token.l"
{
if (cur)
{
cur->statement=stmt_WHILE;
cur->u.afterwend=malloc(sizeof(struct Pc));
}
return T_WHILE;
}
YY_BREAK
case 183:
YY_RULE_SETUP
#line 1112 "token.l"
{
if (cur)
{
cur->statement=stmt_WIDTH;
}
return T_WIDTH;
}
YY_BREAK
case 184:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 5;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 1119 "token.l"
{
if (cur)
{
cur->statement=stmt_WIDTH;
}
return T_WIDTH;
}
YY_BREAK
case 185:
YY_RULE_SETUP
#line 1126 "token.l"
{
if (cur)
{
cur->statement=stmt_WRITE;
}
return T_WRITE;
}
YY_BREAK
case 186:
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp = yy_bp + 5;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 1133 "token.l"
{
if (cur)
{
cur->statement=stmt_WRITE;
}
return T_WRITE;
}
YY_BREAK
case 187:
YY_RULE_SETUP
#line 1140 "token.l"
return T_XOR;
YY_BREAK
case 188:
YY_RULE_SETUP
#line 1141 "token.l"
{
if (cur)
{
cur->statement=stmt_XREF;
}
return T_XREF;
}
YY_BREAK
case 189:
YY_RULE_SETUP
#line 1148 "token.l"
return T_ZER;
YY_BREAK
case 190:
YY_RULE_SETUP
#line 1149 "token.l"
{
if (cur)
{
cur->statement=stmt_ZONE;
}
return T_ZONE;
}
YY_BREAK
case 191:
YY_RULE_SETUP
#line 1156 "token.l"
{
if (cur)
{
cur->statement=stmt_QUOTE_REM;
cur->u.rem=strcpy(malloc(strlen(yytext+3)+1),yytext+3);
}
return T_REM;
}
YY_BREAK
case 192:
YY_RULE_SETUP
#line 1164 "token.l"
{
if (cur)
{
cur->statement=stmt_COPY_RENAME;
}
return T_RENAME;
}
YY_BREAK
case 193:
YY_RULE_SETUP
#line 1171 "token.l"
{
if (cur)
{
cur->statement=stmt_QUOTE_REM;
strcpy(cur->u.rem=malloc(strlen(yytext+1)+1),yytext+1);
}
return T_QUOTE;
}
YY_BREAK
case 194:
YY_RULE_SETUP
#line 1179 "token.l"
{
if (cur)
{
cur->statement=stmt_LINEINPUT;
}
return T_LINEINPUT;
}
YY_BREAK
case 195:
YY_RULE_SETUP
#line 1186 "token.l"
{
if (cur)
{
size_t len;
char *s;
int fn;
cur->statement=stmt_IDENTIFIER;
if (tolower(yytext[0])=='f' && tolower(yytext[1])=='n')
{
for (len=2,s=&yytext[2]; *s==' ' || *s=='\t'; ++s);
fn=1;
}
else
{
len=0;
s=yytext;
fn=0;
}
len+=strlen(s);
cur->u.identifier=malloc(offsetof(struct Identifier,name)+len+1);
if (fn)
{
memcpy(cur->u.identifier->name,yytext,2);
strcpy(cur->u.identifier->name+2,s);
}
else
{
strcpy(cur->u.identifier->name,s);
}
switch (yytext[yyleng-1])
{
case '$': cur->u.identifier->defaultType=V_STRING; break;
case '%': cur->u.identifier->defaultType=V_INTEGER; break;
default: cur->u.identifier->defaultType=V_REAL; break;
}
}
return T_IDENTIFIER;
}
YY_BREAK
case 196:
/* rule 196 can match eol */
YY_RULE_SETUP
#line 1225 "token.l"
YY_BREAK
case 197:
YY_RULE_SETUP
#line 1226 "token.l"
{
if (cur) cur->u.junk=yytext[0];
return T_JUNK;
}
YY_BREAK
/*}}}*/
case 198:
YY_RULE_SETUP
#line 1231 "token.l"
ECHO;
YY_BREAK
#line 3711 "<stdout>"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(DATAINPUT):
case YY_STATE_EOF(ELSEIF):
case YY_STATE_EOF(IMAGEFMT):
yyterminate();
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_LVALUE->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_LVALUE->yy_n_chars;
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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);
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_LVALUE->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 user's declarations */
} /* end of yylex */
/* 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
*/
static int yy_get_next_buffer (void)
{
register char *dest = YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE->yy_n_chars = (yy_n_chars) = 0;
else
{
yy_size_t num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
yy_size_t 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. */
yyrealloc((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_LVALUE->yy_buf_size -
number_to_move - 1;
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
(yy_n_chars), num_to_read );
YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
}
(yy_n_chars) += number_to_move;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
return ret_val;
}
/* yy_get_previous_state - get the state just before the EOB char was reached */
static yy_state_type yy_get_previous_state (void)
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = (yy_start);
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);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = 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 >= 701 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
}
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 );
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
register int yy_is_jam;
register char *yy_cp = (yy_c_buf_p);
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = 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 >= 701 )
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 == 700);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
#else
static int input (void)
#endif
{
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_LVALUE->yy_ch_buf[(yy_n_chars)] )
/* This was really a NUL. */
*(yy_c_buf_p) = '\0';
else
{ /* need more input */
yy_size_t 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 );
/*FALLTHROUGH*/
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);
return c;
}
#endif /* ifndef YY_NO_INPUT */
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
*
* @note This function does not reset the start condition to @c INITIAL .
*/
void yyrestart (FILE * input_file )
{
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer(yyin,YY_BUF_SIZE );
}
yy_init_buffer(YY_CURRENT_BUFFER,input_file );
yy_load_buffer_state( );
}
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
/* TODO. We should be able to replace this entire function body
* with
* yypop_buffer_state();
* yypush_buffer_state(new_buffer);
*/
yyensure_buffer_stack ();
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_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
YY_CURRENT_BUFFER_LVALUE = 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;
}
static void yy_load_buffer_state (void)
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
(yy_hold_char) = *(yy_c_buf_p);
}
/** Allocate and initialize an input buffer state.
* @param file A readable stream.
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
*
* @return the allocated buffer state.
*/
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc(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 *) yyalloc(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;
}
/** Destroy the buffer.
* @param b a buffer created with yy_create_buffer()
*
*/
void yy_delete_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
return;
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yyfree((void *) b->yy_ch_buf );
yyfree((void *) b );
}
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
*/
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
{
int oerrno = errno;
yy_flush_buffer(b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
/* If b is the current buffer, then yy_init_buffer was _probably_
* called from yyrestart() or through yy_get_next_buffer.
* In that case, we don't want to reset the lineno or column.
*/
if (b != YY_CURRENT_BUFFER)
{
b->yy_bs_lineno = 1;
b->yy_bs_column = 0;
}
#ifdef CONFIG_SERIAL_TERMIOS
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#else
b->yy_is_interactive = 1;
#endif
errno = oerrno;
}
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
void yy_flush_buffer (YY_BUFFER_STATE b )
{
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( );
}
/** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
*
*/
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
{
if (new_buffer == NULL)
return;
yyensure_buffer_stack();
/* This block is copied from yy_switch_to_buffer. */
if ( YY_CURRENT_BUFFER )
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
/* Only push if top exists. Otherwise, replace top. */
if (YY_CURRENT_BUFFER)
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
*/
void yypop_buffer_state (void)
{
if (!YY_CURRENT_BUFFER)
return;
yy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
static void yyensure_buffer_stack (void)
{
yy_size_t num_to_alloc;
if (!(yy_buffer_stack)) {
/* First allocation is just for 2 elements, since we don't know if this
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
num_to_alloc = 1;
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
}
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
int grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
((yy_buffer_stack),
num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
/* zero only the new slots.*/
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
}
}
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
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) yyalloc(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;
}
/** Setup the input buffer state to scan a string. The next call to yylex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
*
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
{
return yy_scan_bytes(yystr,strlen(yystr) );
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
yy_size_t i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
buf = (char *) yyalloc(n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < _yybytes_len; ++i )
buf[i] = yybytes[i];
buf[_yybytes_len] = buf[_yybytes_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;
}
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
static void yy_fatal_error (yyconst char* msg )
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
/* Accessor methods (get/set functions) to struct members. */
/** Get the current line number.
*
*/
int yyget_lineno (void)
{
return yylineno;
}
/** Get the input stream.
*
*/
FILE *yyget_in (void)
{
return yyin;
}
/** Get the output stream.
*
*/
FILE *yyget_out (void)
{
return yyout;
}
/** Get the length of the current token.
*
*/
yy_size_t yyget_leng (void)
{
return yyleng;
}
/** Get the current token.
*
*/
char *yyget_text (void)
{
return yytext;
}
/** Set the current line number.
* @param line_number
*
*/
void yyset_lineno (int line_number )
{
yylineno = line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param in_str A readable stream.
*
* @see yy_switch_to_buffer
*/
void yyset_in (FILE * in_str )
{
yyin = in_str ;
}
void yyset_out (FILE * out_str )
{
yyout = out_str ;
}
int yyget_debug (void)
{
return yy_flex_debug;
}
void yyset_debug (int bdebug )
{
yy_flex_debug = bdebug ;
}
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
* This function is called from yylex_destroy(), so don't allocate here.
*/
(yy_buffer_stack) = 0;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
(yy_c_buf_p) = (char *) 0;
(yy_init) = 0;
(yy_start) = 0;
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
yyout = stdout;
#else
yyin = (FILE *) 0;
yyout = (FILE *) 0;
#endif
/* For future reference: Set errno on error, since we are called by
* yylex_init()
*/
return 0;
}
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state();
}
/* Destroy the stack itself. */
yyfree((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
yy_init_globals( );
return 0;
}
/*
* Internal utility routines.
*/
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
void *yyalloc (yy_size_t size )
{
return (void *) malloc( size );
}
void *yyrealloc (void * ptr, yy_size_t size )
{
/* 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 );
}
void yyfree (void * ptr )
{
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
#line 1230 "token.l"
int g_token_property[T_LASTTOKEN];
struct Token *Token_newCode(const char *ln) /*{{{*/
{
int l,lasttok,thistok,addNumber=0,sawif;
struct Token *result;
YY_BUFFER_STATE buf;
cur=(struct Token*)0;
buf=yy_scan_string(ln);
/* determine number of tokens */ /*{{{*/
g_matchdata=sawif=0;
for (lasttok=T_EOL,l=1; (thistok=yylex()); ++l)
{
if (l==1 && thistok!=T_INTEGER) { addNumber=1; ++l; }
if ((lasttok==T_THEN || lasttok==T_ELSE) && thistok==T_INTEGER) ++l;
if (thistok==T_IF) sawif=1;
if (thistok==T_THEN) sawif=0;
if (thistok==T_GOTO && sawif) ++l;
lasttok=thistok;
}
if (l==1) { addNumber=1; ++l; }
/*}}}*/
yy_delete_buffer(buf);
cur=result=malloc(sizeof(struct Token)*l);
if (addNumber)
{
cur->type=T_UNNUMBERED;
++cur;
}
buf=yy_scan_string(ln);
lasttok=T_EOL;
g_matchdata=sawif=0;
while (cur->statement=NULL,(cur->type=yylex()))
{
if (cur->type==T_IF) sawif=1;
if (cur->type==T_THEN) sawif=0;
if (cur->type==T_GOTO && sawif)
{
sawif=0;
*(cur+1)=*cur;
cur->type=T_THEN;
lasttok=T_GOTO;
cur+=2;
}
else if ((lasttok==T_THEN || lasttok==T_ELSE) && cur->type==T_INTEGER)
{
*(cur+1)=*cur;
cur->type=T_GOTO;
cur->statement=stmt_RESUME_GOTO;
lasttok=T_INTEGER;
cur+=2;
}
else
{
lasttok=cur->type;
++cur;
}
}
cur->type=T_EOL;
cur->statement=stmt_COLON_EOL;
yy_delete_buffer(buf);
return result;
}
/*}}}*/
struct Token *Token_newData(const char *ln) /*{{{*/
{
int l;
struct Token *result;
YY_BUFFER_STATE buf;
cur=(struct Token*)0;
buf=yy_scan_string(ln);
g_matchdata=1;
for (l=1; yylex(); ++l);
yy_delete_buffer(buf);
cur=result=malloc(sizeof(struct Token)*l);
buf=yy_scan_string(ln);
g_matchdata=1;
while (cur->statement=NULL,(cur->type=yylex())) ++cur;
cur->type=T_EOL;
cur->statement=stmt_COLON_EOL;
yy_delete_buffer(buf);
return result;
}
/*}}}*/
void Token_destroy(struct Token *token) /*{{{*/
{
struct Token *r=token;
do
{
switch (r->type)
{
case T_ACCESS_READ: break;
case T_ACCESS_WRITE: break;
case T_AND: break;
case T_AS: break;
case T_CALL: break;
case T_CASEELSE:
case T_CASEVALUE: free(r->u.casevalue); break;
case T_CHANNEL: break;
case T_CHDIR: break;
case T_CLEAR: break;
case T_CLOSE: break;
case T_CLS: break;
case T_COLON: break;
case T_COLOR: break;
case T_COMMA: break;
case T_CON: break;
case T_COPY: break;
case T_CP: break;
case T_DATA: break;
case T_DATAINPUT: free(r->u.datainput); break;
case T_DEC: break;
case T_DEFFN: break;
case T_DEFDBL: break;
case T_DEFINT: break;
case T_DEFPROC: break;
case T_DEFSTR: break;
case T_DELETE: break;
case T_DIM: break;
case T_DISPLAY: break;
case T_DIV: break;
case T_DO: break;
case T_DOUNTIL: break;
case T_DOWHILE: break;
case T_EDIT: break;
case T_ELSE: break;
case T_ELSEIFELSE: break;
case T_ELSEIFIF: break;
case T_END: break;
case T_ENDFN: break;
case T_ENDIF: break;
case T_ENDPROC: break;
case T_ENDSELECT: break;
case T_ENVIRON: break;
case T_EOL: break;
case T_EQ: break;
case T_EQV: break;
case T_ERASE: break;
case T_EXITDO: break;
case T_EXITFOR: break;
case T_FIELD: break;
case T_FNEND: break;
case T_FNEXIT: break;
case T_FNRETURN: break;
case T_FOR: break;
case T_FOR_INPUT: break;
case T_FOR_OUTPUT: break;
case T_FOR_APPEND: break;
case T_FOR_RANDOM: break;
case T_FOR_BINARY: break;
case T_FUNCTION: break;
case T_GE: break;
case T_GET: break;
case T_GOSUB: break;
case T_GOTO: break;
case T_GT: break;
case T_HEXINTEGER: break;
case T_OCTINTEGER: break;
case T_IDENTIFIER: free(r->u.identifier); break;
case T_IDIV: break;
case T_IDN: break;
case T_IF: break;
case T_IMAGE: break;
case T_IMP: break;
case T_INC: break;
case T_INPUT: break;
case T_INTEGER: break;
case T_INV: break;
case T_IS: break;
case T_JUNK: break;
case T_KILL: break;
case T_LE: break;
case T_LET: break;
case T_LINEINPUT: break;
case T_LIST: break;
case T_LLIST: break;
case T_LOAD: break;
case T_LOCAL: break;
case T_LOCATE: break;
case T_LOCK: break;
case T_LOCK_READ: break;
case T_LOCK_WRITE: break;
case T_LOOP: break;
case T_LOOPUNTIL: break;
case T_LPRINT: break;
case T_LSET: break;
case T_LT: break;
case T_MAT: break;
case T_MATINPUT: break;
case T_MATPRINT: break;
case T_MATREAD: break;
case T_MATREDIM: break;
case T_MATWRITE: break;
case T_MINUS: break;
case T_MKDIR: break;
case T_MOD: break;
case T_MULT: break;
case T_NAME: break;
case T_NE: break;
case T_NEW: break;
case T_NEXT: free(r->u.next); break;
case T_NOT: break;
case T_ON: if (r->u.on.pc) free(r->u.on.pc); break;
case T_ONERROR: break;
case T_ONERRORGOTO0: break;
case T_ONERROROFF: break;
case T_OP: break;
case T_OPEN: break;
case T_OPTIONBASE: break;
case T_OPTIONRUN: break;
case T_OPTIONSTOP: break;
case T_OR: break;
case T_OUT: break;
case T_PLUS: break;
case T_POKE: break;
case T_POW: break;
case T_PRINT: break;
case T_PUT: break;
case T_QUOTE: free(r->u.rem); break;
case T_RANDOMIZE: break;
case T_READ: break;
case T_REAL: break;
case T_REM: free(r->u.rem); break;
case T_RENAME: break;
case T_RENUM: break;
case T_REPEAT: break;
case T_RESTORE: break;
case T_RESUME: break;
case T_RETURN: break;
case T_RSET: break;
case T_RUN: break;
case T_SAVE: break;
case T_SELECTCASE: free(r->u.selectcase); break;
case T_SEMICOLON: break;
case T_SHARED: break;
case T_SHELL: break;
case T_SLEEP: break;
case T_SPC: break;
case T_STEP: break;
case T_STOP: break;
case T_STRING: String_destroy(r->u.string); free(r->u.string); break;
case T_SUB: break;
case T_SUBEND: break;
case T_SUBEXIT: break;
case T_SWAP: break;
case T_SYSTEM: break;
case T_TAB: break;
case T_THEN: break;
case T_TO: break;
case T_TRN: break;
case T_TROFF: break;
case T_TRON: break;
case T_TRUNCATE: break;
case T_UNLOCK: break;
case T_UNNUM: break;
case T_UNNUMBERED: break;
case T_UNTIL: break;
case T_USING: break;
case T_WAIT: break;
case T_WEND: free(r->u.whilepc); break;
case T_WHILE: free(r->u.afterwend); break;
case T_WIDTH: break;
case T_WRITE: break;
case T_XOR: break;
case T_XREF: break;
case T_ZER: break;
case T_ZONE: break;
default: assert(0);
}
} while ((r++)->type!=T_EOL);
free(token);
}
/*}}}*/
struct String *Token_toString(struct Token *token, struct Token *spaceto, struct String *s, int *indent, int width) /*{{{*/
{
int ns=0,infn=0;
int thisindent=0,thisnotindent=0,nextindent=0;
size_t oldlength=s->length;
struct Token *t;
static struct
{
const char *text;
char space;
} table[]=
{
/* 0 */ {(const char*)0,-1},
/* T_ACCESS_READ */ {"access read",1},
/* T_ACCESS_READ_WRITE */ {"access read write",1},
/* T_ACCESS_WRITE */ {"access write",1},
/* T_AND */ {"and",1},
/* T_AS */ {"as",1},
/* T_CALL */ {"call",1},
/* T_CASEELSE */ {"case else",1},
/* T_CASEVALUE */ {"case",1},
/* T_CHANNEL */ {"#",0},
/* T_CHDIR */ {"chdir",1},
/* T_CLEAR */ {"clear",1},
/* T_CLOSE */ {"close",1},
/* T_CLS */ {"cls",1},
/* T_COLON */ {":",1},
/* T_COLOR */ {"color",1},
/* T_COMMA */ {",",0},
/* T_CON */ {"con",0},
/* T_COPY */ {"copy",1},
/* T_CP */ {")",0},
/* T_DATA */ {"data",1},
/* T_DATAINPUT */ {(const char*)0,0},
/* T_DEC */ {"dec",1},
/* T_DEFDBL */ {"defdbl",1},
/* T_DEFFN */ {"def",1},
/* T_DEFINT */ {"defint",1},
/* T_DEFPROC */ {"def",1},
/* T_DEFSTR */ {"defstr",1},
/* T_DELETE */ {"delete",1},
/* T_DIM */ {"dim",1},
/* T_DISPLAY */ {"display",1},
/* T_DIV */ {"/",0},
/* T_DO */ {"do",1},
/* T_DOUNTIL */ {"do until",1},
/* T_DOWHILE */ {"do while",1},
/* T_EDIT */ {"edit",1},
/* T_ELSE */ {"else",1},
/* T_ELSEIFELSE */ {"elseif",1},
/* T_ELSEIFIF */ {(const char*)0,0},
/* T_END */ {"end",1},
/* T_ENDFN */ {"end function",1},
/* T_ENDIF */ {"end if",1},
/* T_ENDPROC */ {"end proc",1},
/* T_ENDSELECT */ {"end select",1},
/* T_ENVIRON */ {"environ",1},
/* T_EOL */ {"\n",0},
/* T_EQ */ {"=",0},
/* T_EQV */ {"eqv",0},
/* T_ERASE */ {"erase",1},
/* T_EXITDO */ {"exit do",1},
/* T_EXITFOR */ {"exit for",1},
/* T_FIELD */ {"field",1},
/* T_FNEND */ {"fnend",1},
/* T_FNEXIT */ {"exit function",1},
/* T_FNRETURN */ {"fnreturn",1},
/* T_FOR */ {"for",1},
/* T_FOR_INPUT */ {"for input",1},
/* T_FOR_OUTPUT */ {"for output",1},
/* T_FOR_APPEND */ {"for append",1},
/* T_FOR_RANDOM */ {"for random",1},
/* T_FOR_BINARY */ {"for binary",1},
/* T_FUNCTION */ {"function",1},
/* T_GE */ {">=",0},
/* T_GET */ {"get",1},
/* T_GOSUB */ {"gosub",1},
/* T_GOTO */ {"goto",1},
/* T_GT */ {">",0},
/* T_HEXINTEGER */ {(const char*)0,0},
/* T_OCTINTEGER */ {(const char*)0,0},
/* T_IDENTIFIER */ {(const char*)0,0},
/* T_IDIV */ {"\\",0},
/* T_IDN */ {"idn",0},
/* T_IF */ {"if",1},
/* T_IMAGE */ {"image",1},
/* T_IMP */ {"imp",0},
/* T_INC */ {"inc",1},
/* T_INPUT */ {"input",1},
/* T_INTEGER */ {(const char*)0,0},
/* T_INV */ {"inv",0},
/* T_IS */ {"is",1},
/* T_JUNK */ {(const char*)0,0},
/* T_KILL */ {"kill",1},
/* T_LE */ {"<=",0},
/* T_LET */ {"let",1},
/* T_LINEINPUT */ {"line input",1},
/* T_LIST */ {"list",1},
/* T_LLIST */ {"llist",1},
/* T_LOAD */ {"load",1},
/* T_LOCAL */ {"local",1},
/* T_LOCATE */ {"locate",1},
/* T_LOCK */ {"lock",1},
/* T_LOCK_READ */ {"lock read",1},
/* T_LOCK_WRITE */ {"lock write",1},
/* T_LOOP */ {"loop",1},
/* T_LOOPUNTIL */ {"loop until",1},
/* T_LPRINT */ {"lprint",1},
/* T_LSET */ {"lset",1},
/* T_LT */ {"<",0},
/* T_MAT */ {"mat",1},
/* T_MATINPUT */ {"mat input",1},
/* T_MATPRINT */ {"mat print",1},
/* T_MATREAD */ {"mat read",1},
/* T_MATREDIM */ {"mat redim",1},
/* T_MATWRITE */ {"mat write",1},
/* T_MINUS */ {"-",0},
/* T_MKDIR */ {"mkdir",1},
/* T_MOD */ {"mod",0},
/* T_MULT */ {"*",0},
/* T_NAME */ {"name",1},
/* T_NE */ {"<>",0},
/* T_NEW */ {"new",1},
/* T_NEXT */ {"next",1},
/* T_NOT */ {"not",0},
/* T_ON */ {"on",1},
/* T_ONERROR */ {"on error",1},
/* T_ONERRORGOTO0 */ {"on error goto 0",1},
/* T_ONERROROFF */ {"on error off",1},
/* T_OP */ {"(",0},
/* T_OPEN */ {"open",1},
/* T_OPTIONBASE */ {"option base",1},
/* T_OPTIONRUN */ {"option run",1},
/* T_OPTIONSTOP */ {"option stop",1},
/* T_OR */ {"or",1},
/* T_OUT */ {"out",1},
/* T_PLUS */ {"+",0},
/* T_POKE */ {"poke",1},
/* T_POW */ {"^",0},
/* T_PRINT */ {"print",1},
/* T_PUT */ {"put",1},
/* T_QUOTE */ {(const char*)0,1},
/* T_RANDOMIZE */ {"randomize",1},
/* T_READ */ {"read",1},
/* T_REAL */ {(const char*)0,0},
/* T_REM */ {(const char*)0,1},
/* T_RENAME */ {"rename",1},
/* T_RENUM */ {"renum",1},
/* T_REPEAT */ {"repeat",1},
/* T_RESTORE */ {"restore",1},
/* T_RESUME */ {"resume",1},
/* T_RETURN */ {"return",1},
/* T_RSET */ {"rset",1},
/* T_RUN */ {"run",1},
/* T_SAVE */ {"save",1},
/* T_SELECTCASE */ {"select case",1},
/* T_SEMICOLON */ {";",0},
/* T_SHARED */ {"shared",1},
/* T_SHELL */ {"shell",1},
/* T_SLEEP */ {"sleep",1},
/* T_SPC */ {"spc",0},
/* T_STEP */ {"step",1},
/* T_STOP */ {"stop",1},
/* T_STRING */ {(const char*)0,0},
/* T_SUB */ {"sub",1},
/* T_SUBEND */ {"subend",1},
/* T_SUBEXIT */ {"subexit",1},
/* T_SWAP */ {"swap",1},
/* T_SYSTEM */ {"system",1},
/* T_TAB */ {"tab",0},
/* T_THEN */ {"then",1},
/* T_TO */ {"to",1},
/* T_TRN */ {"trn",0},
/* T_TROFF */ {"troff",1},
/* T_TRON */ {"tron",1},
/* T_TRUNCATE */ {"truncate",1},
/* T_UNLOCK */ {"unlock",1},
/* T_UNNUM */ {"unnum",1},
/* T_UNNUMBERED */ {"",0},
/* T_UNTIL */ {"until",1},
/* T_USING */ {"using",0},
/* T_WAIT */ {"wait",1},
/* T_WEND */ {"wend",1},
/* T_WHILE */ {"while",1},
/* T_WIDTH */ {"width",1},
/* T_WRITE */ {"write",1},
/* T_XOR */ {"xor",0},
/* T_XREF */ {"xref",0},
/* T_ZER */ {"zer",0},
/* T_ZONE */ {"zone",1},
};
/* precompute indentation */ /*{{{*/
if (indent) thisindent=nextindent=*indent;
t=token;
do
{
switch (t->type)
{
case T_CASEELSE:
case T_CASEVALUE:
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
break;
}
case T_DEFFN:
case T_FUNCTION:
{
struct Token *cp;
for (cp=t; cp->type!=T_EOL && cp->type!=T_CP; ++cp);
if ((cp+1)->type!=T_EQ)
{
++thisnotindent;
++nextindent;
}
infn=1;
break;
}
case T_COLON: infn=0; break;
case T_DEFPROC:
case T_DO:
case T_DOUNTIL:
case T_DOWHILE:
case T_REPEAT:
case T_SUB:
case T_WHILE: ++thisnotindent; ++nextindent; break;
case T_FOR:
{
if ((t>token && ((t-1)->type==T_COLON || (t-1)->type==T_INTEGER || (t-1)->type==T_UNNUMBERED)))
{
++thisnotindent; ++nextindent;
}
break;
}
case T_SELECTCASE: thisnotindent+=2; nextindent+=2; break;
case T_EQ:
{
if (infn || (t>token && ((t-1)->type==T_COLON || (t-1)->type==T_INTEGER || (t-1)->type==T_UNNUMBERED)))
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
if (nextindent) --nextindent;
}
infn=0;
break;
}
case T_ENDFN:
case T_FNEND:
case T_ENDIF:
case T_ENDPROC:
case T_SUBEND:
case T_LOOP:
case T_LOOPUNTIL:
case T_UNTIL:
case T_WEND:
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
if (nextindent) --nextindent;
break;
}
case T_ENDSELECT:
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
if (nextindent) --nextindent;
if (nextindent) --nextindent;
break;
}
case T_NEXT:
{
++t;
while (1)
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
if (nextindent) --nextindent;
if (t->type==T_IDENTIFIER)
{
++t;
if (t->type==T_OP)
{
int par=0;
do
{
if (t->type==T_OP) ++par;
else if (t->type==T_CP) --par;
if (t->type!=T_EOL) ++t;
else break;
} while (par);
}
if (t->type==T_COMMA) ++t;
else break;
}
else break;
}
break;
}
case T_THEN: if ((t+1)->type==T_EOL) { ++thisnotindent; ++nextindent; } break;
case T_ELSE:
{
if (t==token+1)
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
}
break;
}
case T_ELSEIFELSE:
{
if (t==token+1)
{
if (thisnotindent) --thisnotindent; else if (thisindent) --thisindent;
}
if (nextindent) --nextindent;
break;
}
default: break;
}
} while (t++->type!=T_EOL);
/*}}}*/
if (width>=0) /* whole line */
{
if (width) /* nicely formatted listing */
{
assert (token->type==T_UNNUMBERED || token->type==T_INTEGER);
if (token->type==T_INTEGER) String_appendPrintf(s,"%*ld ",width,token->u.integer);
else String_appendPrintf(s,"%*s ",width,"");
}
else assert (token->type==T_UNNUMBERED);
++token;
}
while (thisindent--) String_appendPrintf(s," ");
do
{
if (s->length>oldlength && token->type!=T_EOL)
{
const char *keyword;
if ((keyword=table[token->type].text)==(const char*)0) keyword="X";
if (ns && s->character[s->length-1]!=' ')
{
String_appendPrintf(s," ");
}
else if (isalnum((int)(s->character[s->length-1])) && isalnum((int)*keyword))
{
String_appendPrintf(s," ");
}
else if (s->character[s->length-1]!=' ' && table[token->type].space)
{
String_appendChar(s,' ');
}
}
if (spaceto && token==spaceto) break;
switch (token->type)
{
case T_DATAINPUT: String_appendChars(s,token->u.datainput); break;
case T_ELSEIFIF: break;
case T_IDENTIFIER: String_appendChars(s,token->u.identifier->name); break;
case T_INTEGER: String_appendPrintf(s,"%ld",token->u.integer); break;
case T_HEXINTEGER: String_appendPrintf(s,"&h%lx",token->u.hexinteger); break;
case T_OCTINTEGER: String_appendPrintf(s,"&o%lo",token->u.octinteger); break;
case T_JUNK: String_appendChar(s,token->u.junk); break;
case T_REAL:
{
String_appendPrintf(s,"%.*g",DBL_DIG,token->u.real);
if ((token->u.real<((double)LONG_MIN)) || (token->u.real>((double)LONG_MAX))) String_appendChar(s,'!');
break;
}
case T_REM: String_appendPrintf(s,"%s%s",g_uppercase?"REM":"rem",token->u.rem); break;
case T_QUOTE: String_appendPrintf(s,"'%s",token->u.rem); break;
case T_STRING: /*{{{*/
{
size_t l=token->u.string->length;
char *data=token->u.string->character;
String_appendPrintf(s,"\"");
while (l--)
{
if (*data=='"') String_appendPrintf(s,"\"");
String_appendPrintf(s,"%c",*data);
++data;
}
String_appendPrintf(s,"\"");
break;
}
/*}}}*/
default:
{
if (g_uppercase)
{
struct String u;
String_new(&u);
String_appendChars(&u,table[token->type].text);
String_ucase(&u);
String_appendString(s,&u);
String_destroy(&u);
}
else String_appendChars(s,table[token->type].text);
}
}
ns=table[token->type].space;
} while (token++->type!=T_EOL);
if (indent) *indent=nextindent;
if (spaceto && s->length>oldlength) memset(s->character+oldlength,' ',s->length-oldlength);
return s;
}
/*}}}*/
void Token_init(int b_c, int uc) /*{{{*/
{
#define PROPERTY(t,assoc,unary_priority,binary_priority,is_unary,is_binary) \
g_token_property[t]=(assoc<<8)|(unary_priority<<5)|(binary_priority<<2)|(is_unary<<1)|is_binary
g_backslash_colon=b_c;
g_uppercase=uc;
PROPERTY(T_POW, 1,0,7,0,1);
PROPERTY(T_MULT, 0,0,5,0,1);
PROPERTY(T_DIV, 0,0,5,0,1);
PROPERTY(T_IDIV, 0,0,5,0,1);
PROPERTY(T_MOD, 0,0,5,0,1);
PROPERTY(T_PLUS, 0,6,4,1,1);
PROPERTY(T_MINUS,0,6,4,1,1);
PROPERTY(T_LT, 0,0,3,0,1);
PROPERTY(T_LE, 0,0,3,0,1);
PROPERTY(T_EQ, 0,0,3,0,1);
PROPERTY(T_GE, 0,0,3,0,1);
PROPERTY(T_GT, 0,0,3,0,1);
PROPERTY(T_NE, 0,0,3,0,1);
PROPERTY(T_NOT, 0,2,0,1,0);
PROPERTY(T_AND, 0,0,1,0,1);
PROPERTY(T_OR, 0,0,0,0,1);
PROPERTY(T_XOR, 0,0,0,0,1);
PROPERTY(T_EQV, 0,0,0,0,1);
PROPERTY(T_IMP, 0,0,0,0,1);
}
/*}}}*/
|