X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9280d3ef893b90b36c89fa7737512f2d640e41d9..41cce2f604996c7713d9025f8a719ea56d83783e:/src/scan-gram.c?ds=sidebyside diff --git a/src/scan-gram.c b/src/scan-gram.c index 4d9aaa1f..fc1af480 100644 --- a/src/scan-gram.c +++ b/src/scan-gram.c @@ -15,7 +15,7 @@ #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: @@ -27,7 +27,7 @@ #define YY_FLEX_MINOR_VERSION 5 #include -#include + /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus @@ -40,9 +40,7 @@ #ifdef __cplusplus #include -#ifndef _WIN32 #include -#endif /* Use prototypes in function declarations. */ #define YY_USE_PROTOS @@ -309,49 +307,54 @@ static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; -#define YY_NUM_RULES 93 -#define YY_END_OF_BUFFER 94 -static yyconst short int yy_accept[357] = +#define YY_NUM_RULES 104 +#define YY_END_OF_BUFFER 105 +static yyconst short int yy_accept[398] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 94, 45, - 34, 33, 33, 38, 45, 37, 35, 45, 36, 30, - 32, 45, 29, 42, 31, 49, 50, 50, 51, 46, - 47, 74, 76, 76, 73, 46, 93, 47, 70, 72, - 72, 69, 93, 53, 54, 54, 52, 93, 56, 57, - 57, 55, 85, 86, 86, 78, 87, 77, 87, 87, - 46, 47, 82, 81, 89, 91, 91, 78, 93, 77, - 93, 92, 92, 92, 78, 77, 92, 34, 33, 33, - 33, 33, 44, 0, 0, 0, 0, 0, 0, 0, - - 0, 0, 0, 0, 0, 0, 0, 41, 35, 39, - 40, 36, 0, 49, 50, 50, 50, 50, 48, 74, - 76, 76, 76, 76, 75, 72, 72, 72, 72, 71, - 53, 54, 54, 54, 54, 68, 67, 68, 60, 61, - 62, 63, 64, 65, 66, 68, 57, 57, 57, 57, - 85, 86, 86, 86, 86, 83, 0, 83, 0, 79, - 80, 84, 0, 84, 89, 91, 91, 91, 91, 90, - 0, 88, 92, 92, 92, 92, 92, 79, 80, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 105, 52, + 41, 40, 40, 45, 52, 44, 38, 42, 52, 43, + 36, 39, 52, 35, 49, 37, 56, 57, 57, 58, + 53, 54, 83, 86, 86, 82, 53, 85, 54, 78, + 81, 81, 77, 80, 60, 61, 61, 59, 76, 63, + 64, 64, 62, 96, 97, 97, 88, 98, 87, 91, + 98, 53, 54, 93, 92, 100, 102, 102, 88, 101, + 87, 91, 103, 103, 103, 88, 87, 91, 41, 40, + 40, 40, 40, 51, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 48, 42, 46, 47, 43, 0, 56, 57, 57, 57, + 57, 55, 83, 86, 86, 86, 86, 84, 78, 81, + 81, 81, 81, 79, 60, 61, 61, 61, 61, 75, + 74, 75, 67, 68, 69, 70, 71, 72, 73, 75, + 64, 64, 64, 64, 96, 97, 97, 97, 97, 94, + 0, 94, 0, 89, 90, 95, 0, 95, 100, 102, + 102, 102, 102, 99, 103, 103, 103, 103, 103, 89, + 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 40, 43, 0, 0, 0, 80, 80, 80, 0, + 0, 0, 0, 0, 0, 0, 0, 47, 50, 0, + 0, 0, 90, 90, 90, 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, 0, 0, 65, 66, 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, 0, 0, 28, 0, 31, 0, + 0, 34, 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, 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, 0, 0, 0, 0, 58, 59, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, - 0, 0, 0, 17, 0, 0, 0, 0, 22, 0, - 25, 0, 0, 28, 0, 2, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 15, 0, 0, 19, - 0, 21, 23, 26, 0, 1, 3, 0, 0, 7, - 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, - - 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, - 13, 14, 0, 20, 0, 0, 0, 0, 0, 11, - 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, - 0, 8, 0, 12, 18, 24, 0, 0, 6, 0, - 0, 0, 0, 0, 9, 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] = @@ -360,16 +363,16 @@ static yyconst int yy_ec[256] = 1, 2, 4, 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, - 13, 13, 13, 13, 13, 14, 14, 15, 16, 17, - 18, 19, 1, 20, 21, 21, 21, 21, 21, 21, - 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, - - 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, + 1, 9, 1, 10, 11, 12, 13, 14, 14, 14, + 14, 14, 14, 14, 14, 15, 15, 16, 17, 18, + 19, 20, 1, 21, 22, 22, 22, 22, 22, 22, + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 23, 24, 25, 1, 26, 1, 27, 28, 29, 30, + + 31, 32, 33, 34, 35, 12, 36, 37, 38, 39, + 40, 41, 12, 42, 43, 44, 45, 46, 12, 47, + 48, 12, 49, 50, 51, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -386,299 +389,324 @@ static yyconst int yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst int yy_meta[51] = +static yyconst int yy_meta[52] = { 0, 1, 1, 2, 3, 4, 5, 6, 7, 8, 1, - 9, 7, 10, 10, 1, 1, 1, 1, 11, 5, - 10, 12, 13, 12, 9, 10, 10, 10, 10, 10, - 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 5, 1, 5 + 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 } ; -static yyconst short int yy_base[383] = +static yyconst short int yy_base[424] = { 0, - 0, 0, 48, 51, 58, 61, 83, 86, 73, 94, - 108, 110, 131, 179, 227, 249, 116, 142, 798, 799, - 795, 55, 64, 799, 267, 799, 0, 44, 79, 799, - 799, 0, 799, 799, 799, 0, 97, 99, 784, 799, - 799, 0, 119, 122, 799, 799, 0, 799, 799, 126, - 138, 799, 0, 0, 145, 153, 799, 311, 799, 155, - 157, 799, 0, 159, 164, 799, 159, 799, 62, 164, - 799, 799, 799, 799, 0, 185, 189, 799, 125, 799, - 185, 192, 201, 203, 205, 207, 209, 793, 211, 213, - 216, 219, 799, 760, 763, 187, 758, 49, 198, 747, - - 199, 756, 109, 208, 751, 758, 761, 799, 0, 799, - 0, 212, 767, 0, 241, 255, 259, 261, 799, 0, - 263, 265, 272, 274, 799, 276, 278, 280, 282, 799, - 0, 284, 286, 288, 296, 799, 799, 772, 799, 799, - 799, 799, 799, 799, 799, 0, 298, 314, 316, 318, - 0, 322, 324, 326, 328, 799, 322, 326, 0, 799, - 0, 799, 330, 332, 0, 344, 347, 355, 357, 243, - 263, 799, 359, 361, 363, 365, 367, 369, 371, 746, - 349, 742, 742, 144, 750, 752, 742, 367, 748, 734, - 746, 734, 742, 743, 746, 730, 735, 729, 734, 726, - - 738, 0, 799, 752, 0, 745, 0, 375, 378, 737, - 718, 727, 717, 720, 728, 727, 726, 712, 728, 723, - 716, 725, 709, 709, 720, 717, 713, 709, 703, 706, - 712, 711, 701, 712, 710, 799, 799, 397, 696, 704, - 697, 693, 692, 704, 721, 701, 799, 686, 161, 694, - 685, 689, 681, 799, 373, 681, 693, 679, 799, 683, - 799, 682, 656, 799, 644, 799, 639, 622, 376, 601, - 603, 379, 606, 595, 596, 590, 799, 588, 590, 799, - 584, 799, 384, 799, 580, 799, 578, 591, 573, 799, - 576, 565, 555, 552, 562, 540, 799, 540, 518, 513, - - 525, 799, 509, 518, 513, 498, 500, 390, 377, 390, - 376, 378, 389, 799, 375, 372, 381, 365, 354, 359, - 799, 799, 346, 799, 360, 344, 357, 321, 313, 799, - 307, 303, 287, 799, 265, 249, 228, 214, 207, 216, - 200, 799, 193, 799, 799, 799, 172, 396, 799, 169, - 164, 91, 85, 62, 799, 799, 421, 434, 447, 460, - 473, 486, 499, 512, 517, 527, 540, 553, 564, 577, - 590, 602, 615, 628, 641, 654, 667, 85, 680, 693, - 706, 59 + 0, 0, 49, 52, 59, 62, 65, 88, 75, 90, + 94, 97, 119, 168, 217, 240, 125, 152, 857, 858, + 854, 56, 67, 858, 259, 858, 858, 0, 94, 94, + 858, 858, 0, 858, 858, 858, 0, 112, 116, 842, + 858, 858, 0, 131, 133, 858, 858, 0, 858, 0, + 142, 148, 858, 0, 0, 150, 155, 858, 304, 858, + 158, 160, 858, 0, 163, 175, 858, 181, 858, 97, + 191, 858, 858, 858, 858, 0, 179, 181, 858, 803, + 858, 130, 197, 200, 204, 206, 208, 223, 851, 210, + 212, 225, 230, 858, 817, 100, 34, 816, 813, 86, + + 818, 191, 803, 196, 812, 144, 206, 807, 814, 817, + 858, 0, 858, 0, 235, 823, 0, 248, 252, 254, + 256, 858, 0, 258, 264, 266, 268, 858, 0, 270, + 272, 274, 276, 858, 0, 278, 280, 282, 290, 858, + 858, 828, 858, 858, 858, 858, 858, 858, 858, 0, + 307, 310, 312, 316, 0, 318, 320, 322, 326, 858, + 319, 323, 0, 858, 0, 858, 325, 327, 0, 341, + 349, 351, 353, 858, 355, 357, 359, 361, 363, 365, + 367, 802, 344, 798, 797, 797, 280, 795, 341, 807, + 793, 796, 363, 802, 788, 789, 155, 788, 796, 797, + + 800, 784, 789, 783, 788, 780, 792, 0, 858, 806, + 0, 799, 0, 374, 378, 791, 772, 781, 771, 783, + 773, 781, 780, 779, 798, 764, 796, 779, 772, 773, + 766, 775, 759, 759, 756, 769, 758, 765, 761, 757, + 751, 754, 760, 759, 749, 760, 758, 858, 858, 369, + 744, 752, 745, 741, 753, 739, 751, 768, 748, 736, + 858, 735, 731, 743, 368, 738, 729, 733, 725, 738, + 858, 724, 374, 723, 735, 721, 858, 725, 858, 724, + 722, 858, 713, 858, 729, 714, 858, 380, 714, 716, + 382, 729, 728, 719, 858, 712, 713, 708, 858, 706, + + 738, 717, 706, 858, 702, 858, 384, 858, 702, 858, + 701, 714, 696, 858, 699, 700, 697, 696, 697, 694, + 704, 694, 858, 692, 690, 704, 690, 685, 671, 858, + 654, 643, 640, 612, 611, 624, 611, 617, 604, 617, + 616, 858, 598, 598, 608, 858, 594, 591, 600, 563, + 575, 567, 541, 548, 858, 858, 537, 512, 858, 526, + 511, 522, 510, 499, 497, 858, 858, 500, 382, 376, + 368, 858, 364, 351, 341, 858, 302, 309, 293, 275, + 252, 858, 244, 858, 858, 858, 858, 233, 385, 858, + 207, 163, 157, 138, 61, 858, 858, 411, 425, 439, + + 453, 467, 481, 495, 509, 138, 523, 537, 551, 563, + 577, 589, 603, 616, 630, 644, 658, 672, 46, 686, + 700, 714, 43 } ; -static yyconst short int yy_def[383] = +static yyconst short int yy_def[424] = { 0, - 356, 1, 357, 357, 358, 358, 359, 359, 360, 360, - 361, 361, 362, 362, 363, 363, 364, 364, 356, 356, - 356, 356, 356, 356, 356, 356, 365, 356, 356, 356, - 356, 366, 356, 356, 356, 367, 356, 356, 356, 356, - 356, 368, 356, 356, 356, 356, 369, 356, 356, 356, - 356, 356, 370, 371, 356, 356, 356, 372, 356, 356, - 356, 356, 373, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 374, 356, 356, 356, 375, 356, - 356, 376, 376, 376, 376, 376, 376, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - - 356, 356, 356, 356, 356, 356, 356, 356, 365, 356, - 377, 356, 366, 367, 356, 356, 356, 356, 356, 368, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 371, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 378, 356, 356, 356, 356, - 373, 356, 356, 356, 356, 356, 356, 356, 379, 356, - 380, 356, 356, 356, 374, 356, 356, 356, 356, 375, - 375, 356, 376, 376, 376, 376, 376, 376, 381, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - - 356, 377, 356, 356, 382, 379, 380, 381, 381, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 0, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356 + 397, 1, 398, 398, 399, 399, 400, 400, 401, 401, + 402, 402, 403, 403, 404, 404, 405, 405, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 406, 397, 397, + 397, 397, 407, 397, 397, 397, 408, 397, 397, 397, + 397, 397, 409, 397, 397, 397, 397, 410, 397, 411, + 397, 397, 397, 412, 413, 397, 397, 397, 414, 397, + 397, 397, 397, 415, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 416, 397, 397, 397, 397, + 397, 397, 417, 417, 417, 417, 417, 417, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 406, 397, 418, 397, 407, 408, 397, 397, 397, + 397, 397, 409, 397, 397, 397, 397, 397, 411, 397, + 397, 397, 397, 397, 413, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 419, + 397, 397, 397, 397, 415, 397, 397, 397, 397, 397, + 397, 397, 420, 397, 421, 397, 397, 397, 416, 397, + 397, 397, 397, 397, 417, 417, 417, 417, 417, 417, + 422, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + + 397, 397, 397, 397, 397, 397, 397, 418, 397, 397, + 423, 420, 421, 422, 422, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 0, 397, 397, 397, + + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397 } ; -static yyconst short int yy_nxt[850] = +static yyconst short int yy_nxt[910] = { 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, 110, 37, 38, 111, 39, 89, 90, 39, - 43, 44, 45, 43, 44, 45, 91, 92, 237, 40, - 160, 41, 40, 161, 41, 55, 56, 57, 185, 46, - 47, 48, 46, 47, 48, 50, 51, 186, 50, 51, - 52, 112, 112, 52, 205, 58, 55, 56, 57, 115, - - 116, 117, 118, 355, 46, 53, 48, 46, 53, 48, - 60, 61, 60, 61, 354, 62, 58, 62, 83, 84, - 85, 121, 122, 86, 123, 124, 353, 87, 126, 127, - 58, 171, 58, 64, 65, 66, 67, 46, 68, 48, - 128, 129, 69, 194, 83, 84, 85, 132, 133, 86, - 70, 195, 71, 87, 72, 134, 135, 147, 148, 149, - 150, 152, 153, 46, 156, 48, 154, 155, 157, 162, - 274, 158, 158, 163, 172, 159, 164, 164, 73, 216, - 74, 64, 65, 66, 67, 274, 68, 166, 167, 217, - 69, 168, 169, 160, 174, 175, 161, 352, 70, 351, - - 71, 349, 72, 174, 176, 177, 175, 174, 175, 174, - 175, 174, 175, 89, 90, 91, 92, 178, 89, 90, - 179, 91, 92, 187, 112, 112, 73, 182, 74, 76, - 77, 78, 183, 79, 80, 348, 188, 196, 81, 191, - 189, 347, 192, 115, 116, 346, 197, 345, 46, 356, - 48, 76, 77, 78, 198, 79, 80, 117, 118, 344, - 81, 115, 116, 117, 118, 121, 122, 123, 124, 171, - 46, 343, 48, 93, 121, 122, 123, 124, 126, 127, - 128, 129, 126, 127, 128, 129, 132, 133, 134, 135, - 132, 133, 356, 94, 342, 95, 96, 97, 134, 135, - - 147, 148, 98, 341, 99, 100, 101, 102, 103, 104, - 105, 106, 356, 107, 108, 137, 149, 150, 147, 148, - 149, 150, 340, 138, 152, 153, 154, 155, 152, 153, - 154, 155, 339, 137, 158, 158, 139, 140, 158, 158, - 338, 141, 164, 164, 164, 164, 166, 167, 142, 168, - 169, 143, 337, 144, 336, 145, 146, 166, 167, 168, - 169, 174, 175, 174, 176, 177, 175, 177, 175, 174, - 176, 174, 175, 174, 209, 211, 221, 174, 209, 212, - 177, 209, 279, 335, 334, 289, 333, 332, 292, 331, - 213, 221, 207, 300, 207, 330, 207, 279, 207, 207, - - 289, 207, 156, 292, 222, 350, 157, 329, 300, 158, - 158, 328, 327, 326, 325, 324, 323, 322, 321, 320, - 350, 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, 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, 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, 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, 109, 109, 113, 113, 113, - 113, 113, 113, 113, 113, 113, 113, 319, 113, 113, - 114, 318, 317, 114, 114, 114, 114, 316, 114, 114, - 114, 315, 114, 120, 314, 313, 312, 120, 120, 120, - 120, 120, 120, 120, 125, 311, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 130, 310, 130, - 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, - 131, 309, 308, 307, 131, 131, 131, 131, 131, 131, - - 131, 131, 136, 306, 136, 136, 136, 136, 136, 136, - 136, 136, 136, 136, 136, 151, 305, 304, 303, 302, - 151, 301, 151, 151, 151, 151, 299, 151, 165, 298, - 297, 296, 165, 295, 294, 165, 165, 165, 165, 293, - 165, 170, 291, 290, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 173, 173, 288, 173, 202, 287, 202, - 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, - 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, - 286, 206, 206, 207, 285, 207, 207, 207, 207, 207, - - 207, 207, 207, 207, 207, 207, 208, 208, 208, 208, - 208, 208, 208, 208, 208, 208, 208, 208, 208, 284, - 283, 282, 281, 280, 278, 277, 276, 275, 273, 272, - 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, 238, 236, 235, 234, 233, 232, 231, - 230, 229, 228, 227, 226, 225, 224, 223, 220, 219, - 218, 215, 214, 210, 204, 203, 201, 200, 199, 193, - 190, 184, 181, 180, 88, 119, 88, 356, 19, 356, - - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356 + 20, 21, 22, 23, 24, 20, 25, 26, 20, 27, + 20, 28, 29, 30, 30, 31, 32, 33, 34, 20, + 20, 28, 20, 20, 20, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 28, 35, 36, + 20, 38, 39, 249, 38, 39, 211, 40, 90, 91, + 40, 44, 45, 46, 44, 45, 46, 51, 52, 92, + 93, 41, 53, 42, 41, 185, 42, 56, 57, 58, + 186, 47, 48, 49, 47, 48, 49, 47, 54, 49, + 51, 52, 56, 57, 58, 53, 61, 62, 59, 61, + + 62, 63, 113, 396, 63, 164, 114, 115, 115, 165, + 47, 54, 49, 59, 118, 119, 189, 59, 120, 121, + 59, 65, 66, 67, 68, 190, 69, 84, 85, 86, + 183, 70, 87, 124, 125, 126, 127, 88, 164, 71, + 184, 72, 165, 73, 130, 131, 112, 47, 112, 49, + 132, 133, 136, 137, 84, 85, 86, 138, 139, 87, + 151, 152, 153, 154, 88, 156, 157, 74, 395, 75, + 65, 66, 67, 68, 47, 69, 49, 158, 159, 200, + 70, 170, 171, 172, 173, 236, 160, 201, 71, 237, + 72, 161, 73, 394, 162, 162, 166, 393, 163, 176, + + 177, 167, 176, 178, 168, 168, 179, 177, 176, 177, + 176, 177, 90, 91, 92, 93, 74, 192, 75, 77, + 78, 79, 196, 80, 81, 176, 177, 90, 91, 82, + 193, 180, 92, 93, 194, 181, 202, 197, 392, 47, + 198, 49, 77, 78, 79, 203, 80, 81, 115, 115, + 118, 119, 82, 204, 120, 121, 118, 119, 120, 121, + 124, 125, 47, 390, 49, 94, 126, 127, 124, 125, + 126, 127, 130, 131, 132, 133, 130, 131, 132, 133, + 136, 137, 138, 139, 136, 137, 95, 389, 96, 97, + 98, 99, 138, 139, 388, 100, 101, 102, 103, 104, + + 105, 106, 107, 108, 109, 387, 110, 111, 141, 151, + 152, 141, 153, 154, 151, 152, 223, 142, 153, 154, + 156, 157, 158, 159, 156, 157, 224, 141, 158, 159, + 143, 144, 162, 162, 386, 145, 162, 162, 168, 168, + 168, 168, 146, 170, 171, 147, 385, 148, 384, 149, + 150, 172, 173, 170, 171, 172, 173, 176, 177, 176, + 178, 179, 177, 179, 177, 176, 178, 176, 177, 176, + 215, 217, 226, 231, 160, 218, 176, 215, 296, 161, + 179, 215, 162, 162, 303, 383, 219, 227, 231, 213, + 313, 213, 316, 296, 328, 391, 213, 382, 213, 303, + + 213, 232, 213, 381, 380, 313, 379, 316, 378, 328, + 391, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 50, + 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, + 50, 50, 50, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 60, 60, 60, + 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, + 60, 64, 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 76, 76, 76, 76, 76, + + 76, 76, 76, 76, 76, 76, 76, 76, 76, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 116, 116, 116, 116, 116, 116, 116, + 116, 116, 116, 116, 377, 116, 116, 117, 376, 375, + 117, 117, 117, 117, 374, 117, 117, 117, 117, 373, + 117, 123, 372, 371, 370, 123, 123, 123, 123, 123, + 123, 123, 123, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 129, 369, 368, + 129, 129, 129, 367, 129, 129, 129, 129, 129, 134, + 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, + + 134, 134, 134, 135, 366, 365, 364, 135, 135, 135, + 135, 135, 135, 135, 135, 135, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 155, 363, 362, 361, 360, 155, 359, 155, 155, 358, + 155, 155, 357, 155, 169, 356, 355, 354, 169, 353, + 352, 169, 169, 351, 169, 169, 350, 169, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 349, 175, 208, 348, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 212, 212, 212, 212, + 212, 212, 212, 212, 212, 212, 212, 347, 212, 212, + + 213, 346, 213, 213, 213, 213, 213, 213, 213, 213, + 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, + 214, 214, 214, 214, 214, 214, 214, 214, 345, 344, + 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, + 333, 332, 331, 330, 329, 327, 326, 325, 324, 323, + 322, 321, 320, 319, 318, 317, 315, 314, 312, 311, + 310, 309, 308, 307, 306, 305, 304, 302, 301, 300, + 299, 298, 297, 295, 294, 293, 292, 291, 290, 289, + 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, 256, 255, 254, 253, 252, 251, 250, 248, + 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, + 235, 234, 233, 230, 229, 228, 225, 222, 221, 220, + 216, 210, 209, 207, 206, 205, 199, 195, 191, 188, + 187, 182, 89, 174, 122, 89, 397, 19, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + + 397, 397, 397, 397, 397, 397, 397, 397, 397 } ; -static yyconst short int yy_chk[850] = +static yyconst short int yy_chk[910] = { 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, 382, 3, - 69, 3, 4, 69, 4, 9, 9, 9, 98, 5, - 5, 5, 6, 6, 6, 7, 7, 98, 8, 8, - 7, 29, 29, 8, 378, 9, 10, 10, 10, 37, - - 37, 38, 38, 354, 7, 7, 7, 8, 8, 8, - 11, 11, 12, 12, 353, 11, 10, 12, 17, 17, - 17, 43, 43, 17, 44, 44, 352, 17, 50, 50, - 11, 79, 12, 13, 13, 13, 13, 17, 13, 17, - 51, 51, 13, 103, 18, 18, 18, 55, 55, 18, - 13, 103, 13, 18, 13, 56, 56, 60, 60, 61, - 61, 64, 64, 18, 67, 18, 65, 65, 67, 70, - 249, 67, 67, 70, 79, 67, 70, 70, 13, 184, - 13, 14, 14, 14, 14, 249, 14, 76, 76, 184, - 14, 77, 77, 81, 82, 82, 81, 351, 14, 350, - - 14, 347, 14, 83, 83, 84, 84, 85, 85, 86, - 86, 87, 87, 89, 89, 90, 90, 87, 91, 91, - 87, 92, 92, 99, 112, 112, 14, 96, 14, 15, - 15, 15, 96, 15, 15, 343, 99, 104, 15, 101, - 99, 341, 101, 115, 115, 340, 104, 339, 15, 170, - 15, 16, 16, 16, 104, 16, 16, 116, 116, 338, - 16, 117, 117, 118, 118, 121, 121, 122, 122, 171, - 16, 337, 16, 25, 123, 123, 124, 124, 126, 126, - 127, 127, 128, 128, 129, 129, 132, 132, 133, 133, - 134, 134, 170, 25, 336, 25, 25, 25, 135, 135, - - 147, 147, 25, 335, 25, 25, 25, 25, 25, 25, - 25, 25, 171, 25, 25, 58, 148, 148, 149, 149, - 150, 150, 333, 58, 152, 152, 153, 153, 154, 154, - 155, 155, 332, 58, 157, 157, 58, 58, 158, 158, - 331, 58, 163, 163, 164, 164, 166, 166, 58, 167, - 167, 58, 329, 58, 328, 58, 58, 168, 168, 169, - 169, 173, 173, 174, 174, 175, 175, 176, 176, 177, - 177, 178, 178, 179, 179, 181, 188, 208, 208, 181, - 209, 209, 255, 327, 326, 269, 325, 323, 272, 320, - 181, 188, 179, 283, 179, 319, 208, 255, 208, 209, - - 269, 209, 238, 272, 188, 348, 238, 318, 283, 238, - 238, 317, 316, 315, 313, 312, 311, 310, 309, 308, - 348, 357, 357, 357, 357, 357, 357, 357, 357, 357, - 357, 357, 357, 357, 358, 358, 358, 358, 358, 358, - 358, 358, 358, 358, 358, 358, 358, 359, 359, 359, - 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - 360, 360, 360, 361, 361, 361, 361, 361, 361, 361, - 361, 361, 361, 361, 361, 361, 362, 362, 362, 362, - 362, 362, 362, 362, 362, 362, 362, 362, 362, 363, - - 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, - 363, 363, 364, 364, 364, 364, 364, 364, 364, 364, - 364, 364, 364, 364, 364, 365, 365, 366, 366, 366, - 366, 366, 366, 366, 366, 366, 366, 307, 366, 366, - 367, 306, 305, 367, 367, 367, 367, 304, 367, 367, - 367, 303, 367, 368, 301, 300, 299, 368, 368, 368, - 368, 368, 368, 368, 369, 298, 369, 369, 369, 369, - 369, 369, 369, 369, 369, 369, 369, 370, 296, 370, - 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, - 371, 295, 294, 293, 371, 371, 371, 371, 371, 371, - - 371, 371, 372, 292, 372, 372, 372, 372, 372, 372, - 372, 372, 372, 372, 372, 373, 291, 289, 288, 287, - 373, 285, 373, 373, 373, 373, 281, 373, 374, 279, - 278, 276, 374, 275, 274, 374, 374, 374, 374, 273, - 374, 375, 271, 270, 375, 375, 375, 375, 375, 375, - 375, 375, 375, 375, 376, 376, 376, 376, 376, 376, - 376, 376, 376, 376, 376, 268, 376, 377, 267, 377, - 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, - 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, - 265, 379, 379, 380, 263, 380, 380, 380, 380, 380, - - 380, 380, 380, 380, 380, 380, 381, 381, 381, 381, - 381, 381, 381, 381, 381, 381, 381, 381, 381, 262, - 260, 258, 257, 256, 253, 252, 251, 250, 248, 246, - 245, 244, 243, 242, 241, 240, 239, 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, 206, 204, 201, 200, 199, 198, 197, - 196, 195, 194, 193, 192, 191, 190, 189, 187, 186, - 185, 183, 182, 180, 138, 113, 107, 106, 105, 102, - 100, 97, 95, 94, 88, 39, 21, 19, 356, 356, - - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356, 356, - 356, 356, 356, 356, 356, 356, 356, 356, 356 + 1, 3, 3, 423, 4, 4, 419, 3, 22, 22, + 4, 5, 5, 5, 6, 6, 6, 7, 7, 23, + 23, 3, 7, 3, 4, 97, 4, 9, 9, 9, + 97, 5, 5, 5, 6, 6, 6, 7, 7, 7, + 8, 8, 10, 10, 10, 8, 11, 11, 9, 12, + + 12, 11, 29, 395, 12, 70, 29, 30, 30, 70, + 8, 8, 8, 10, 38, 38, 100, 11, 39, 39, + 12, 13, 13, 13, 13, 100, 13, 17, 17, 17, + 96, 13, 17, 44, 44, 45, 45, 17, 82, 13, + 96, 13, 82, 13, 51, 51, 406, 17, 406, 17, + 52, 52, 56, 56, 18, 18, 18, 57, 57, 18, + 61, 61, 62, 62, 18, 65, 65, 13, 394, 13, + 14, 14, 14, 14, 18, 14, 18, 66, 66, 106, + 14, 77, 77, 78, 78, 197, 68, 106, 14, 197, + 14, 68, 14, 393, 68, 68, 71, 392, 68, 83, + + 83, 71, 84, 84, 71, 71, 85, 85, 86, 86, + 87, 87, 90, 90, 91, 91, 14, 102, 14, 15, + 15, 15, 104, 15, 15, 88, 88, 92, 92, 15, + 102, 88, 93, 93, 102, 88, 107, 104, 391, 15, + 104, 15, 16, 16, 16, 107, 16, 16, 115, 115, + 118, 118, 16, 107, 119, 119, 120, 120, 121, 121, + 124, 124, 16, 388, 16, 25, 125, 125, 126, 126, + 127, 127, 130, 130, 131, 131, 132, 132, 133, 133, + 136, 136, 137, 137, 138, 138, 25, 383, 25, 25, + 25, 25, 139, 139, 381, 25, 25, 25, 25, 25, + + 25, 25, 25, 25, 25, 380, 25, 25, 59, 151, + 151, 59, 152, 152, 153, 153, 187, 59, 154, 154, + 156, 156, 157, 157, 158, 158, 187, 59, 159, 159, + 59, 59, 161, 161, 379, 59, 162, 162, 167, 167, + 168, 168, 59, 170, 170, 59, 378, 59, 377, 59, + 59, 171, 171, 172, 172, 173, 173, 175, 175, 176, + 176, 177, 177, 178, 178, 179, 179, 180, 180, 181, + 181, 183, 189, 193, 250, 183, 214, 214, 265, 250, + 215, 215, 250, 250, 273, 375, 183, 189, 193, 181, + 288, 181, 291, 265, 307, 389, 214, 374, 214, 273, + + 215, 193, 215, 373, 371, 288, 370, 291, 369, 307, + 389, 398, 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, 399, 400, + 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, + 400, 400, 400, 401, 401, 401, 401, 401, 401, 401, + 401, 401, 401, 401, 401, 401, 401, 402, 402, 402, + 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, + 402, 403, 403, 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, 405, + 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, + 405, 405, 405, 407, 407, 407, 407, 407, 407, 407, + 407, 407, 407, 407, 368, 407, 407, 408, 365, 364, + 408, 408, 408, 408, 363, 408, 408, 408, 408, 362, + 408, 409, 361, 360, 358, 409, 409, 409, 409, 409, + 409, 409, 409, 410, 410, 410, 410, 410, 410, 410, + 410, 410, 410, 410, 410, 410, 410, 411, 357, 354, + 411, 411, 411, 353, 411, 411, 411, 411, 411, 412, + 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, + + 412, 412, 412, 413, 352, 351, 350, 413, 413, 413, + 413, 413, 413, 413, 413, 413, 414, 414, 414, 414, + 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, + 415, 349, 348, 347, 345, 415, 344, 415, 415, 343, + 415, 415, 341, 415, 416, 340, 339, 338, 416, 337, + 336, 416, 416, 335, 416, 416, 334, 416, 417, 417, + 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, + 333, 417, 418, 332, 418, 418, 418, 418, 418, 418, + 418, 418, 418, 418, 418, 418, 420, 420, 420, 420, + 420, 420, 420, 420, 420, 420, 420, 331, 420, 420, + + 421, 329, 421, 421, 421, 421, 421, 421, 421, 421, + 421, 421, 421, 421, 422, 422, 422, 422, 422, 422, + 422, 422, 422, 422, 422, 422, 422, 422, 328, 327, + 326, 325, 324, 322, 321, 320, 319, 318, 317, 316, + 315, 313, 312, 311, 309, 305, 303, 302, 301, 300, + 298, 297, 296, 294, 293, 292, 290, 289, 286, 285, + 283, 281, 280, 278, 276, 275, 274, 272, 270, 269, + 268, 267, 266, 264, 263, 262, 260, 259, 258, 257, + 256, 255, 254, 253, 252, 251, 247, 246, 245, 244, + 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, + + 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, + 223, 222, 221, 220, 219, 218, 217, 216, 212, 210, + 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, + 196, 195, 194, 192, 191, 190, 188, 186, 185, 184, + 182, 142, 116, 110, 109, 108, 105, 103, 101, 99, + 98, 95, 89, 80, 40, 21, 19, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, + + 397, 397, 397, 397, 397, 397, 397, 397, 397 } ; static yy_state_type yy_last_accepting_state; @@ -687,19 +715,20 @@ static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 1; -static yyconst short int yy_rule_linenum[93] = +static yyconst short int yy_rule_linenum[104] = { 0, - 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, 151, 152, - 153, 154, 156, 157, 158, 163, 166, 169, 172, 173, - 176, 179, 182, 190, 196, 212, 213, 224, 236, 237, - 238, 255, 264, 266, 286, 300, 302, 322, 334, 338, - 339, 340, 341, 342, 343, 344, 345, 346, 361, 367, - 368, 370, 388, 394, 395, 397, 415, 418, 421, 422, - 433, 444, 446, 458, 460, 461, 464, 484, 491, 492, - 493, 514 - + 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, 154, 155, 156, 157, 158, 160, + 161, 162, 168, 171, 174, 177, 178, 181, 184, 187, + 195, 201, 217, 218, 229, 241, 242, 243, 260, 270, + 272, 292, 308, 310, 330, 342, 346, 347, 348, 349, + 350, 351, 352, 353, 354, 360, 371, 377, 378, 380, + 382, 400, 406, 407, 409, 411, 429, 432, 435, 436, + 439, 450, 462, 464, 466, 469, 470, 473, 493, 500, + + 501, 502, 522 } ; /* The intent behind this definition is that it'll catch @@ -747,14 +776,14 @@ char *yytext; #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_STEP LOCATION_STEP (*yylloc) - +#define YY_USER_ACTION LOCATION_COLUMNS (*yylloc, yyleng); +#define YY_LINES LOCATION_LINES (*yylloc, yyleng); +#define YY_STEP LOCATION_STEP (*yylloc); /* STRING_OBSTACK -- Used to store all the characters that we need to keep (to construct ID, STRINGS etc.). Use the following macros to @@ -789,13 +818,21 @@ scanner_last_string_free (void) } - static int braces_level = 0; static int percent_percent_count = 0; -static void handle_action_dollar PARAMS ((char *cp, location_t location)); -static void handle_destructor_dollar PARAMS ((char *cp, location_t location)); -static void handle_at PARAMS ((char *cp)); +/* 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); #define SC_COMMENT 1 @@ -809,7 +846,7 @@ static void handle_at PARAMS ((char *cp)); #define SC_PROLOGUE 7 #define SC_EPILOGUE 8 -#line 813 "lex.yy.c" +#line 850 "scan-gram.c" /* Macros after this point can all be overridden by user definitions in * section 1. @@ -909,20 +946,9 @@ YY_MALLOC_DECL 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();" - @@ -971,30 +997,19 @@ YY_DECL register char *yy_cp, *yy_bp; register int yy_act; -#line 98 "scan-gram.l" +#line 106 "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 998 "lex.yy.c" +#line 1013 "scan-gram.c" if ( yy_init ) { @@ -1045,13 +1060,13 @@ yy_match: 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 >= 357 ) + if ( yy_current_state >= 398 ) 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] != 799 ); + while ( yy_base[yy_current_state] != 858 ); yy_find_action: yy_act = yy_accept[yy_current_state]; @@ -1071,13 +1086,13 @@ do_action: /* This label is used only to access EOF actions. */ { if ( yy_act == 0 ) fprintf( stderr, "--scanner backing up\n" ); - else if ( yy_act < 93 ) + else if ( yy_act < 104 ) fprintf( stderr, "--accepting rule at line %d (\"%s\")\n", yy_rule_linenum[yy_act], yytext ); - else if ( yy_act == 93 ) + else if ( yy_act == 104 ) fprintf( stderr, "--accepting default rule (\"%s\")\n", yytext ); - else if ( yy_act == 94 ) + else if ( yy_act == 105 ) fprintf( stderr, "--(end of buffer or a NUL)\n" ); else fprintf( stderr, "--EOF (start condition %d)\n", YY_START ); @@ -1096,226 +1111,262 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 122 "scan-gram.l" +#line 119 "scan-gram.l" return PERCENT_NONASSOC; YY_BREAK case 2: YY_RULE_SETUP -#line 123 "scan-gram.l" +#line 120 "scan-gram.l" return PERCENT_DEBUG; YY_BREAK case 3: YY_RULE_SETUP -#line 124 "scan-gram.l" +#line 121 "scan-gram.l" return PERCENT_DEFINE; YY_BREAK case 4: YY_RULE_SETUP -#line 125 "scan-gram.l" +#line 122 "scan-gram.l" return PERCENT_DEFINES; YY_BREAK case 5: YY_RULE_SETUP -#line 126 "scan-gram.l" +#line 123 "scan-gram.l" return PERCENT_DESTRUCTOR; YY_BREAK case 6: YY_RULE_SETUP -#line 127 "scan-gram.l" -return PERCENT_ERROR_VERBOSE; +#line 124 "scan-gram.l" +return PERCENT_DPREC; YY_BREAK case 7: YY_RULE_SETUP -#line 128 "scan-gram.l" -return PERCENT_EXPECT; +#line 125 "scan-gram.l" +return PERCENT_ERROR_VERBOSE; YY_BREAK case 8: YY_RULE_SETUP -#line 129 "scan-gram.l" -return PERCENT_FILE_PREFIX; +#line 126 "scan-gram.l" +return PERCENT_EXPECT; YY_BREAK case 9: YY_RULE_SETUP -#line 130 "scan-gram.l" -return PERCENT_YACC; +#line 127 "scan-gram.l" +return PERCENT_FILE_PREFIX; YY_BREAK case 10: YY_RULE_SETUP -#line 131 "scan-gram.l" -return PERCENT_LEFT; +#line 128 "scan-gram.l" +return PERCENT_YACC; YY_BREAK case 11: YY_RULE_SETUP -#line 132 "scan-gram.l" -return PERCENT_LOCATIONS; +#line 129 "scan-gram.l" +return PERCENT_GLR_PARSER; YY_BREAK case 12: YY_RULE_SETUP +#line 130 "scan-gram.l" +return PERCENT_LEFT; + YY_BREAK +case 13: +YY_RULE_SETUP +#line 131 "scan-gram.l" +return PERCENT_LOCATIONS; + YY_BREAK +case 14: +YY_RULE_SETUP +#line 132 "scan-gram.l" +return PERCENT_MERGE; + YY_BREAK +case 15: +YY_RULE_SETUP #line 133 "scan-gram.l" return PERCENT_NAME_PREFIX; YY_BREAK -case 13: +case 16: YY_RULE_SETUP #line 134 "scan-gram.l" return PERCENT_NO_LINES; YY_BREAK -case 14: +case 17: YY_RULE_SETUP #line 135 "scan-gram.l" return PERCENT_NONASSOC; YY_BREAK -case 15: +case 18: YY_RULE_SETUP #line 136 "scan-gram.l" return PERCENT_NTERM; YY_BREAK -case 16: +case 19: YY_RULE_SETUP #line 137 "scan-gram.l" return PERCENT_OUTPUT; YY_BREAK -case 17: +case 20: YY_RULE_SETUP #line 138 "scan-gram.l" -return PERCENT_PREC; +return PERCENT_PARSE_PARAM; YY_BREAK -case 18: +case 21: YY_RULE_SETUP #line 139 "scan-gram.l" -return PERCENT_PURE_PARSER; +{ rule_length--; return PERCENT_PREC; } YY_BREAK -case 19: +case 22: YY_RULE_SETUP #line 140 "scan-gram.l" -return PERCENT_RIGHT; +return PERCENT_PRINTER; YY_BREAK -case 20: +case 23: YY_RULE_SETUP #line 141 "scan-gram.l" -return PERCENT_SKELETON; +return PERCENT_PURE_PARSER; YY_BREAK -case 21: +case 24: YY_RULE_SETUP #line 142 "scan-gram.l" -return PERCENT_START; +return PERCENT_RIGHT; YY_BREAK -case 22: +case 25: YY_RULE_SETUP #line 143 "scan-gram.l" -return PERCENT_TOKEN; +return PERCENT_LEX_PARAM; YY_BREAK -case 23: +case 26: YY_RULE_SETUP #line 144 "scan-gram.l" -return PERCENT_TOKEN; +return PERCENT_SKELETON; YY_BREAK -case 24: +case 27: YY_RULE_SETUP #line 145 "scan-gram.l" -return PERCENT_TOKEN_TABLE; +return PERCENT_START; YY_BREAK -case 25: +case 28: YY_RULE_SETUP #line 146 "scan-gram.l" -return PERCENT_TYPE; +return PERCENT_TOKEN; YY_BREAK -case 26: +case 29: YY_RULE_SETUP #line 147 "scan-gram.l" -return PERCENT_UNION; +return PERCENT_TOKEN; YY_BREAK -case 27: +case 30: YY_RULE_SETUP #line 148 "scan-gram.l" -return PERCENT_VERBOSE; +return PERCENT_TOKEN_TABLE; YY_BREAK -case 28: +case 31: YY_RULE_SETUP #line 149 "scan-gram.l" -return PERCENT_YACC; +return PERCENT_TYPE; YY_BREAK -case 29: +case 32: +YY_RULE_SETUP +#line 150 "scan-gram.l" +return PERCENT_UNION; + YY_BREAK +case 33: YY_RULE_SETUP #line 151 "scan-gram.l" -return EQUAL; +return PERCENT_VERBOSE; YY_BREAK -case 30: +case 34: YY_RULE_SETUP #line 152 "scan-gram.l" -return COLON; +return PERCENT_YACC; YY_BREAK -case 31: +case 35: YY_RULE_SETUP -#line 153 "scan-gram.l" -return PIPE; +#line 154 "scan-gram.l" +return EQUAL; YY_BREAK -case 32: +case 36: YY_RULE_SETUP -#line 154 "scan-gram.l" -return SEMICOLON; +#line 155 "scan-gram.l" +{ rule_length = 0; return COLON; } YY_BREAK -case 33: +case 37: YY_RULE_SETUP #line 156 "scan-gram.l" -YY_LINES; YY_STEP; +{ rule_length = 0; return PIPE; } YY_BREAK -case 34: +case 38: YY_RULE_SETUP #line 157 "scan-gram.l" -YY_STEP; +return COMMA; YY_BREAK -case 35: +case 39: YY_RULE_SETUP #line 158 "scan-gram.l" +return SEMICOLON; + YY_BREAK +case 40: +YY_RULE_SETUP +#line 160 "scan-gram.l" +YY_LINES; YY_STEP; + YY_BREAK +case 41: +YY_RULE_SETUP +#line 161 "scan-gram.l" +YY_STEP; + YY_BREAK +case 42: +YY_RULE_SETUP +#line 162 "scan-gram.l" { - yylval->symbol = getsym (yytext, *yylloc); + yylval->symbol = symbol_get (yytext, *yylloc); + rule_length++; return ID; } YY_BREAK -case 36: +case 43: YY_RULE_SETUP -#line 163 "scan-gram.l" +#line 168 "scan-gram.l" yylval->integer = strtol (yytext, 0, 10); return INT; YY_BREAK /* Characters. We don't check there is only one. */ -case 37: +case 44: YY_RULE_SETUP -#line 166 "scan-gram.l" +#line 171 "scan-gram.l" YY_OBS_GROW; yy_push_state (SC_ESCAPED_CHARACTER); YY_BREAK /* Strings. */ -case 38: +case 45: YY_RULE_SETUP -#line 169 "scan-gram.l" +#line 174 "scan-gram.l" YY_OBS_GROW; yy_push_state (SC_ESCAPED_STRING); YY_BREAK /* Comments. */ -case 39: +case 46: YY_RULE_SETUP -#line 172 "scan-gram.l" +#line 177 "scan-gram.l" yy_push_state (SC_COMMENT); YY_BREAK -case 40: +case 47: YY_RULE_SETUP -#line 173 "scan-gram.l" +#line 178 "scan-gram.l" YY_STEP; YY_BREAK /* Prologue. */ -case 41: +case 48: YY_RULE_SETUP -#line 176 "scan-gram.l" +#line 181 "scan-gram.l" yy_push_state (SC_PROLOGUE); YY_BREAK /* Code in between braces. */ -case 42: +case 49: YY_RULE_SETUP -#line 179 "scan-gram.l" +#line 184 "scan-gram.l" YY_OBS_GROW; ++braces_level; yy_push_state (SC_BRACED_CODE); YY_BREAK /* A type. */ -case 43: +case 50: YY_RULE_SETUP -#line 182 "scan-gram.l" +#line 187 "scan-gram.l" { obstack_grow (&string_obstack, yytext + 1, yyleng - 2); YY_OBS_FINISH; @@ -1323,21 +1374,21 @@ YY_RULE_SETUP return TYPE; } YY_BREAK -case 44: +case 51: YY_RULE_SETUP -#line 190 "scan-gram.l" +#line 195 "scan-gram.l" { if (++percent_percent_count == 2) yy_push_state (SC_EPILOGUE); return PERCENT_PERCENT; } YY_BREAK -case 45: +case 52: YY_RULE_SETUP -#line 196 "scan-gram.l" +#line 201 "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 @@ -1349,14 +1400,14 @@ YY_RULE_SETUP `------------------------------------------------------------*/ -case 46: +case 53: YY_RULE_SETUP -#line 212 "scan-gram.l" +#line 217 "scan-gram.l" if (YY_START != SC_COMMENT) obstack_sgrow (&string_obstack, "@<:@"); YY_BREAK -case 47: +case 54: YY_RULE_SETUP -#line 213 "scan-gram.l" +#line 218 "scan-gram.l" if (YY_START != SC_COMMENT) obstack_sgrow (&string_obstack, "@:>@"); YY_BREAK @@ -1365,9 +1416,9 @@ if (YY_START != SC_COMMENT) obstack_sgrow (&string_obstack, "@:>@"); `-----------------------------------------------------------*/ -case 48: +case 55: YY_RULE_SETUP -#line 224 "scan-gram.l" +#line 229 "scan-gram.l" { /* End of the comment. */ if (yy_top_state () == INITIAL) { @@ -1380,26 +1431,26 @@ YY_RULE_SETUP yy_pop_state (); } YY_BREAK -case 49: +case 56: YY_RULE_SETUP -#line 236 "scan-gram.l" +#line 241 "scan-gram.l" if (yy_top_state () != INITIAL) YY_OBS_GROW; YY_BREAK -case 50: +case 57: YY_RULE_SETUP -#line 237 "scan-gram.l" +#line 242 "scan-gram.l" if (yy_top_state () != INITIAL) YY_OBS_GROW; YY_LINES; YY_BREAK -case 51: +case 58: YY_RULE_SETUP -#line 238 "scan-gram.l" +#line 243 "scan-gram.l" /* Stray `*'. */if (yy_top_state () != INITIAL) YY_OBS_GROW; YY_BREAK case YY_STATE_EOF(SC_COMMENT): -#line 240 "scan-gram.l" +#line 245 "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 @@ -1410,33 +1461,34 @@ case YY_STATE_EOF(SC_COMMENT): `----------------------------------------------------------------*/ -case 52: +case 59: YY_RULE_SETUP -#line 255 "scan-gram.l" +#line 260 "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 53: +case 60: YY_RULE_SETUP -#line 264 "scan-gram.l" +#line 270 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 54: +case 61: YY_RULE_SETUP -#line 266 "scan-gram.l" +#line 272 "scan-gram.l" obstack_1grow (&string_obstack, '\n'); YY_LINES; YY_BREAK case YY_STATE_EOF(SC_ESCAPED_STRING): -#line 268 "scan-gram.l" +#line 274 "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; @@ -1451,38 +1503,40 @@ case YY_STATE_EOF(SC_ESCAPED_STRING): `---------------------------------------------------------------*/ -case 55: +case 62: YY_RULE_SETUP -#line 286 "scan-gram.l" +#line 292 "scan-gram.l" { YY_OBS_GROW; assert (yy_top_state () == INITIAL); { YY_OBS_FINISH; - yylval->symbol = getsym (last_string, *yylloc); - symbol_class_set (yylval->symbol, token_sym); - symbol_user_token_number_set (yylval->symbol, last_string[1]); + yylval->symbol = symbol_get (last_string, *yylloc); + symbol_class_set (yylval->symbol, token_sym, *yylloc); + symbol_user_token_number_set (yylval->symbol, + (unsigned char) last_string[1], *yylloc); YY_OBS_FREE; yy_pop_state (); + rule_length++; return ID; } } YY_BREAK -case 56: +case 63: YY_RULE_SETUP -#line 300 "scan-gram.l" +#line 308 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 57: +case 64: YY_RULE_SETUP -#line 302 "scan-gram.l" +#line 310 "scan-gram.l" obstack_1grow (&string_obstack, '\n'); YY_LINES; YY_BREAK case YY_STATE_EOF(SC_ESCAPED_CHARACTER): -#line 304 "scan-gram.l" +#line 312 "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; @@ -1496,77 +1550,83 @@ case YY_STATE_EOF(SC_ESCAPED_CHARACTER): `----------------------------*/ -case 58: +case 65: YY_RULE_SETUP -#line 322 "scan-gram.l" +#line 330 "scan-gram.l" { long c = strtol (yytext + 1, 0, 8); if (c > 255) { LOCATION_PRINT (stderr, *yylloc); - fprintf (stderr, ": invalid escape: %s\n", yytext); + fprintf (stderr, _(": invalid escape: %s\n"), quote (yytext)); YY_STEP; } else obstack_1grow (&string_obstack, c); } YY_BREAK -case 59: +case 66: YY_RULE_SETUP -#line 334 "scan-gram.l" +#line 342 "scan-gram.l" { obstack_1grow (&string_obstack, strtol (yytext + 2, 0, 16)); } YY_BREAK -case 60: +case 67: YY_RULE_SETUP -#line 338 "scan-gram.l" +#line 346 "scan-gram.l" obstack_1grow (&string_obstack, '\a'); YY_BREAK -case 61: +case 68: YY_RULE_SETUP -#line 339 "scan-gram.l" +#line 347 "scan-gram.l" obstack_1grow (&string_obstack, '\b'); YY_BREAK -case 62: +case 69: YY_RULE_SETUP -#line 340 "scan-gram.l" +#line 348 "scan-gram.l" obstack_1grow (&string_obstack, '\f'); YY_BREAK -case 63: +case 70: YY_RULE_SETUP -#line 341 "scan-gram.l" +#line 349 "scan-gram.l" obstack_1grow (&string_obstack, '\n'); YY_BREAK -case 64: +case 71: YY_RULE_SETUP -#line 342 "scan-gram.l" +#line 350 "scan-gram.l" obstack_1grow (&string_obstack, '\r'); YY_BREAK -case 65: +case 72: YY_RULE_SETUP -#line 343 "scan-gram.l" +#line 351 "scan-gram.l" obstack_1grow (&string_obstack, '\t'); YY_BREAK -case 66: +case 73: YY_RULE_SETUP -#line 344 "scan-gram.l" +#line 352 "scan-gram.l" obstack_1grow (&string_obstack, '\v'); YY_BREAK -case 67: +case 74: YY_RULE_SETUP -#line 345 "scan-gram.l" +#line 353 "scan-gram.l" obstack_1grow (&string_obstack, yytext[1]); YY_BREAK -case 68: +case 75: YY_RULE_SETUP -#line 346 "scan-gram.l" +#line 354 "scan-gram.l" { LOCATION_PRINT (stderr, *yylloc); - fprintf (stderr, ": unrecognized escape: %s\n", yytext); + fprintf (stderr, _(": unrecognized escape: %s\n"), quote (yytext)); YY_OBS_GROW; } YY_BREAK +/* FLex wants this rule, in case of a `\<>'. */ +case 76: +YY_RULE_SETUP +#line 360 "scan-gram.l" +YY_OBS_GROW; + YY_BREAK /*----------------------------------------------------------. | Scanning a C character without decoding its escapes. The | @@ -1574,35 +1634,41 @@ YY_RULE_SETUP `----------------------------------------------------------*/ -case 69: +case 77: YY_RULE_SETUP -#line 361 "scan-gram.l" +#line 371 "scan-gram.l" { YY_OBS_GROW; assert (yy_top_state () != INITIAL); yy_pop_state (); } YY_BREAK -case 70: +case 78: YY_RULE_SETUP -#line 367 "scan-gram.l" +#line 377 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 71: +case 79: YY_RULE_SETUP -#line 368 "scan-gram.l" +#line 378 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 72: +/* FLex wants this rule, in case of a `\<>'. */ +case 80: YY_RULE_SETUP -#line 370 "scan-gram.l" +#line 380 "scan-gram.l" +YY_OBS_GROW; + YY_BREAK +case 81: +YY_RULE_SETUP +#line 382 "scan-gram.l" YY_OBS_GROW; YY_LINES; YY_BREAK case YY_STATE_EOF(SC_CHARACTER): -#line 372 "scan-gram.l" +#line 384 "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 (); } @@ -1614,35 +1680,41 @@ case YY_STATE_EOF(SC_CHARACTER): `----------------------------------------------------------------*/ -case 73: +case 82: YY_RULE_SETUP -#line 388 "scan-gram.l" +#line 400 "scan-gram.l" { assert (yy_top_state () != INITIAL); YY_OBS_GROW; yy_pop_state (); } YY_BREAK -case 74: +case 83: YY_RULE_SETUP -#line 394 "scan-gram.l" +#line 406 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 75: +case 84: YY_RULE_SETUP -#line 395 "scan-gram.l" +#line 407 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 76: +/* FLex wants this rule, in case of a `\<>'. */ +case 85: +YY_RULE_SETUP +#line 409 "scan-gram.l" +YY_OBS_GROW; + YY_BREAK +case 86: YY_RULE_SETUP -#line 397 "scan-gram.l" +#line 411 "scan-gram.l" YY_OBS_GROW; YY_LINES; YY_BREAK case YY_STATE_EOF(SC_STRING): -#line 399 "scan-gram.l" +#line 413 "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 (); } @@ -1654,26 +1726,32 @@ case YY_STATE_EOF(SC_STRING): /* Characters. We don't check there is only one. */ -case 77: +case 87: YY_RULE_SETUP -#line 415 "scan-gram.l" +#line 429 "scan-gram.l" YY_OBS_GROW; yy_push_state (SC_CHARACTER); YY_BREAK /* Strings. */ -case 78: +case 88: YY_RULE_SETUP -#line 418 "scan-gram.l" +#line 432 "scan-gram.l" YY_OBS_GROW; yy_push_state (SC_STRING); YY_BREAK /* Comments. */ -case 79: +case 89: YY_RULE_SETUP -#line 421 "scan-gram.l" +#line 435 "scan-gram.l" YY_OBS_GROW; yy_push_state (SC_COMMENT); YY_BREAK -case 80: +case 90: +YY_RULE_SETUP +#line 436 "scan-gram.l" +YY_OBS_GROW; + YY_BREAK +/* Not comments. */ +case 91: YY_RULE_SETUP -#line 422 "scan-gram.l" +#line 439 "scan-gram.l" YY_OBS_GROW; YY_BREAK @@ -1683,9 +1761,9 @@ YY_OBS_GROW; `---------------------------------------------------------------*/ -case 81: +case 92: YY_RULE_SETUP -#line 433 "scan-gram.l" +#line 450 "scan-gram.l" { YY_OBS_GROW; if (--braces_level == 0) @@ -1693,57 +1771,49 @@ YY_RULE_SETUP yy_pop_state (); YY_OBS_FINISH; yylval->string = last_string; + rule_length++; return BRACED_CODE; } } YY_BREAK -case 82: +case 93: YY_RULE_SETUP -#line 444 "scan-gram.l" +#line 462 "scan-gram.l" YY_OBS_GROW; braces_level++; YY_BREAK -case 83: +case 94: YY_RULE_SETUP -#line 446 "scan-gram.l" -{ - switch (current_braced_code) - { - case action_braced_code: - handle_action_dollar (yytext, *yylloc); - break; - - case destructor_braced_code: - handle_destructor_dollar (yytext, *yylloc); - break; - } - } +#line 464 "scan-gram.l" +{ handle_dollar (current_braced_code, + yytext, *yylloc); } YY_BREAK -case 84: +case 95: YY_RULE_SETUP -#line 458 "scan-gram.l" -{ handle_at (yytext); } +#line 466 "scan-gram.l" +{ handle_at (current_braced_code, + yytext, *yylloc); } YY_BREAK -case 85: +case 96: YY_RULE_SETUP -#line 460 "scan-gram.l" +#line 469 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 86: +case 97: YY_RULE_SETUP -#line 461 "scan-gram.l" +#line 470 "scan-gram.l" YY_OBS_GROW; YY_LINES; YY_BREAK /* A lose $, or /, or etc. */ -case 87: +case 98: YY_RULE_SETUP -#line 464 "scan-gram.l" +#line 473 "scan-gram.l" YY_OBS_GROW; YY_BREAK case YY_STATE_EOF(SC_BRACED_CODE): -#line 466 "scan-gram.l" +#line 475 "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; @@ -1756,9 +1826,9 @@ case YY_STATE_EOF(SC_BRACED_CODE): `--------------------------------------------------------------*/ -case 88: +case 99: YY_RULE_SETUP -#line 484 "scan-gram.l" +#line 493 "scan-gram.l" { yy_pop_state (); YY_OBS_FINISH; @@ -1766,26 +1836,26 @@ YY_RULE_SETUP return PROLOGUE; } YY_BREAK -case 89: +case 100: YY_RULE_SETUP -#line 491 "scan-gram.l" +#line 500 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 90: +case 101: YY_RULE_SETUP -#line 492 "scan-gram.l" +#line 501 "scan-gram.l" YY_OBS_GROW; YY_BREAK -case 91: +case 102: YY_RULE_SETUP -#line 493 "scan-gram.l" +#line 502 "scan-gram.l" YY_OBS_GROW; YY_LINES; YY_BREAK case YY_STATE_EOF(SC_PROLOGUE): -#line 495 "scan-gram.l" +#line 504 "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; @@ -1799,13 +1869,13 @@ case YY_STATE_EOF(SC_PROLOGUE): `---------------------------------------------------------------*/ -case 92: +case 103: YY_RULE_SETUP -#line 514 "scan-gram.l" +#line 522 "scan-gram.l" YY_OBS_GROW; YY_BREAK case YY_STATE_EOF(SC_EPILOGUE): -#line 516 "scan-gram.l" +#line 524 "scan-gram.l" { yy_pop_state (); YY_OBS_FINISH; @@ -1814,12 +1884,12 @@ case YY_STATE_EOF(SC_EPILOGUE): } YY_BREAK -case 93: +case 104: YY_RULE_SETUP -#line 525 "scan-gram.l" +#line 533 "scan-gram.l" YY_FATAL_ERROR( "flex scanner jammed" ); YY_BREAK -#line 1823 "lex.yy.c" +#line 1893 "scan-gram.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -2111,7 +2181,7 @@ static yy_state_type yy_get_previous_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 >= 357 ) + if ( yy_current_state >= 398 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -2146,11 +2216,11 @@ yy_state_type 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 >= 357 ) + if ( yy_current_state >= 398 ) 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 == 356); + yy_is_jam = (yy_current_state == 397); return yy_is_jam ? 0 : yy_current_state; } @@ -2383,15 +2453,11 @@ YY_BUFFER_STATE b; } -#ifndef _WIN32 -#include -#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 ) @@ -2709,23 +2775,22 @@ int main() return 0; } #endif -#line 525 "scan-gram.l" +#line 533 "scan-gram.l" /*------------------------------------------------------------------. -| CP is pointing to a wannabee semantic value (i.e., a `$'). | +| TEXT is pointing to a wannabee semantic value (i.e., a `$'). | | | | Possible inputs: $[]($|integer) | | | | Output to the STRING_OBSTACK a reference to this semantic value. | `------------------------------------------------------------------*/ -static void -handle_action_dollar (char *cp, location_t location) +static inline void +handle_action_dollar (char *text, location_t location) { const char *type_name = NULL; - - ++cp; + char *cp = text + 1; /* Get the type name if explicit. */ if (*cp == '<') @@ -2749,13 +2814,8 @@ handle_action_dollar (char *cp, location_t location) obstack_fgrow1 (&string_obstack, "]b4_lhs_value([%s])[", type_name); } - else if (isdigit (*cp) || *cp == '-') + else if (('0' <= *cp && *cp <= '9') || *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) @@ -2777,75 +2837,125 @@ handle_action_dollar (char *cp, location_t location) } else { - char buf[] = "$c"; - buf[1] = *cp; - complain_at (location, _("%s is invalid"), quote (buf)); + complain_at (location, _("%s is invalid"), quote (text)); } } /*---------------------------------------------------------------. -| CP is pointing to $$ in a destructor. This should probably be | -| done once the grammar completely parsed, instead of during its | -| parsing, since that means %type must be specified before | -| %destructor. | +| TEXT is expexted tp be $$ in some code associated to a symbol: | +| destructor or printer. | `---------------------------------------------------------------*/ -static void -handle_destructor_dollar (char *cp, location_t location) +static inline void +handle_symbol_code_dollar (char *text, location_t location) { - ++cp; + char *cp = text + 1; if (*cp == '$') - { - /* FIXME: We should find something more robust. */ - obstack_sgrow (&string_obstack, "b4_dollar_dollar"); - } + obstack_sgrow (&string_obstack, "]b4_dollar_dollar["); else + complain_at (location, _("%s is invalid"), quote (text)); +} + + +/*-----------------------------------------------------------------. +| Dispatch onto handle_action_dollar, or handle_destructor_dollar, | +| depending upon CODE_KIND. | +`-----------------------------------------------------------------*/ + +static void +handle_dollar (braced_code_t braced_code_kind, + char *text, location_t location) +{ + switch (braced_code_kind) { - char buf[] = "$c"; - buf[1] = *cp; - complain_at (location, _("%s is invalid"), quote (buf)); + case action_braced_code: + handle_action_dollar (text, location); + break; + + case destructor_braced_code: + case printer_braced_code: + handle_symbol_code_dollar (text, location); + break; } } -/*-------------------------------------------------------. -| CP is pointing to a location (i.e., a `@'). Output to | -| STRING_OBSTACK a reference to this location. | -`-------------------------------------------------------*/ -static void -handle_at (char *cp) +/*------------------------------------------------------. +| TEXT is a location token (i.e., a `@...'). Output to | +| STRING_OBSTACK a reference to this location. | +`------------------------------------------------------*/ + +static inline void +handle_action_at (char *text, location_t location) { + char *cp = text + 1; locations_flag = 1; - ++cp; if (*cp == '$') { obstack_sgrow (&string_obstack, "]b4_lhs_location["); } - else if (isdigit (*cp) || *cp == '-') + else if (('0' <= *cp && *cp <= '9') || *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 (_("invalid value: %s%d"), "@", n); + complain_at (location, _("invalid value: %s%d"), "@", n); else obstack_fgrow2 (&string_obstack, "]b4_rhs_location([%d], [%d])[", rule_length, n); } else { - char buf[] = "@c"; - buf[1] = *cp; - complain (_("%s is invalid"), quote (buf)); + complain_at (location, _("%s is invalid"), quote (text)); } } + +/*---------------------------------------------------------------. +| TEXT is expexted tp be @$ in some code associated to a symbol: | +| destructor or printer. | +`---------------------------------------------------------------*/ + +static inline void +handle_symbol_code_at (char *text, location_t location) +{ + char *cp = text + 1; + if (*cp == '$') + obstack_sgrow (&string_obstack, "]b4_at_dollar["); + else + complain_at (location, _("%s is invalid"), quote (text)); +} + + +/*-------------------------------------------------------------------. +| Dispatch onto handle_action_at, or handle_destructor_at, depending | +| upon CODE_KIND. | +`-------------------------------------------------------------------*/ + +static void +handle_at (braced_code_t braced_code_kind, + char *text, location_t location) +{ + switch (braced_code_kind) + { + case action_braced_code: + handle_action_at (text, location); + break; + + case destructor_braced_code: + case printer_braced_code: + handle_symbol_code_at (text, location); + break; + } +} + + +/*-------------------------. +| Initialize the scanner. | +`-------------------------*/ + void scanner_initialize (void) { @@ -2853,8 +2963,14 @@ scanner_initialize (void) } +/*-----------------------------------------------. +| Free all the memory allocated to the scanner. | +`-----------------------------------------------*/ + void scanner_free (void) { obstack_free (&string_obstack, 0); + /* Reclaim Flex's buffers. */ + yy_delete_buffer (YY_CURRENT_BUFFER); }