#define yyrestart gram_restart
#define yytext gram_text
-#line 19 "lex.yy.c"
+#line 19 "scan-gram.c"
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
-#include <errno.h>
+
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifdef __cplusplus
#include <stdlib.h>
-#ifndef _WIN32
#include <unistd.h>
-#endif
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
-#define YY_NUM_RULES 101
-#define YY_END_OF_BUFFER 102
-static yyconst short int yy_accept[380] =
+#define YY_NUM_RULES 102
+#define YY_END_OF_BUFFER 103
+static yyconst short int yy_accept[391] =
{ 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 102, 49,
- 38, 37, 37, 42, 49, 41, 39, 49, 40, 34,
- 36, 49, 33, 46, 35, 53, 54, 54, 55, 50,
- 51, 80, 83, 83, 79, 50, 82, 51, 75, 78,
- 78, 74, 77, 57, 58, 58, 56, 73, 60, 61,
- 61, 59, 93, 94, 94, 85, 95, 84, 88, 95,
- 50, 51, 90, 89, 97, 99, 99, 85, 98, 84,
- 88, 100, 100, 100, 85, 84, 88, 38, 37, 37,
- 37, 37, 48, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 45,
- 39, 43, 44, 40, 0, 53, 54, 54, 54, 54,
- 52, 80, 83, 83, 83, 83, 81, 75, 78, 78,
- 78, 78, 76, 57, 58, 58, 58, 58, 72, 71,
- 72, 64, 65, 66, 67, 68, 69, 70, 72, 61,
- 61, 61, 61, 93, 94, 94, 94, 94, 91, 0,
- 91, 0, 86, 87, 92, 0, 92, 97, 99, 99,
- 99, 99, 96, 100, 100, 100, 100, 100, 86, 87,
+ 0, 0, 0, 0, 59, 59, 0, 0, 85, 85,
+ 80, 80, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 103, 51, 40, 40, 44, 51, 43, 38,
+ 41, 51, 42, 36, 39, 51, 35, 48, 37, 57,
+ 57, 52, 53, 59, 58, 59, 55, 55, 83, 82,
+ 86, 78, 77, 81, 61, 60, 76, 63, 62, 96,
+ 96, 88, 97, 87, 91, 97, 52, 53, 93, 92,
+ 99, 88, 100, 87, 91, 101, 88, 87, 91, 40,
+ 50, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 47, 41, 45,
+
+ 46, 42, 0, 57, 56, 0, 59, 59, 59, 59,
+ 55, 54, 83, 84, 84, 84, 84, 78, 79, 79,
+ 79, 79, 61, 75, 73, 64, 75, 66, 67, 68,
+ 69, 70, 71, 75, 72, 75, 63, 96, 94, 0,
+ 94, 0, 89, 90, 0, 95, 0, 95, 99, 98,
+ 101, 89, 90, 101, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 46, 49, 0, 0, 0, 85, 0, 0, 0, 0,
+ 80, 0, 0, 0, 64, 0, 0, 65, 0, 0,
- 0, 0, 0, 0, 0, 44, 47, 0, 0, 0,
- 87, 87, 87, 0, 0, 0, 0, 0, 0, 0,
+ 0, 101, 101, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 62, 63, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 12, 0, 0, 0,
- 0, 0, 0, 0, 20, 0, 0, 0, 0, 0,
- 26, 0, 29, 0, 0, 32, 0, 2, 0, 0,
- 6, 0, 0, 0, 0, 0, 0, 14, 0, 0,
- 0, 18, 0, 0, 0, 23, 0, 25, 27, 30,
-
- 0, 1, 3, 0, 0, 8, 0, 0, 0, 0,
- 0, 0, 0, 19, 0, 0, 0, 0, 0, 4,
+ 0, 0, 0, 0, 0, 64, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 12,
0, 0, 0, 0, 0, 0, 0, 0, 0, 21,
- 0, 0, 0, 31, 0, 0, 0, 0, 0, 0,
- 0, 16, 17, 0, 24, 0, 0, 0, 0, 0,
- 0, 13, 0, 0, 0, 5, 0, 0, 0, 11,
- 0, 0, 0, 0, 9, 0, 15, 22, 28, 0,
- 0, 7, 0, 0, 0, 0, 0, 10, 0
+ 0, 0, 0, 0, 0, 28, 0, 31, 0, 0,
+ 34, 0, 0, 0, 2, 0, 0, 6, 0, 0,
+ 0, 0, 0, 0, 0, 14, 0, 0, 0, 18,
+ 0, 0, 0, 0, 24, 0, 27, 29, 32, 0,
+
+ 0, 74, 1, 3, 0, 0, 8, 0, 0, 0,
+ 0, 0, 0, 0, 0, 19, 0, 0, 0, 0,
+ 0, 0, 4, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 22, 0, 0, 0, 33, 0,
+ 0, 0, 0, 0, 0, 0, 0, 16, 17, 0,
+ 0, 26, 0, 0, 0, 0, 0, 0, 25, 13,
+ 0, 0, 0, 0, 5, 0, 0, 0, 11, 0,
+ 0, 0, 0, 0, 9, 0, 15, 20, 23, 30,
+ 0, 0, 7, 0, 0, 0, 0, 0, 10, 0
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 2, 4, 1, 1, 1, 1, 1, 1, 1,
+ 2, 2, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 5, 1, 6, 7, 1, 8, 1,
- 1, 9, 1, 1, 10, 11, 12, 13, 13, 13,
+ 1, 2, 1, 4, 1, 5, 6, 1, 7, 1,
+ 1, 8, 1, 9, 10, 11, 12, 13, 13, 13,
13, 13, 13, 13, 13, 14, 14, 15, 16, 17,
- 18, 19, 1, 20, 21, 21, 21, 21, 21, 21,
+ 18, 19, 20, 21, 22, 22, 22, 22, 22, 22,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 22, 23, 24, 1, 25, 1, 26, 27, 28, 29,
+ 11, 11, 11, 11, 23, 11, 11, 11, 11, 11,
+ 24, 25, 26, 1, 27, 1, 28, 29, 30, 31,
- 30, 31, 32, 33, 34, 11, 35, 36, 37, 38,
- 39, 40, 11, 41, 42, 43, 44, 45, 11, 46,
- 47, 11, 48, 49, 50, 1, 1, 1, 1, 1,
+ 32, 33, 34, 35, 36, 11, 37, 38, 39, 40,
+ 41, 42, 11, 43, 44, 45, 46, 47, 11, 48,
+ 49, 11, 50, 51, 52, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
-static yyconst int yy_meta[51] =
+static yyconst int yy_meta[54] =
{ 0,
- 1, 1, 2, 3, 4, 5, 6, 7, 8, 1,
- 9, 10, 11, 11, 1, 1, 1, 1, 12, 5,
- 11, 13, 14, 13, 9, 11, 11, 11, 11, 11,
- 11, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 5, 1, 5
+ 1, 1, 2, 3, 4, 5, 6, 7, 1, 1,
+ 8, 9, 10, 10, 1, 1, 1, 1, 11, 1,
+ 4, 10, 8, 12, 13, 12, 8, 10, 10, 10,
+ 10, 10, 10, 8, 8, 8, 8, 8, 8, 8,
+ 8, 8, 8, 8, 8, 8, 8, 8, 8, 4,
+ 1, 4, 11
} ;
-static yyconst short int yy_base[406] =
+static yyconst short int yy_base[427] =
{ 0,
- 0, 0, 48, 51, 58, 61, 83, 86, 73, 94,
- 108, 110, 131, 179, 227, 249, 116, 142, 839, 840,
- 836, 55, 64, 840, 267, 840, 0, 44, 79, 840,
- 840, 0, 840, 840, 840, 0, 97, 99, 825, 840,
- 840, 0, 119, 122, 840, 840, 0, 840, 0, 126,
- 138, 840, 0, 0, 145, 153, 840, 311, 840, 155,
- 157, 840, 0, 159, 164, 840, 159, 840, 62, 164,
- 840, 840, 840, 840, 0, 185, 189, 840, 786, 840,
- 185, 192, 201, 203, 205, 207, 209, 833, 211, 213,
- 216, 219, 840, 800, 39, 86, 799, 796, 65, 801,
-
- 198, 786, 184, 795, 109, 203, 790, 797, 800, 840,
- 0, 840, 0, 230, 806, 0, 242, 244, 255, 259,
- 840, 0, 261, 263, 265, 272, 840, 0, 274, 276,
- 278, 280, 840, 0, 282, 284, 286, 288, 840, 840,
- 811, 840, 840, 840, 840, 840, 840, 840, 0, 297,
- 314, 316, 318, 0, 322, 324, 326, 328, 840, 322,
- 326, 0, 840, 0, 840, 330, 332, 0, 344, 347,
- 355, 357, 840, 359, 361, 363, 365, 367, 369, 371,
- 785, 144, 781, 780, 780, 144, 778, 787, 789, 775,
- 778, 366, 784, 770, 168, 771, 779, 780, 783, 767,
-
- 772, 766, 771, 763, 775, 0, 840, 789, 0, 782,
- 0, 374, 377, 774, 755, 764, 754, 766, 756, 764,
- 763, 762, 230, 748, 764, 757, 758, 751, 760, 744,
- 744, 755, 744, 751, 747, 743, 737, 740, 746, 745,
- 735, 746, 744, 840, 840, 373, 730, 738, 731, 727,
- 739, 725, 737, 754, 734, 722, 840, 718, 730, 372,
- 725, 716, 720, 712, 840, 712, 375, 711, 723, 709,
- 840, 713, 840, 712, 710, 840, 701, 840, 717, 702,
- 840, 378, 702, 704, 380, 717, 708, 840, 701, 702,
- 697, 840, 695, 707, 696, 840, 692, 840, 382, 840,
-
- 692, 840, 691, 704, 686, 840, 689, 690, 687, 688,
- 659, 666, 633, 840, 628, 629, 613, 606, 618, 840,
- 603, 615, 614, 597, 596, 597, 603, 590, 603, 840,
- 589, 567, 578, 840, 564, 541, 547, 534, 523, 510,
- 520, 840, 840, 506, 840, 516, 497, 510, 499, 368,
- 365, 840, 368, 359, 348, 840, 316, 307, 297, 840,
- 287, 282, 283, 260, 840, 252, 840, 840, 840, 263,
- 384, 840, 241, 236, 224, 196, 158, 840, 840, 409,
- 423, 437, 451, 465, 479, 493, 507, 227, 521, 535,
- 549, 561, 575, 587, 601, 614, 628, 642, 656, 670,
-
- 104, 684, 698, 712, 77
+ 0, 0, 46, 47, 53, 56, 802, 801, 59, 62,
+ 50, 82, 65, 87, 85, 86, 110, 160, 92, 117,
+ 121, 128, 808, 811, 58, 62, 811, 207, 811, 811,
+ 0, 50, 54, 811, 811, 0, 811, 811, 811, 0,
+ 114, 811, 811, 782, 811, 117, 0, 794, 0, 811,
+ 146, 0, 811, 148, 0, 811, 254, 0, 811, 0,
+ 0, 811, 165, 811, 149, 175, 811, 811, 811, 811,
+ 0, 811, 753, 811, 175, 0, 0, 0, 182, 92,
+ 811, 768, 95, 54, 767, 764, 68, 769, 163, 754,
+ 110, 763, 121, 127, 758, 765, 768, 811, 0, 811,
+
+ 0, 179, 776, 0, 811, 193, 769, 195, 199, 768,
+ 0, 811, 0, 811, 203, 767, 212, 0, 811, 214,
+ 766, 216, 0, 811, 811, 777, 0, 811, 811, 811,
+ 811, 811, 811, 0, 811, 0, 0, 0, 811, 208,
+ 212, 0, 811, 811, 225, 811, 216, 218, 0, 811,
+ 0, 0, 0, 231, 749, 226, 745, 744, 744, 161,
+ 742, 227, 754, 740, 743, 253, 749, 735, 736, 69,
+ 735, 743, 744, 747, 731, 736, 730, 735, 727, 739,
+ 0, 811, 240, 253, 266, 743, 269, 282, 742, 286,
+ 741, 288, 293, 740, 751, 0, 0, 0, 744, 301,
+
+ 297, 304, 300, 734, 715, 724, 714, 726, 716, 724,
+ 723, 722, 743, 707, 741, 722, 715, 716, 709, 718,
+ 702, 702, 699, 712, 701, 708, 704, 700, 694, 697,
+ 703, 702, 692, 703, 701, 811, 0, 0, 305, 687,
+ 695, 688, 684, 696, 682, 694, 713, 691, 679, 811,
+ 678, 674, 686, 254, 681, 672, 676, 668, 681, 811,
+ 667, 301, 666, 678, 664, 811, 668, 811, 667, 665,
+ 811, 0, 0, 656, 811, 672, 657, 811, 303, 657,
+ 659, 304, 672, 671, 662, 811, 655, 656, 651, 811,
+ 649, 683, 660, 649, 811, 645, 811, 306, 811, 645,
+
+ 0, 811, 811, 644, 657, 639, 811, 642, 643, 640,
+ 639, 640, 637, 647, 637, 811, 635, 633, 647, 633,
+ 628, 640, 811, 626, 638, 635, 612, 601, 614, 589,
+ 594, 579, 592, 592, 811, 573, 573, 582, 811, 567,
+ 564, 565, 525, 534, 510, 498, 489, 811, 811, 470,
+ 461, 811, 466, 449, 458, 442, 427, 423, 811, 811,
+ 296, 301, 295, 288, 811, 283, 275, 275, 811, 272,
+ 259, 249, 254, 232, 811, 228, 811, 811, 811, 811,
+ 234, 307, 811, 229, 208, 199, 203, 179, 811, 811,
+ 334, 347, 360, 373, 386, 399, 412, 425, 438, 451,
+
+ 457, 467, 480, 493, 506, 519, 530, 543, 554, 567,
+ 579, 592, 604, 617, 630, 643, 201, 193, 167, 656,
+ 159, 145, 136, 134, 120, 93
} ;
-static yyconst short int yy_def[406] =
+static yyconst short int yy_def[427] =
{ 0,
- 379, 1, 380, 380, 381, 381, 382, 382, 383, 383,
- 384, 384, 385, 385, 386, 386, 387, 387, 379, 379,
- 379, 379, 379, 379, 379, 379, 388, 379, 379, 379,
- 379, 389, 379, 379, 379, 390, 379, 379, 379, 379,
- 379, 391, 379, 379, 379, 379, 392, 379, 393, 379,
- 379, 379, 394, 395, 379, 379, 379, 396, 379, 379,
- 379, 379, 397, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 398, 379, 379, 379, 379, 379,
- 379, 399, 399, 399, 399, 399, 399, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
-
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 388, 379, 400, 379, 389, 390, 379, 379, 379, 379,
- 379, 391, 379, 379, 379, 379, 379, 393, 379, 379,
- 379, 379, 379, 395, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 401, 379,
- 379, 379, 379, 397, 379, 379, 379, 379, 379, 379,
- 379, 402, 379, 403, 379, 379, 379, 398, 379, 379,
- 379, 379, 379, 399, 399, 399, 399, 399, 399, 404,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
-
- 379, 379, 379, 379, 379, 400, 379, 379, 405, 402,
- 403, 404, 404, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
-
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 0, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
-
- 379, 379, 379, 379, 379
+ 390, 1, 391, 391, 392, 392, 393, 393, 394, 394,
+ 395, 395, 396, 396, 397, 397, 398, 398, 399, 399,
+ 400, 400, 390, 390, 390, 390, 390, 390, 390, 390,
+ 401, 390, 390, 390, 390, 402, 390, 390, 390, 403,
+ 390, 390, 390, 404, 390, 404, 405, 390, 406, 390,
+ 407, 408, 390, 409, 410, 390, 411, 412, 390, 413,
+ 413, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 414, 390, 390, 390, 390, 415, 415, 415, 415, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 401, 390,
+
+ 416, 390, 402, 403, 390, 390, 404, 404, 404, 404,
+ 405, 390, 406, 390, 390, 390, 390, 408, 390, 390,
+ 390, 390, 410, 390, 390, 390, 417, 390, 390, 390,
+ 390, 390, 390, 418, 390, 419, 412, 413, 390, 390,
+ 390, 420, 390, 390, 390, 390, 390, 390, 414, 390,
+ 415, 415, 415, 415, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 416, 390, 390, 390, 390, 390, 390, 390, 407, 390,
+ 390, 390, 390, 409, 390, 421, 422, 419, 420, 390,
+
+ 390, 415, 415, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 423, 424, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 425, 426, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+
+ 418, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 0,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390
} ;
-static yyconst short int yy_nxt[891] =
+static yyconst short int yy_nxt[865] =
{ 0,
- 20, 21, 22, 23, 24, 20, 25, 26, 20, 20,
- 27, 28, 29, 29, 30, 31, 32, 33, 20, 20,
- 27, 20, 20, 20, 20, 27, 27, 27, 27, 27,
- 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
- 27, 27, 27, 27, 27, 27, 27, 34, 35, 20,
- 37, 38, 112, 37, 38, 113, 39, 89, 90, 39,
- 43, 44, 45, 43, 44, 45, 91, 92, 182, 40,
- 163, 41, 40, 164, 41, 55, 56, 57, 183, 46,
- 47, 48, 46, 47, 48, 50, 51, 245, 50, 51,
- 52, 114, 114, 52, 188, 58, 55, 56, 57, 117,
-
- 118, 119, 120, 189, 46, 53, 48, 46, 53, 48,
- 60, 61, 60, 61, 209, 62, 58, 62, 83, 84,
- 85, 123, 124, 86, 125, 126, 184, 87, 129, 130,
- 58, 185, 58, 64, 65, 66, 67, 46, 68, 48,
- 131, 132, 69, 198, 83, 84, 85, 135, 136, 86,
- 70, 199, 71, 87, 72, 137, 138, 150, 151, 152,
- 153, 155, 156, 46, 159, 48, 157, 158, 160, 165,
- 215, 161, 161, 166, 216, 162, 167, 167, 73, 221,
- 74, 64, 65, 66, 67, 217, 68, 169, 170, 222,
- 69, 171, 172, 163, 175, 176, 164, 232, 70, 378,
-
- 71, 233, 72, 175, 177, 178, 176, 175, 176, 175,
- 176, 175, 176, 89, 90, 91, 92, 179, 89, 90,
- 180, 91, 92, 191, 195, 377, 73, 196, 74, 76,
- 77, 78, 200, 79, 80, 111, 192, 111, 81, 256,
- 193, 201, 114, 114, 117, 118, 119, 120, 46, 202,
- 48, 76, 77, 78, 256, 79, 80, 117, 118, 376,
- 81, 119, 120, 123, 124, 125, 126, 123, 124, 375,
- 46, 374, 48, 93, 125, 126, 129, 130, 131, 132,
- 129, 130, 131, 132, 135, 136, 137, 138, 135, 136,
- 137, 138, 372, 94, 371, 95, 96, 97, 98, 150,
-
- 151, 370, 99, 100, 101, 102, 103, 104, 105, 106,
- 107, 108, 369, 109, 110, 140, 152, 153, 150, 151,
- 152, 153, 368, 141, 155, 156, 157, 158, 155, 156,
- 157, 158, 367, 140, 161, 161, 142, 143, 161, 161,
- 366, 144, 167, 167, 167, 167, 169, 170, 145, 171,
- 172, 146, 365, 147, 364, 148, 149, 169, 170, 171,
- 172, 175, 176, 175, 177, 178, 176, 178, 176, 175,
- 177, 175, 176, 175, 213, 228, 175, 213, 159, 178,
- 213, 289, 160, 363, 295, 161, 161, 305, 362, 308,
- 228, 318, 211, 373, 211, 211, 289, 211, 211, 295,
-
- 211, 361, 305, 229, 308, 360, 318, 359, 373, 36,
- 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
- 36, 36, 36, 42, 42, 42, 42, 42, 42, 42,
- 42, 42, 42, 42, 42, 42, 42, 49, 49, 49,
- 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
- 49, 54, 54, 54, 54, 54, 54, 54, 54, 54,
- 54, 54, 54, 54, 54, 59, 59, 59, 59, 59,
- 59, 59, 59, 59, 59, 59, 59, 59, 59, 63,
- 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
- 63, 63, 63, 75, 75, 75, 75, 75, 75, 75,
-
- 75, 75, 75, 75, 75, 75, 75, 82, 82, 82,
- 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
- 82, 115, 115, 115, 115, 115, 115, 115, 115, 115,
- 115, 115, 358, 115, 115, 116, 357, 356, 116, 116,
- 116, 116, 355, 116, 116, 116, 116, 354, 116, 122,
- 353, 352, 351, 122, 122, 122, 122, 122, 122, 122,
- 122, 127, 127, 127, 127, 127, 127, 127, 127, 127,
- 127, 127, 127, 127, 127, 128, 350, 349, 128, 128,
- 128, 348, 128, 128, 128, 128, 128, 133, 133, 133,
- 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
-
- 133, 134, 347, 346, 345, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 139, 139, 139, 139, 139, 139,
- 139, 139, 139, 139, 139, 139, 139, 139, 154, 344,
- 343, 342, 341, 154, 340, 154, 154, 339, 154, 154,
- 338, 154, 168, 337, 336, 335, 168, 334, 333, 168,
- 168, 332, 168, 168, 331, 168, 174, 174, 174, 174,
- 174, 174, 174, 174, 174, 174, 174, 174, 330, 174,
- 206, 329, 206, 206, 206, 206, 206, 206, 206, 206,
- 206, 206, 206, 206, 210, 210, 210, 210, 210, 210,
- 210, 210, 210, 210, 210, 328, 210, 210, 211, 327,
-
- 211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
- 211, 211, 212, 212, 212, 212, 212, 212, 212, 212,
- 212, 212, 212, 212, 212, 212, 326, 325, 324, 323,
- 322, 321, 320, 319, 317, 316, 315, 314, 313, 312,
- 311, 310, 309, 307, 306, 304, 303, 302, 301, 300,
- 299, 298, 297, 296, 294, 293, 292, 291, 290, 288,
- 287, 286, 285, 284, 283, 282, 281, 280, 279, 278,
- 277, 276, 275, 274, 273, 272, 271, 270, 269, 268,
- 267, 266, 265, 264, 263, 262, 261, 260, 259, 258,
- 257, 255, 254, 253, 252, 251, 250, 249, 248, 247,
-
- 246, 244, 243, 242, 241, 240, 239, 238, 237, 236,
- 235, 234, 231, 230, 227, 226, 225, 224, 223, 220,
- 219, 218, 214, 208, 207, 205, 204, 203, 197, 194,
- 190, 187, 186, 181, 88, 173, 121, 88, 379, 19,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379
+ 24, 25, 26, 27, 24, 28, 29, 24, 30, 24,
+ 31, 32, 33, 33, 34, 35, 36, 37, 24, 24,
+ 24, 31, 31, 24, 24, 24, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 38,
+ 39, 24, 24, 41, 41, 45, 53, 100, 45, 80,
+ 80, 101, 50, 80, 80, 50, 102, 102, 56, 42,
+ 42, 43, 43, 42, 54, 43, 42, 46, 43, 42,
+ 46, 43, 42, 51, 43, 42, 51, 43, 53, 57,
+ 56, 59, 59, 80, 80, 72, 158, 73, 74, 162,
+
+ 224, 159, 302, 75, 225, 42, 54, 43, 163, 57,
+ 57, 57, 61, 62, 63, 42, 64, 43, 109, 110,
+ 72, 65, 73, 74, 77, 105, 156, 78, 75, 301,
+ 66, 77, 79, 67, 78, 68, 157, 169, 106, 79,
+ 42, 108, 43, 273, 42, 272, 43, 115, 116, 120,
+ 121, 42, 170, 43, 238, 171, 143, 173, 175, 69,
+ 144, 70, 61, 62, 63, 174, 64, 176, 237, 139,
+ 117, 65, 122, 145, 140, 177, 198, 141, 141, 146,
+ 66, 142, 143, 67, 147, 68, 144, 148, 148, 152,
+ 165, 102, 102, 153, 183, 184, 109, 110, 211, 145,
+
+ 109, 110, 197, 166, 185, 186, 154, 167, 212, 69,
+ 196, 70, 81, 188, 189, 190, 191, 193, 194, 108,
+ 141, 141, 389, 108, 141, 141, 200, 201, 148, 148,
+ 148, 148, 202, 203, 388, 82, 387, 83, 84, 85,
+ 86, 183, 184, 386, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, 96, 205, 97, 98, 125, 206, 214,
+ 125, 385, 219, 287, 105, 383, 126, 185, 186, 207,
+ 185, 186, 382, 125, 215, 381, 127, 106, 125, 219,
+ 287, 128, 129, 188, 189, 380, 130, 190, 191, 190,
+ 191, 379, 220, 131, 193, 194, 132, 378, 133, 134,
+
+ 135, 136, 200, 201, 143, 202, 203, 152, 144, 139,
+ 294, 153, 306, 309, 140, 321, 384, 141, 141, 377,
+ 376, 145, 375, 374, 154, 373, 372, 294, 371, 306,
+ 309, 370, 321, 384, 40, 40, 40, 40, 40, 40,
+ 40, 40, 40, 40, 40, 40, 40, 44, 44, 44,
+ 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 47, 49, 49, 49, 49, 49, 49, 49,
+ 49, 49, 49, 49, 49, 49, 52, 52, 52, 52,
+ 52, 52, 52, 52, 52, 52, 52, 52, 52, 55,
+
+ 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
+ 55, 55, 58, 58, 58, 58, 58, 58, 58, 58,
+ 58, 58, 58, 58, 58, 60, 60, 60, 60, 60,
+ 60, 60, 60, 60, 60, 60, 60, 60, 71, 71,
+ 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
+ 71, 76, 76, 76, 76, 76, 76, 76, 76, 76,
+ 76, 76, 76, 76, 99, 369, 99, 103, 368, 103,
+ 103, 103, 103, 103, 103, 103, 103, 367, 103, 103,
+ 104, 104, 104, 104, 104, 104, 366, 104, 104, 104,
+ 104, 365, 104, 107, 364, 107, 107, 107, 107, 107,
+
+ 107, 107, 107, 107, 363, 107, 111, 111, 111, 111,
+ 111, 111, 362, 111, 111, 111, 111, 111, 111, 113,
+ 113, 361, 113, 113, 113, 113, 113, 113, 113, 113,
+ 114, 114, 114, 114, 114, 114, 114, 114, 114, 114,
+ 114, 360, 114, 118, 118, 118, 118, 118, 359, 118,
+ 118, 118, 118, 118, 119, 119, 119, 119, 119, 119,
+ 119, 119, 119, 119, 119, 358, 119, 123, 123, 357,
+ 123, 123, 123, 123, 123, 123, 123, 123, 123, 124,
+ 124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
+ 124, 124, 137, 137, 137, 137, 137, 356, 137, 137,
+
+ 137, 137, 137, 137, 138, 138, 355, 354, 138, 353,
+ 138, 138, 352, 138, 138, 351, 138, 149, 149, 350,
+ 149, 349, 348, 149, 149, 347, 149, 149, 346, 149,
+ 151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
+ 151, 345, 151, 181, 344, 181, 181, 181, 181, 181,
+ 181, 181, 181, 181, 181, 181, 199, 343, 199, 199,
+ 199, 199, 199, 199, 199, 199, 342, 199, 199, 341,
+ 340, 339, 338, 337, 336, 335, 334, 333, 332, 331,
+ 330, 329, 328, 327, 326, 325, 324, 323, 322, 320,
+ 319, 318, 317, 316, 315, 314, 313, 312, 311, 310,
+
+ 308, 307, 305, 304, 303, 300, 299, 298, 297, 296,
+ 295, 293, 292, 291, 290, 289, 288, 286, 285, 284,
+ 283, 282, 281, 280, 279, 278, 277, 276, 275, 274,
+ 271, 270, 269, 268, 267, 266, 265, 264, 263, 262,
+ 261, 260, 259, 258, 257, 256, 255, 254, 253, 252,
+ 251, 250, 249, 248, 247, 246, 245, 244, 243, 242,
+ 241, 240, 239, 236, 122, 192, 117, 187, 235, 234,
+ 233, 232, 231, 230, 229, 228, 227, 226, 223, 222,
+ 221, 218, 217, 216, 213, 210, 209, 208, 204, 195,
+ 192, 187, 108, 108, 182, 180, 179, 178, 172, 168,
+
+ 164, 161, 160, 155, 150, 112, 108, 390, 48, 48,
+ 23, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390
} ;
-static yyconst short int yy_chk[891] =
+static yyconst short int yy_chk[865] =
{ 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,
- 3, 3, 28, 4, 4, 28, 3, 22, 22, 4,
- 5, 5, 5, 6, 6, 6, 23, 23, 95, 3,
- 69, 3, 4, 69, 4, 9, 9, 9, 95, 5,
- 5, 5, 6, 6, 6, 7, 7, 405, 8, 8,
- 7, 29, 29, 8, 99, 9, 10, 10, 10, 37,
-
- 37, 38, 38, 99, 7, 7, 7, 8, 8, 8,
- 11, 11, 12, 12, 401, 11, 10, 12, 17, 17,
- 17, 43, 43, 17, 44, 44, 96, 17, 50, 50,
- 11, 96, 12, 13, 13, 13, 13, 17, 13, 17,
- 51, 51, 13, 105, 18, 18, 18, 55, 55, 18,
- 13, 105, 13, 18, 13, 56, 56, 60, 60, 61,
- 61, 64, 64, 18, 67, 18, 65, 65, 67, 70,
- 182, 67, 67, 70, 182, 67, 70, 70, 13, 186,
- 13, 14, 14, 14, 14, 182, 14, 76, 76, 186,
- 14, 77, 77, 81, 82, 82, 81, 195, 14, 377,
-
- 14, 195, 14, 83, 83, 84, 84, 85, 85, 86,
- 86, 87, 87, 89, 89, 90, 90, 87, 91, 91,
- 87, 92, 92, 101, 103, 376, 14, 103, 14, 15,
- 15, 15, 106, 15, 15, 388, 101, 388, 15, 223,
- 101, 106, 114, 114, 117, 117, 118, 118, 15, 106,
- 15, 16, 16, 16, 223, 16, 16, 119, 119, 375,
- 16, 120, 120, 123, 123, 124, 124, 125, 125, 374,
- 16, 373, 16, 25, 126, 126, 129, 129, 130, 130,
- 131, 131, 132, 132, 135, 135, 136, 136, 137, 137,
- 138, 138, 370, 25, 366, 25, 25, 25, 25, 150,
-
- 150, 364, 25, 25, 25, 25, 25, 25, 25, 25,
- 25, 25, 363, 25, 25, 58, 151, 151, 152, 152,
- 153, 153, 362, 58, 155, 155, 156, 156, 157, 157,
- 158, 158, 361, 58, 160, 160, 58, 58, 161, 161,
- 359, 58, 166, 166, 167, 167, 169, 169, 58, 170,
- 170, 58, 358, 58, 357, 58, 58, 171, 171, 172,
- 172, 174, 174, 175, 175, 176, 176, 177, 177, 178,
- 178, 179, 179, 180, 180, 192, 212, 212, 246, 213,
- 213, 260, 246, 355, 267, 246, 246, 282, 354, 285,
- 192, 299, 180, 371, 180, 212, 260, 212, 213, 267,
-
- 213, 353, 282, 192, 285, 351, 299, 350, 371, 380,
- 380, 380, 380, 380, 380, 380, 380, 380, 380, 380,
- 380, 380, 380, 381, 381, 381, 381, 381, 381, 381,
- 381, 381, 381, 381, 381, 381, 381, 382, 382, 382,
- 382, 382, 382, 382, 382, 382, 382, 382, 382, 382,
- 382, 383, 383, 383, 383, 383, 383, 383, 383, 383,
- 383, 383, 383, 383, 383, 384, 384, 384, 384, 384,
- 384, 384, 384, 384, 384, 384, 384, 384, 384, 385,
- 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
- 385, 385, 385, 386, 386, 386, 386, 386, 386, 386,
-
- 386, 386, 386, 386, 386, 386, 386, 387, 387, 387,
- 387, 387, 387, 387, 387, 387, 387, 387, 387, 387,
- 387, 389, 389, 389, 389, 389, 389, 389, 389, 389,
- 389, 389, 349, 389, 389, 390, 348, 347, 390, 390,
- 390, 390, 346, 390, 390, 390, 390, 344, 390, 391,
- 341, 340, 339, 391, 391, 391, 391, 391, 391, 391,
- 391, 392, 392, 392, 392, 392, 392, 392, 392, 392,
- 392, 392, 392, 392, 392, 393, 338, 337, 393, 393,
- 393, 336, 393, 393, 393, 393, 393, 394, 394, 394,
- 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
-
- 394, 395, 335, 333, 332, 395, 395, 395, 395, 395,
- 395, 395, 395, 395, 396, 396, 396, 396, 396, 396,
- 396, 396, 396, 396, 396, 396, 396, 396, 397, 331,
- 329, 328, 327, 397, 326, 397, 397, 325, 397, 397,
- 324, 397, 398, 323, 322, 321, 398, 319, 318, 398,
- 398, 317, 398, 398, 316, 398, 399, 399, 399, 399,
- 399, 399, 399, 399, 399, 399, 399, 399, 315, 399,
- 400, 313, 400, 400, 400, 400, 400, 400, 400, 400,
- 400, 400, 400, 400, 402, 402, 402, 402, 402, 402,
- 402, 402, 402, 402, 402, 312, 402, 402, 403, 311,
-
- 403, 403, 403, 403, 403, 403, 403, 403, 403, 403,
- 403, 403, 404, 404, 404, 404, 404, 404, 404, 404,
- 404, 404, 404, 404, 404, 404, 310, 309, 308, 307,
- 305, 304, 303, 301, 297, 295, 294, 293, 291, 290,
- 289, 287, 286, 284, 283, 280, 279, 277, 275, 274,
- 272, 270, 269, 268, 266, 264, 263, 262, 261, 259,
- 258, 256, 255, 254, 253, 252, 251, 250, 249, 248,
- 247, 243, 242, 241, 240, 239, 238, 237, 236, 235,
- 234, 233, 232, 231, 230, 229, 228, 227, 226, 225,
- 224, 222, 221, 220, 219, 218, 217, 216, 215, 214,
-
- 210, 208, 205, 204, 203, 202, 201, 200, 199, 198,
- 197, 196, 194, 193, 191, 190, 189, 188, 187, 185,
- 184, 183, 181, 141, 115, 109, 108, 107, 104, 102,
- 100, 98, 97, 94, 88, 79, 39, 21, 19, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
- 379, 379, 379, 379, 379, 379, 379, 379, 379, 379
+ 1, 1, 1, 3, 4, 5, 11, 32, 6, 25,
+ 25, 32, 9, 26, 26, 10, 33, 33, 13, 3,
+ 4, 3, 4, 11, 11, 11, 5, 5, 5, 6,
+ 6, 6, 9, 9, 9, 10, 10, 10, 12, 13,
+ 14, 15, 16, 80, 80, 19, 84, 19, 19, 87,
+
+ 170, 84, 426, 19, 170, 12, 12, 12, 87, 15,
+ 16, 14, 17, 17, 17, 19, 17, 19, 46, 46,
+ 20, 17, 20, 20, 21, 41, 83, 21, 20, 425,
+ 17, 22, 21, 17, 22, 17, 83, 91, 41, 22,
+ 20, 46, 20, 424, 21, 423, 21, 51, 51, 54,
+ 54, 22, 91, 22, 422, 91, 65, 93, 94, 17,
+ 65, 17, 18, 18, 18, 93, 18, 94, 421, 63,
+ 51, 18, 54, 65, 63, 94, 419, 63, 63, 66,
+ 18, 63, 75, 18, 66, 18, 75, 66, 66, 79,
+ 89, 102, 102, 79, 106, 106, 108, 108, 160, 75,
+
+ 109, 109, 418, 89, 115, 115, 79, 89, 160, 18,
+ 417, 18, 28, 117, 117, 120, 120, 122, 122, 108,
+ 140, 140, 388, 109, 141, 141, 145, 145, 147, 147,
+ 148, 148, 154, 154, 387, 28, 386, 28, 28, 28,
+ 28, 183, 183, 385, 28, 28, 28, 28, 28, 28,
+ 28, 28, 28, 28, 156, 28, 28, 57, 156, 162,
+ 57, 384, 166, 254, 184, 381, 57, 185, 185, 156,
+ 187, 187, 376, 57, 162, 374, 57, 184, 57, 166,
+ 254, 57, 57, 188, 188, 373, 57, 190, 190, 192,
+ 192, 372, 166, 57, 193, 193, 57, 371, 57, 57,
+
+ 57, 57, 200, 200, 201, 202, 202, 203, 201, 239,
+ 262, 203, 279, 282, 239, 298, 382, 239, 239, 370,
+ 368, 201, 367, 366, 203, 364, 363, 262, 362, 279,
+ 282, 361, 298, 382, 391, 391, 391, 391, 391, 391,
+ 391, 391, 391, 391, 391, 391, 391, 392, 392, 392,
+ 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
+ 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
+ 393, 393, 393, 394, 394, 394, 394, 394, 394, 394,
+ 394, 394, 394, 394, 394, 394, 395, 395, 395, 395,
+ 395, 395, 395, 395, 395, 395, 395, 395, 395, 396,
+
+ 396, 396, 396, 396, 396, 396, 396, 396, 396, 396,
+ 396, 396, 397, 397, 397, 397, 397, 397, 397, 397,
+ 397, 397, 397, 397, 397, 398, 398, 398, 398, 398,
+ 398, 398, 398, 398, 398, 398, 398, 398, 399, 399,
+ 399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
+ 399, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+ 400, 400, 400, 400, 401, 358, 401, 402, 357, 402,
+ 402, 402, 402, 402, 402, 402, 402, 356, 402, 402,
+ 403, 403, 403, 403, 403, 403, 355, 403, 403, 403,
+ 403, 354, 403, 404, 353, 404, 404, 404, 404, 404,
+
+ 404, 404, 404, 404, 351, 404, 405, 405, 405, 405,
+ 405, 405, 350, 405, 405, 405, 405, 405, 405, 406,
+ 406, 347, 406, 406, 406, 406, 406, 406, 406, 406,
+ 407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
+ 407, 346, 407, 408, 408, 408, 408, 408, 345, 408,
+ 408, 408, 408, 408, 409, 409, 409, 409, 409, 409,
+ 409, 409, 409, 409, 409, 344, 409, 410, 410, 343,
+ 410, 410, 410, 410, 410, 410, 410, 410, 410, 411,
+ 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
+ 411, 411, 412, 412, 412, 412, 412, 342, 412, 412,
+
+ 412, 412, 412, 412, 413, 413, 341, 340, 413, 338,
+ 413, 413, 337, 413, 413, 336, 413, 414, 414, 334,
+ 414, 333, 332, 414, 414, 331, 414, 414, 330, 414,
+ 415, 415, 415, 415, 415, 415, 415, 415, 415, 415,
+ 415, 329, 415, 416, 328, 416, 416, 416, 416, 416,
+ 416, 416, 416, 416, 416, 416, 420, 327, 420, 420,
+ 420, 420, 420, 420, 420, 420, 326, 420, 420, 325,
+ 324, 322, 321, 320, 319, 318, 317, 315, 314, 313,
+ 312, 311, 310, 309, 308, 306, 305, 304, 300, 296,
+ 294, 293, 292, 291, 289, 288, 287, 285, 284, 283,
+
+ 281, 280, 277, 276, 274, 270, 269, 267, 265, 264,
+ 263, 261, 259, 258, 257, 256, 255, 253, 252, 251,
+ 249, 248, 247, 246, 245, 244, 243, 242, 241, 240,
+ 235, 234, 233, 232, 231, 230, 229, 228, 227, 226,
+ 225, 224, 223, 222, 221, 220, 219, 218, 217, 216,
+ 215, 214, 213, 212, 211, 210, 209, 208, 207, 206,
+ 205, 204, 199, 195, 194, 191, 189, 186, 180, 179,
+ 178, 177, 176, 175, 174, 173, 172, 171, 169, 168,
+ 167, 165, 164, 163, 161, 159, 158, 157, 155, 126,
+ 121, 116, 110, 107, 103, 97, 96, 95, 92, 90,
+
+ 88, 86, 85, 82, 73, 48, 44, 23, 8, 7,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390
} ;
static yy_state_type yy_last_accepting_state;
extern int yy_flex_debug;
int yy_flex_debug = 1;
-static yyconst short int yy_rule_linenum[101] =
+static yyconst short int yy_rule_linenum[102] =
{ 0,
- 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, 154, 155, 156, 157, 159, 160, 161, 166,
- 169, 172, 175, 176, 179, 182, 185, 193, 199, 215,
- 216, 227, 239, 240, 241, 258, 267, 269, 289, 304,
- 306, 326, 338, 342, 343, 344, 345, 346, 347, 348,
- 349, 350, 356, 367, 373, 374, 376, 378, 396, 402,
- 403, 405, 407, 425, 428, 431, 432, 435, 446, 457,
- 459, 461, 464, 465, 468, 488, 495, 496, 497, 517
-
+ 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, 250, 251, 252, 253, 254, 256,
+ 258, 264, 278, 281, 284, 285, 288, 291, 294, 302,
+ 308, 324, 325, 335, 340, 356, 357, 373, 374, 386,
+ 396, 416, 432, 452, 464, 478, 479, 480, 481, 482,
+ 483, 484, 485, 486, 497, 503, 514, 520, 521, 522,
+ 524, 542, 548, 549, 550, 552, 570, 573, 576, 577,
+ 580, 591, 603, 605, 607, 610, 613, 633, 640, 641,
+
+ 661
} ;
/* The intent behind this definition is that it'll catch
#define YY_STACK_USED 1
#line 26 "scan-gram.l"
#include "system.h"
+#include "mbswidth.h"
#include "complain.h"
#include "quote.h"
#include "getargs.h"
#define YY_USER_INIT \
do { \
LOCATION_RESET (*yylloc); \
+ yylloc->file = infile; \
/* This is only to avoid GCC warnings. */ \
if (yycontrol) {;}; \
} while (0)
-#define YY_USER_ACTION LOCATION_COLUMNS (*yylloc, yyleng)
-#define YY_LINES LOCATION_LINES (*yylloc, yyleng); lineno += yyleng;
+#define YY_USER_ACTION extend_location (yylloc, yytext, yyleng);
#define YY_STEP LOCATION_STEP (*yylloc)
+#define YY_INPUT(buf, result, size) ((result) = no_cr_read (yyin, buf, size))
+
+
+/* Read bytes from FP into buffer BUF of size SIZE. Return the
+ number of bytes read. Remove '\r' from input, treating \r\n
+ and isolated \r as \n. */
+
+static size_t
+no_cr_read (FILE *fp, char *buf, size_t size)
+{
+ size_t s = fread (buf, 1, size, fp);
+ if (s)
+ {
+ char *w = memchr (buf, '\r', s);
+ if (w)
+ {
+ char const *r = ++w;
+ char const *lim = buf + s;
+
+ for (;;)
+ {
+ /* Found an '\r'. Treat it like '\n', but ignore any
+ '\n' that immediately follows. */
+ w[-1] = '\n';
+ if (r == lim)
+ {
+ int ch = getc (fp);
+ if (ch != '\n' && ungetc (ch, fp) != ch)
+ break;
+ }
+ else if (*r == '\n')
+ r++;
+
+ /* Copy until the next '\r'. */
+ do
+ {
+ if (r == lim)
+ return w - buf;
+ }
+ while ((*w++ = *r++) != '\r');
+ }
+
+ return w - buf;
+ }
+ }
+
+ return s;
+}
+
+
+/* Extend *LOC to account for token TOKEN of size SIZE. */
+
+static void
+extend_location (location_t *loc, char const *token, int size)
+{
+ int line = loc->last_line;
+ int column = loc->last_column;
+ char const *p0 = token;
+ char const *p = token;
+ char const *lim = token + size;
+
+ for (p = token; p < lim; p++)
+ switch (*p)
+ {
+ case '\r':
+ /* \r shouldn't survive no_cr_read. */
+ abort ();
+
+ case '\n':
+ line++;
+ column = 1;
+ p0 = p + 1;
+ break;
+
+ case '\t':
+ column += mbsnwidth (p0, p - p0, 0);
+ column += 8 - ((column - 1) & 7);
+ p0 = p + 1;
+ break;
+ }
+
+ loc->last_line = line;
+ loc->last_column = column + mbsnwidth (p0, p - p0, 0);
+}
+
+
+
/* STRING_OBSTACK -- Used to store all the characters that we need to
keep (to construct ID, STRINGS etc.). Use the following macros to
use it.
static int braces_level = 0;
static int percent_percent_count = 0;
-static void handle_dollar PARAMS ((braced_code_t code_kind,
- char *cp, location_t location));
-static void handle_at PARAMS ((braced_code_t code_kind,
- char *cp, location_t location));
+/* Within well-formed rules, RULE_LENGTH is the number of values in
+ the current rule so far, which says where to find `$0' with respect
+ to the top of the stack. It is not the same as the rule->length in
+ the case of mid rule actions.
+
+ Outside of well-formed rules, RULE_LENGTH has an undefined value. */
+static int rule_length;
+
+static void handle_dollar (braced_code_t code_kind,
+ char *cp, location_t location);
+static void handle_at (braced_code_t code_kind,
+ char *cp, location_t location);
+static int convert_ucn_to_byte (char const *hex_text);
#define SC_COMMENT 1
+#define SC_LINE_COMMENT 2
+#define SC_YACC_COMMENT 3
-#define SC_STRING 2
-#define SC_CHARACTER 3
+#define SC_STRING 4
+#define SC_CHARACTER 5
-#define SC_ESCAPED_STRING 4
-#define SC_ESCAPED_CHARACTER 5
+#define SC_ESCAPED_STRING 6
+#define SC_ESCAPED_CHARACTER 7
-#define SC_BRACED_CODE 6
-#define SC_PROLOGUE 7
-#define SC_EPILOGUE 8
+#define SC_BRACED_CODE 8
+#define SC_PROLOGUE 9
+#define SC_EPILOGUE 10
-#line 828 "lex.yy.c"
+/* POSIX says that a tag must be both an id and a C union member, but
+ historically almost any character is allowed in a tag. We disallow
+ NUL and newline, as this simplifies our implementation. */
+/* Zero or more instances of backslash-newline. Following GCC, allow
+ white space between the backslash and the newline. */
+#line 933 "scan-gram.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
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); \
- } \
- }
+ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
+ && ferror( yyin ) ) \
+ YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 97 "scan-gram.l"
+#line 202 "scan-gram.l"
/* At each yylex invocation, mark the current position as the
start of the next token. */
-#define TR_POS 0
-#if TR_POS
- fprintf (stderr, "FOO1: %p: ", yylloc);
- LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, "\n");
-#endif
YY_STEP;
-#if TR_POS
- fprintf (stderr, "BAR1: ");
- LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, "\n");
-#endif
/*----------------------------.
| Scanning Bison directives. |
`----------------------------*/
-#line 1013 "lex.yy.c"
+#line 1096 "scan-gram.c"
if ( yy_init )
{
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 >= 380 )
+ if ( yy_current_state >= 391 )
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] != 840 );
+ while ( yy_base[yy_current_state] != 811 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
{
if ( yy_act == 0 )
fprintf( stderr, "--scanner backing up\n" );
- else if ( yy_act < 101 )
+ else if ( yy_act < 102 )
fprintf( stderr, "--accepting rule at line %d (\"%s\")\n",
yy_rule_linenum[yy_act], yytext );
- else if ( yy_act == 101 )
+ else if ( yy_act == 102 )
fprintf( stderr, "--accepting default rule (\"%s\")\n",
yytext );
- else if ( yy_act == 102 )
+ else if ( yy_act == 103 )
fprintf( stderr, "--(end of buffer or a NUL)\n" );
else
fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
case 1:
YY_RULE_SETUP
-#line 121 "scan-gram.l"
+#line 215 "scan-gram.l"
return PERCENT_NONASSOC;
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 122 "scan-gram.l"
+#line 216 "scan-gram.l"
return PERCENT_DEBUG;
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 123 "scan-gram.l"
+#line 217 "scan-gram.l"
return PERCENT_DEFINE;
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 124 "scan-gram.l"
+#line 218 "scan-gram.l"
return PERCENT_DEFINES;
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 125 "scan-gram.l"
+#line 219 "scan-gram.l"
return PERCENT_DESTRUCTOR;
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 126 "scan-gram.l"
+#line 220 "scan-gram.l"
return PERCENT_DPREC;
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 127 "scan-gram.l"
+#line 221 "scan-gram.l"
return PERCENT_ERROR_VERBOSE;
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 128 "scan-gram.l"
+#line 222 "scan-gram.l"
return PERCENT_EXPECT;
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 129 "scan-gram.l"
+#line 223 "scan-gram.l"
return PERCENT_FILE_PREFIX;
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 130 "scan-gram.l"
+#line 224 "scan-gram.l"
return PERCENT_YACC;
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 131 "scan-gram.l"
+#line 225 "scan-gram.l"
return PERCENT_GLR_PARSER;
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 132 "scan-gram.l"
+#line 226 "scan-gram.l"
return PERCENT_LEFT;
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 133 "scan-gram.l"
+#line 227 "scan-gram.l"
return PERCENT_LOCATIONS;
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 134 "scan-gram.l"
+#line 228 "scan-gram.l"
return PERCENT_MERGE;
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 135 "scan-gram.l"
+#line 229 "scan-gram.l"
return PERCENT_NAME_PREFIX;
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 136 "scan-gram.l"
+#line 230 "scan-gram.l"
return PERCENT_NO_LINES;
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 137 "scan-gram.l"
+#line 231 "scan-gram.l"
return PERCENT_NONASSOC;
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 138 "scan-gram.l"
+#line 232 "scan-gram.l"
return PERCENT_NTERM;
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 139 "scan-gram.l"
+#line 233 "scan-gram.l"
return PERCENT_OUTPUT;
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 140 "scan-gram.l"
-return PERCENT_PREC;
+#line 234 "scan-gram.l"
+return PERCENT_PARSE_PARAM;
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 141 "scan-gram.l"
-return PERCENT_PRINTER;
+#line 235 "scan-gram.l"
+rule_length--; return PERCENT_PREC;
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 142 "scan-gram.l"
-return PERCENT_PURE_PARSER;
+#line 236 "scan-gram.l"
+return PERCENT_PRINTER;
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 143 "scan-gram.l"
-return PERCENT_RIGHT;
+#line 237 "scan-gram.l"
+return PERCENT_PURE_PARSER;
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 144 "scan-gram.l"
-return PERCENT_SKELETON;
+#line 238 "scan-gram.l"
+return PERCENT_RIGHT;
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 145 "scan-gram.l"
-return PERCENT_START;
+#line 239 "scan-gram.l"
+return PERCENT_LEX_PARAM;
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 146 "scan-gram.l"
-return PERCENT_TOKEN;
+#line 240 "scan-gram.l"
+return PERCENT_SKELETON;
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 147 "scan-gram.l"
-return PERCENT_TOKEN;
+#line 241 "scan-gram.l"
+return PERCENT_START;
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 148 "scan-gram.l"
-return PERCENT_TOKEN_TABLE;
+#line 242 "scan-gram.l"
+return PERCENT_TOKEN;
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 149 "scan-gram.l"
-return PERCENT_TYPE;
+#line 243 "scan-gram.l"
+return PERCENT_TOKEN;
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 150 "scan-gram.l"
-return PERCENT_UNION;
+#line 244 "scan-gram.l"
+return PERCENT_TOKEN_TABLE;
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 151 "scan-gram.l"
-return PERCENT_VERBOSE;
+#line 245 "scan-gram.l"
+return PERCENT_TYPE;
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 152 "scan-gram.l"
-return PERCENT_YACC;
+#line 246 "scan-gram.l"
+return PERCENT_UNION;
YY_BREAK
case 33:
YY_RULE_SETUP
-#line 154 "scan-gram.l"
-return EQUAL;
+#line 247 "scan-gram.l"
+return PERCENT_VERBOSE;
YY_BREAK
case 34:
YY_RULE_SETUP
-#line 155 "scan-gram.l"
-return COLON;
+#line 248 "scan-gram.l"
+return PERCENT_YACC;
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 156 "scan-gram.l"
-return PIPE;
+#line 250 "scan-gram.l"
+return EQUAL;
YY_BREAK
case 36:
YY_RULE_SETUP
-#line 157 "scan-gram.l"
-return SEMICOLON;
+#line 251 "scan-gram.l"
+rule_length = 0; return COLON;
YY_BREAK
case 37:
YY_RULE_SETUP
-#line 159 "scan-gram.l"
-YY_LINES; YY_STEP;
+#line 252 "scan-gram.l"
+rule_length = 0; return PIPE;
YY_BREAK
case 38:
YY_RULE_SETUP
-#line 160 "scan-gram.l"
-YY_STEP;
+#line 253 "scan-gram.l"
+return COMMA;
YY_BREAK
case 39:
YY_RULE_SETUP
-#line 161 "scan-gram.l"
+#line 254 "scan-gram.l"
+return SEMICOLON;
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 256 "scan-gram.l"
+YY_STEP;
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 258 "scan-gram.l"
{
yylval->symbol = symbol_get (yytext, *yylloc);
+ rule_length++;
return ID;
}
YY_BREAK
-case 40:
+case 42:
YY_RULE_SETUP
-#line 166 "scan-gram.l"
-yylval->integer = strtol (yytext, 0, 10); return INT;
+#line 264 "scan-gram.l"
+{
+ unsigned long num;
+ errno = 0;
+ num = strtoul (yytext, 0, 10);
+ if (INT_MAX < num || errno)
+ {
+ complain_at (*yylloc, _("%s is invalid"), yytext);
+ num = INT_MAX;
+ }
+ yylval->integer = num;
+ return INT;
+ }
YY_BREAK
/* Characters. We don't check there is only one. */
-case 41:
+case 43:
YY_RULE_SETUP
-#line 169 "scan-gram.l"
+#line 278 "scan-gram.l"
YY_OBS_GROW; yy_push_state (SC_ESCAPED_CHARACTER);
YY_BREAK
/* Strings. */
-case 42:
+case 44:
YY_RULE_SETUP
-#line 172 "scan-gram.l"
+#line 281 "scan-gram.l"
YY_OBS_GROW; yy_push_state (SC_ESCAPED_STRING);
YY_BREAK
/* Comments. */
-case 43:
+case 45:
YY_RULE_SETUP
-#line 175 "scan-gram.l"
-yy_push_state (SC_COMMENT);
+#line 284 "scan-gram.l"
+BEGIN SC_YACC_COMMENT;
YY_BREAK
-case 44:
+case 46:
YY_RULE_SETUP
-#line 176 "scan-gram.l"
+#line 285 "scan-gram.l"
YY_STEP;
YY_BREAK
/* Prologue. */
-case 45:
+case 47:
YY_RULE_SETUP
-#line 179 "scan-gram.l"
+#line 288 "scan-gram.l"
yy_push_state (SC_PROLOGUE);
YY_BREAK
/* Code in between braces. */
-case 46:
+case 48:
YY_RULE_SETUP
-#line 182 "scan-gram.l"
+#line 291 "scan-gram.l"
YY_OBS_GROW; ++braces_level; yy_push_state (SC_BRACED_CODE);
YY_BREAK
/* A type. */
-case 47:
+case 49:
YY_RULE_SETUP
-#line 185 "scan-gram.l"
+#line 294 "scan-gram.l"
{
obstack_grow (&string_obstack, yytext + 1, yyleng - 2);
YY_OBS_FINISH;
return TYPE;
}
YY_BREAK
-case 48:
+case 50:
YY_RULE_SETUP
-#line 193 "scan-gram.l"
+#line 302 "scan-gram.l"
{
if (++percent_percent_count == 2)
yy_push_state (SC_EPILOGUE);
return PERCENT_PERCENT;
}
YY_BREAK
-case 49:
+case 51:
YY_RULE_SETUP
-#line 199 "scan-gram.l"
+#line 308 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": invalid character: `%c'\n", *yytext);
+ fprintf (stderr, _(": invalid character: `%c'\n"), *yytext);
YY_STEP;
}
YY_BREAK
-/*------------------------------------------------------------.
- | Whatever the start condition (but those which correspond to |
- | entity `swallowed' by Bison: SC_ESCAPED_STRING and |
- | SC_ESCAPED_CHARACTER), no M4 character must escape as is. |
- `------------------------------------------------------------*/
+/*-------------------------------------------------------------------.
+ | Whatever the start condition (but those which correspond to |
+ | entities `swallowed' by Bison: SC_YACC_COMMENT, SC_ESCAPED_STRING, |
+ | and SC_ESCAPED_CHARACTER), no M4 character must escape as is. |
+ `-------------------------------------------------------------------*/
-case 50:
+case 52:
YY_RULE_SETUP
-#line 215 "scan-gram.l"
-if (YY_START != SC_COMMENT) obstack_sgrow (&string_obstack, "@<:@");
+#line 324 "scan-gram.l"
+obstack_sgrow (&string_obstack, "@<:@");
YY_BREAK
-case 51:
+case 53:
YY_RULE_SETUP
-#line 216 "scan-gram.l"
-if (YY_START != SC_COMMENT) obstack_sgrow (&string_obstack, "@:>@");
+#line 325 "scan-gram.l"
+obstack_sgrow (&string_obstack, "@:>@");
YY_BREAK
-/*-----------------------------------------------------------.
- | Scanning a C comment. The initial `/ *' is already eaten. |
- `-----------------------------------------------------------*/
+/*---------------------------------------------------------------.
+ | Scanning a Yacc comment. The initial `/ *' is already eaten. |
+ `---------------------------------------------------------------*/
-case 52:
+case 54:
YY_RULE_SETUP
-#line 227 "scan-gram.l"
-{ /* End of the comment. */
- if (yy_top_state () == INITIAL)
- {
- YY_STEP;
- }
- else
- {
- YY_OBS_GROW;
- }
- yy_pop_state ();
+#line 335 "scan-gram.l"
+{
+ YY_STEP;
+ BEGIN INITIAL;
}
YY_BREAK
-case 53:
+case 55:
YY_RULE_SETUP
-#line 239 "scan-gram.l"
-if (yy_top_state () != INITIAL) YY_OBS_GROW;
+#line 340 "scan-gram.l"
+;
YY_BREAK
-case 54:
+case YY_STATE_EOF(SC_YACC_COMMENT):
+#line 342 "scan-gram.l"
+{
+ LOCATION_PRINT (stderr, *yylloc);
+ fprintf (stderr, _(": unexpected end of file in a comment\n"));
+ BEGIN INITIAL;
+ }
+ YY_BREAK
+
+/*------------------------------------------------------------.
+ | Scanning a C comment. The initial `/ *' is already eaten. |
+ `------------------------------------------------------------*/
+
+
+case 56:
YY_RULE_SETUP
-#line 240 "scan-gram.l"
-if (yy_top_state () != INITIAL) YY_OBS_GROW; YY_LINES;
+#line 356 "scan-gram.l"
+YY_OBS_GROW; yy_pop_state ();
YY_BREAK
-case 55:
+case 57:
YY_RULE_SETUP
-#line 241 "scan-gram.l"
-/* Stray `*'. */if (yy_top_state () != INITIAL) YY_OBS_GROW;
+#line 357 "scan-gram.l"
+YY_OBS_GROW;
YY_BREAK
case YY_STATE_EOF(SC_COMMENT):
-#line 243 "scan-gram.l"
+#line 359 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a comment\n");
+ fprintf (stderr, _(": unexpected end of file in a comment\n"));
yy_pop_state ();
}
YY_BREAK
+/*--------------------------------------------------------------.
+ | Scanning a line comment. The initial `//' is already eaten. |
+ `--------------------------------------------------------------*/
+
+
+case 58:
+YY_RULE_SETUP
+#line 373 "scan-gram.l"
+YY_OBS_GROW; yy_pop_state ();
+ YY_BREAK
+case 59:
+YY_RULE_SETUP
+#line 374 "scan-gram.l"
+YY_OBS_GROW;
+ YY_BREAK
+case YY_STATE_EOF(SC_LINE_COMMENT):
+#line 375 "scan-gram.l"
+yy_pop_state ();
+ YY_BREAK
+
/*----------------------------------------------------------------.
| Scanning a C string, including its escapes. The initial `"' is |
| already eaten. |
`----------------------------------------------------------------*/
-case 56:
+case 60:
YY_RULE_SETUP
-#line 258 "scan-gram.l"
+#line 386 "scan-gram.l"
{
assert (yy_top_state () == INITIAL);
YY_OBS_GROW;
YY_OBS_FINISH;
yylval->string = last_string;
yy_pop_state ();
+ rule_length++;
return STRING;
}
YY_BREAK
-case 57:
+case 61:
YY_RULE_SETUP
-#line 267 "scan-gram.l"
+#line 396 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 58:
-YY_RULE_SETUP
-#line 269 "scan-gram.l"
-obstack_1grow (&string_obstack, '\n'); YY_LINES;
- YY_BREAK
case YY_STATE_EOF(SC_ESCAPED_STRING):
-#line 271 "scan-gram.l"
+#line 398 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a string\n");
+ fprintf (stderr, _(": unexpected end of file in a string\n"));
assert (yy_top_state () == INITIAL);
YY_OBS_FINISH;
yylval->string = last_string;
`---------------------------------------------------------------*/
-case 59:
+case 62:
YY_RULE_SETUP
-#line 289 "scan-gram.l"
+#line 416 "scan-gram.l"
{
YY_OBS_GROW;
assert (yy_top_state () == INITIAL);
(unsigned char) last_string[1], *yylloc);
YY_OBS_FREE;
yy_pop_state ();
+ rule_length++;
return ID;
}
}
YY_BREAK
-case 60:
+case 63:
YY_RULE_SETUP
-#line 304 "scan-gram.l"
+#line 432 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 61:
-YY_RULE_SETUP
-#line 306 "scan-gram.l"
-obstack_1grow (&string_obstack, '\n'); YY_LINES;
- YY_BREAK
case YY_STATE_EOF(SC_ESCAPED_CHARACTER):
-#line 308 "scan-gram.l"
+#line 434 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a character\n");
+ fprintf (stderr, _(": unexpected end of file in a character\n"));
assert (yy_top_state () == INITIAL);
YY_OBS_FINISH;
yylval->string = last_string;
`----------------------------*/
-case 62:
+case 64:
YY_RULE_SETUP
-#line 326 "scan-gram.l"
+#line 452 "scan-gram.l"
{
- long c = strtol (yytext + 1, 0, 8);
- if (c > 255)
+ unsigned long c = strtoul (yytext + 1, 0, 8);
+ if (UCHAR_MAX < c)
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": invalid escape: %s\n", quote (yytext));
+ fprintf (stderr, _(": invalid escape: %s\n"), quote (yytext));
YY_STEP;
}
else
obstack_1grow (&string_obstack, c);
}
YY_BREAK
-case 63:
+case 65:
YY_RULE_SETUP
-#line 338 "scan-gram.l"
+#line 464 "scan-gram.l"
{
- obstack_1grow (&string_obstack, strtol (yytext + 2, 0, 16));
+ unsigned long c;
+ errno = 0;
+ c = strtoul (yytext + 2, 0, 16);
+ if (UCHAR_MAX < c || errno)
+ {
+ LOCATION_PRINT (stderr, *yylloc);
+ fprintf (stderr, _(": invalid escape: %s\n"), quote (yytext));
+ YY_STEP;
+ }
+ else
+ obstack_1grow (&string_obstack, c);
}
YY_BREAK
-case 64:
+case 66:
YY_RULE_SETUP
-#line 342 "scan-gram.l"
+#line 478 "scan-gram.l"
obstack_1grow (&string_obstack, '\a');
YY_BREAK
-case 65:
+case 67:
YY_RULE_SETUP
-#line 343 "scan-gram.l"
+#line 479 "scan-gram.l"
obstack_1grow (&string_obstack, '\b');
YY_BREAK
-case 66:
+case 68:
YY_RULE_SETUP
-#line 344 "scan-gram.l"
+#line 480 "scan-gram.l"
obstack_1grow (&string_obstack, '\f');
YY_BREAK
-case 67:
+case 69:
YY_RULE_SETUP
-#line 345 "scan-gram.l"
+#line 481 "scan-gram.l"
obstack_1grow (&string_obstack, '\n');
YY_BREAK
-case 68:
+case 70:
YY_RULE_SETUP
-#line 346 "scan-gram.l"
+#line 482 "scan-gram.l"
obstack_1grow (&string_obstack, '\r');
YY_BREAK
-case 69:
+case 71:
YY_RULE_SETUP
-#line 347 "scan-gram.l"
+#line 483 "scan-gram.l"
obstack_1grow (&string_obstack, '\t');
YY_BREAK
-case 70:
+case 72:
YY_RULE_SETUP
-#line 348 "scan-gram.l"
+#line 484 "scan-gram.l"
obstack_1grow (&string_obstack, '\v');
YY_BREAK
-case 71:
+case 73:
YY_RULE_SETUP
-#line 349 "scan-gram.l"
+#line 485 "scan-gram.l"
obstack_1grow (&string_obstack, yytext[1]);
YY_BREAK
-case 72:
+case 74:
YY_RULE_SETUP
-#line 350 "scan-gram.l"
+#line 486 "scan-gram.l"
+{
+ int c = convert_ucn_to_byte (yytext);
+ if (c < 0)
+ {
+ LOCATION_PRINT (stderr, *yylloc);
+ fprintf (stderr, _(": invalid escape: %s\n"), quote (yytext));
+ YY_STEP;
+ }
+ else
+ obstack_1grow (&string_obstack, c);
+ }
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
+#line 497 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unrecognized escape: %s\n", quote (yytext));
+ fprintf (stderr, _(": unrecognized escape: %s\n"), quote (yytext));
YY_OBS_GROW;
}
YY_BREAK
/* FLex wants this rule, in case of a `\<<EOF>>'. */
-case 73:
+case 76:
YY_RULE_SETUP
-#line 356 "scan-gram.l"
+#line 503 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
`----------------------------------------------------------*/
-case 74:
+case 77:
YY_RULE_SETUP
-#line 367 "scan-gram.l"
+#line 514 "scan-gram.l"
{
YY_OBS_GROW;
assert (yy_top_state () != INITIAL);
yy_pop_state ();
}
YY_BREAK
-case 75:
+case 78:
YY_RULE_SETUP
-#line 373 "scan-gram.l"
+#line 520 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 76:
+case 79:
YY_RULE_SETUP
-#line 374 "scan-gram.l"
+#line 521 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-/* FLex wants this rule, in case of a `\<<EOF>>'. */
-case 77:
+case 80:
YY_RULE_SETUP
-#line 376 "scan-gram.l"
+#line 522 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 78:
+/* Needed for `\<<EOF>>', `\\<<newline>>[', and `\\<<newline>>]'. */
+case 81:
YY_RULE_SETUP
-#line 378 "scan-gram.l"
-YY_OBS_GROW; YY_LINES;
+#line 524 "scan-gram.l"
+YY_OBS_GROW;
YY_BREAK
case YY_STATE_EOF(SC_CHARACTER):
-#line 380 "scan-gram.l"
+#line 526 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a character\n");
+ fprintf (stderr, _(": unexpected end of file in a character\n"));
assert (yy_top_state () != INITIAL);
yy_pop_state ();
}
`----------------------------------------------------------------*/
-case 79:
+case 82:
YY_RULE_SETUP
-#line 396 "scan-gram.l"
+#line 542 "scan-gram.l"
{
assert (yy_top_state () != INITIAL);
YY_OBS_GROW;
yy_pop_state ();
}
YY_BREAK
-case 80:
+case 83:
YY_RULE_SETUP
-#line 402 "scan-gram.l"
+#line 548 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 81:
+case 84:
YY_RULE_SETUP
-#line 403 "scan-gram.l"
+#line 549 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-/* FLex wants this rule, in case of a `\<<EOF>>'. */
-case 82:
+case 85:
YY_RULE_SETUP
-#line 405 "scan-gram.l"
+#line 550 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 83:
+/* Needed for `\<<EOF>>', `\\<<newline>>[', and `\\<<newline>>]'. */
+case 86:
YY_RULE_SETUP
-#line 407 "scan-gram.l"
-YY_OBS_GROW; YY_LINES;
+#line 552 "scan-gram.l"
+YY_OBS_GROW;
YY_BREAK
case YY_STATE_EOF(SC_STRING):
-#line 409 "scan-gram.l"
+#line 554 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a string\n");
+ fprintf (stderr, _(": unexpected end of file in a string\n"));
assert (yy_top_state () != INITIAL);
yy_pop_state ();
}
/* Characters. We don't check there is only one. */
-case 84:
+case 87:
YY_RULE_SETUP
-#line 425 "scan-gram.l"
+#line 570 "scan-gram.l"
YY_OBS_GROW; yy_push_state (SC_CHARACTER);
YY_BREAK
/* Strings. */
-case 85:
+case 88:
YY_RULE_SETUP
-#line 428 "scan-gram.l"
+#line 573 "scan-gram.l"
YY_OBS_GROW; yy_push_state (SC_STRING);
YY_BREAK
/* Comments. */
-case 86:
+case 89:
YY_RULE_SETUP
-#line 431 "scan-gram.l"
+#line 576 "scan-gram.l"
YY_OBS_GROW; yy_push_state (SC_COMMENT);
YY_BREAK
-case 87:
+case 90:
YY_RULE_SETUP
-#line 432 "scan-gram.l"
-YY_OBS_GROW;
+#line 577 "scan-gram.l"
+YY_OBS_GROW; yy_push_state (SC_LINE_COMMENT);
YY_BREAK
/* Not comments. */
-case 88:
+case 91:
YY_RULE_SETUP
-#line 435 "scan-gram.l"
+#line 580 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
`---------------------------------------------------------------*/
-case 89:
+case 92:
YY_RULE_SETUP
-#line 446 "scan-gram.l"
+#line 591 "scan-gram.l"
{
YY_OBS_GROW;
if (--braces_level == 0)
yy_pop_state ();
YY_OBS_FINISH;
yylval->string = last_string;
+ rule_length++;
return BRACED_CODE;
}
}
YY_BREAK
-case 90:
+case 93:
YY_RULE_SETUP
-#line 457 "scan-gram.l"
+#line 603 "scan-gram.l"
YY_OBS_GROW; braces_level++;
YY_BREAK
-case 91:
+case 94:
YY_RULE_SETUP
-#line 459 "scan-gram.l"
+#line 605 "scan-gram.l"
{ handle_dollar (current_braced_code,
yytext, *yylloc); }
YY_BREAK
-case 92:
+case 95:
YY_RULE_SETUP
-#line 461 "scan-gram.l"
+#line 607 "scan-gram.l"
{ handle_at (current_braced_code,
yytext, *yylloc); }
YY_BREAK
-case 93:
+case 96:
YY_RULE_SETUP
-#line 464 "scan-gram.l"
+#line 610 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 94:
-YY_RULE_SETUP
-#line 465 "scan-gram.l"
-YY_OBS_GROW; YY_LINES;
- YY_BREAK
-/* A lose $, or /, or etc. */
-case 95:
+/* A stray $, or /, or etc. */
+case 97:
YY_RULE_SETUP
-#line 468 "scan-gram.l"
+#line 613 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
case YY_STATE_EOF(SC_BRACED_CODE):
-#line 470 "scan-gram.l"
+#line 615 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a braced code\n");
+ fprintf (stderr, _(": unexpected end of file in a braced code\n"));
yy_pop_state ();
YY_OBS_FINISH;
yylval->string = last_string;
`--------------------------------------------------------------*/
-case 96:
+case 98:
YY_RULE_SETUP
-#line 488 "scan-gram.l"
+#line 633 "scan-gram.l"
{
yy_pop_state ();
YY_OBS_FINISH;
return PROLOGUE;
}
YY_BREAK
-case 97:
+case 99:
YY_RULE_SETUP
-#line 495 "scan-gram.l"
+#line 640 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 98:
+case 100:
YY_RULE_SETUP
-#line 496 "scan-gram.l"
+#line 641 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
-case 99:
-YY_RULE_SETUP
-#line 497 "scan-gram.l"
-YY_OBS_GROW; YY_LINES;
- YY_BREAK
case YY_STATE_EOF(SC_PROLOGUE):
-#line 499 "scan-gram.l"
+#line 643 "scan-gram.l"
{
LOCATION_PRINT (stderr, *yylloc);
- fprintf (stderr, ": unexpected end of file in a prologue\n");
+ fprintf (stderr, _(": unexpected end of file in a prologue\n"));
yy_pop_state ();
YY_OBS_FINISH;
yylval->string = last_string;
/*---------------------------------------------------------------.
| Scanning the epilogue (everything after the second "%%", which |
- | has already been eaten. |
+ | has already been eaten). |
`---------------------------------------------------------------*/
-case 100:
+case 101:
YY_RULE_SETUP
-#line 517 "scan-gram.l"
+#line 661 "scan-gram.l"
YY_OBS_GROW;
YY_BREAK
case YY_STATE_EOF(SC_EPILOGUE):
-#line 519 "scan-gram.l"
+#line 663 "scan-gram.l"
{
yy_pop_state ();
YY_OBS_FINISH;
}
YY_BREAK
-case 101:
+case 102:
YY_RULE_SETUP
-#line 528 "scan-gram.l"
+#line 672 "scan-gram.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
-#line 1874 "lex.yy.c"
+#line 2014 "scan-gram.c"
case YY_STATE_EOF(INITIAL):
yyterminate();
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);
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 53);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
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 >= 380 )
+ if ( yy_current_state >= 391 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
register int yy_is_jam;
register char *yy_cp = yy_c_buf_p;
- register YY_CHAR yy_c = 1;
+ register YY_CHAR yy_c = 53;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
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 >= 380 )
+ if ( yy_current_state >= 391 )
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 == 379);
+ yy_is_jam = (yy_current_state == 390);
return yy_is_jam ? 0 : yy_current_state;
}
}
-#ifndef _WIN32
-#include <unistd.h>
-#else
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
-#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
return 0;
}
#endif
-#line 528 "scan-gram.l"
+#line 672 "scan-gram.l"
/*------------------------------------------------------------------.
obstack_fgrow1 (&string_obstack,
"]b4_lhs_value([%s])[", type_name);
}
- else if (isdigit (*cp) || *cp == '-')
+ else
{
- /* RULE_LENGTH is the number of values in the current rule so
- far, which says where to find `$0' with respect to the top of
- the stack. It is not the same as the rule->length in the
- case of mid rule actions. */
- int rule_length = symbol_list_length (current_rule->next);
- int n = strtol (cp, &cp, 10);
-
- if (n > rule_length)
- complain_at (location, _("invalid value: %s%d"), "$", n);
- else
+ long num;
+ errno = 0;
+ num = strtol (cp, 0, 10);
+
+ if (INT_MIN <= num && num <= rule_length && ! errno)
{
+ int n = num;
if (!type_name && n > 0)
type_name = symbol_list_n_type_name_get (current_rule, location,
n);
"]b4_rhs_value([%d], [%d], [%s])[",
rule_length, n, type_name);
}
- }
- else
- {
- complain_at (location, _("%s is invalid"), quote (text));
+ else
+ complain_at (location, _("invalid value: %s"), text);
}
}
/*---------------------------------------------------------------.
-| TEXT is expexted tp be $$ in some code associated to a symbol: |
+| TEXT is expected to be $$ in some code associated to a symbol: |
| destructor or printer. |
`---------------------------------------------------------------*/
if (*cp == '$')
obstack_sgrow (&string_obstack, "]b4_dollar_dollar[");
else
- complain_at (location, _("%s is invalid"), quote (text));
+ complain_at (location, _("%s is invalid"), quote_n (1, text));
}
{
obstack_sgrow (&string_obstack, "]b4_lhs_location[");
}
- else if (isdigit (*cp) || *cp == '-')
- {
- /* RULE_LENGTH is the number of values in the current rule so
- far, which says where to find `$0' with respect to the top of
- the stack. It is not the same as the rule->length in the
- case of mid rule actions. */
- int rule_length = symbol_list_length (current_rule->next);
- int n = strtol (cp, &cp, 10);
-
- if (n > rule_length)
- complain_at (location, _("invalid value: %s%d"), "@", n);
- else
- obstack_fgrow2 (&string_obstack, "]b4_rhs_location([%d], [%d])[",
- rule_length, n);
- }
else
{
- complain_at (location, _("%s is invalid"), quote (text));
+ long num;
+ errno = 0;
+ num = strtol (cp, 0, 10);
+
+ if (INT_MIN <= num && num <= rule_length && ! errno)
+ {
+ int n = num;
+ obstack_fgrow2 (&string_obstack, "]b4_rhs_location([%d], [%d])[",
+ rule_length, n);
+ }
+ else
+ complain_at (location, _("invalid value: %s"), text);
}
}
/*---------------------------------------------------------------.
-| TEXT is expexted tp be @$ in some code associated to a symbol: |
+| TEXT is expected to be @$ in some code associated to a symbol: |
| destructor or printer. |
`---------------------------------------------------------------*/
if (*cp == '$')
obstack_sgrow (&string_obstack, "]b4_at_dollar[");
else
- complain_at (location, _("%s is invalid"), quote (text));
+ complain_at (location, _("%s is invalid"), quote_n (1, text));
}
}
+/*------------------------------------------------------------------.
+| Convert universal character name UCN to a single-byte character, |
+| and return that character. Return -1 if UCN does not correspond |
+| to a single-byte character. |
+`------------------------------------------------------------------*/
+
+static int
+convert_ucn_to_byte (char const *ucn)
+{
+ unsigned long code = strtoul (ucn + 2, 0, 16);
+
+ /* FIXME: Currently we assume Unicode-compatible unibyte characters
+ on ASCII hosts (i.e., Latin-1 on hosts with 8-bit bytes). On
+ non-ASCII hosts we support only the portable C character set.
+ These limitations should be removed once we add support for
+ multibyte characters. */
+
+ if (UCHAR_MAX < code)
+ return -1;
+
+#if ! ('$' == 0x24 && '@' == 0x40 && '`' == 0x60 && '~' == 0x7e)
+ {
+ /* A non-ASCII host. Use CODE to index into a table of the C
+ basic execution character set, which is guaranteed to exist on
+ all Standard C platforms. This table also includes '$', '@',
+ and '`', which not in the basic execution character set but
+ which are unibyte characters on all the platforms that we know
+ about. */
+ static signed char const table[] =
+ {
+ '\0', -1, -1, -1, -1, -1, -1, '\a',
+ '\b', '\t', '\n', '\v', '\f', '\r', -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1,
+ ' ', '!', '"', '#', '$', '%', '&', '\'',
+ '(', ')', '*', '+', ',', '-', '.', '/',
+ '0', '1', '2', '3', '4', '5', '6', '7',
+ '8', '9', ':', ';', '<', '=', '>', '?',
+ '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
+ 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
+ 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
+ 'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
+ '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+ 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+ 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
+ 'x', 'y', 'z', '{', '|', '}', '~'
+ };
+
+ code = code < sizeof table ? table[code] : -1;
+ }
+#endif
+
+ return code;
+}
+
+
/*-------------------------.
| Initialize the scanner. |
`-------------------------*/