diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-11-13 11:17:10 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-11-13 11:17:10 +0000 |
commit | 3cd0a11a1a8c5cc6b632f666275eeafcb6f5c950 (patch) | |
tree | ef5cb137d86c08beb687f51c2676780541be79de /perly.tab | |
parent | 0d520e8e301fa0eda31a3f68440e7e9b426a290f (diff) | |
download | perl-3cd0a11a1a8c5cc6b632f666275eeafcb6f5c950.tar.gz |
Parsing fix: it wasn't possible to call a function with a (_) prototype
(that is, a function mimicing an unary op) without parentheses.
Bug reported by Ævar Arnfjörð Bjarmason.
p4raw-id: //depot/perl@29258
Diffstat (limited to 'perly.tab')
-rw-r--r-- | perly.tab | 114 |
1 files changed, 57 insertions, 57 deletions
@@ -7,7 +7,7 @@ /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 65 /* YYNRULES -- Number of rules. */ -#define YYNRULES 207 +#define YYNRULES 208 /* YYNRULES -- Number of states. */ #define YYNSTATES 418 @@ -78,10 +78,10 @@ static const unsigned short int yyprhs[] = 525, 528, 533, 539, 544, 550, 552, 554, 556, 558, 564, 567, 569, 572, 576, 579, 581, 583, 585, 587, 589, 591, 596, 602, 604, 606, 610, 615, 619, 621, - 624, 627, 629, 632, 635, 637, 640, 643, 645, 649, - 651, 655, 660, 665, 667, 669, 673, 676, 680, 683, - 685, 687, 689, 690, 692, 693, 695, 698, 700, 703, - 706, 709, 712, 715, 718, 720, 722, 724 + 624, 627, 629, 632, 635, 637, 640, 642, 645, 647, + 651, 653, 657, 662, 667, 669, 671, 675, 678, 682, + 685, 687, 689, 691, 692, 694, 695, 697, 700, 702, + 705, 708, 711, 714, 717, 720, 722, 724, 726 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ @@ -151,15 +151,15 @@ static const short int yyrhs[] = 148, 78, 132, 77, -1, 44, 4, 145, -1, 30, -1, 30, 142, -1, 55, 133, -1, 35, -1, 35, 92, -1, 35, 142, -1, 48, -1, 48, 142, -1, - 11, 142, -1, 32, -1, 32, 78, 77, -1, 10, - -1, 33, 78, 77, -1, 33, 78, 132, 77, -1, - 8, 78, 133, 77, -1, 4, -1, 134, -1, 46, - 144, 127, -1, 46, 144, -1, 78, 132, 77, -1, - 78, 77, -1, 149, -1, 151, -1, 150, -1, -1, - 133, -1, -1, 132, -1, 132, 56, -1, 149, -1, - 50, 154, -1, 86, 154, -1, 87, 154, -1, 88, - 154, -1, 41, 154, -1, 89, 154, -1, 4, -1, - 149, -1, 92, -1, 9, -1 + 11, -1, 11, 142, -1, 32, -1, 32, 78, 77, + -1, 10, -1, 33, 78, 77, -1, 33, 78, 132, + 77, -1, 8, 78, 133, 77, -1, 4, -1, 134, + -1, 46, 144, 127, -1, 46, 144, -1, 78, 132, + 77, -1, 78, 77, -1, 149, -1, 151, -1, 150, + -1, -1, 133, -1, -1, 132, -1, 132, 56, -1, + 149, -1, 50, 154, -1, 86, 154, -1, 87, 154, + -1, 88, 154, -1, 41, 154, -1, 89, 154, -1, + 4, -1, 149, -1, 92, -1, 9, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ @@ -182,10 +182,10 @@ static const unsigned short int yyrline[] = 613, 615, 623, 632, 636, 644, 645, 646, 647, 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 678, 685, 687, 689, 691, 694, 697, 700, - 702, 704, 706, 708, 710, 712, 714, 717, 719, 721, - 724, 727, 729, 731, 732, 736, 738, 743, 745, 747, - 749, 751, 756, 758, 763, 764, 766, 772, 776, 780, - 784, 788, 792, 796, 801, 803, 805, 808 + 702, 704, 706, 708, 710, 712, 714, 716, 719, 721, + 723, 726, 729, 731, 733, 734, 738, 740, 745, 747, + 749, 751, 753, 758, 760, 765, 766, 768, 774, 778, + 782, 786, 790, 794, 798, 803, 805, 807, 810 }; #endif @@ -257,9 +257,9 @@ static const unsigned char yyr1[] = 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, - 142, 142, 142, 142, 142, 143, 143, 144, 144, 144, - 144, 144, 145, 145, 146, 146, 146, 147, 148, 149, - 150, 151, 152, 153, 154, 154, 154, 154 + 142, 142, 142, 142, 142, 142, 143, 143, 144, 144, + 144, 144, 144, 145, 145, 146, 146, 146, 147, 148, + 149, 150, 151, 152, 153, 154, 154, 154, 154 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -282,10 +282,10 @@ static const unsigned char yyr2[] = 2, 4, 5, 4, 5, 1, 1, 1, 1, 5, 2, 1, 2, 3, 2, 1, 1, 1, 1, 1, 1, 4, 5, 1, 1, 3, 4, 3, 1, 2, - 2, 1, 2, 2, 1, 2, 2, 1, 3, 1, - 3, 4, 4, 1, 1, 3, 2, 3, 2, 1, - 1, 1, 0, 1, 0, 1, 2, 1, 2, 2, - 2, 2, 2, 2, 1, 1, 1, 1 + 2, 1, 2, 2, 1, 2, 1, 2, 1, 3, + 1, 3, 4, 4, 1, 1, 3, 2, 3, 2, + 1, 1, 1, 0, 1, 0, 1, 2, 1, 2, + 2, 2, 2, 2, 2, 1, 1, 1, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state @@ -296,38 +296,38 @@ static const unsigned char yydefact[] = 6, 0, 10, 1, 9, 66, 64, 0, 64, 64, 52, 11, 54, 56, 55, 57, 58, 61, 0, 0, 78, 0, 53, 12, 14, 15, 0, 60, 0, 67, - 68, 77, 0, 68, 19, 4, 183, 0, 0, 163, - 0, 179, 0, 65, 65, 0, 0, 0, 0, 0, - 0, 0, 0, 168, 177, 0, 0, 171, 192, 0, + 68, 77, 0, 68, 19, 4, 184, 0, 0, 163, + 0, 180, 176, 65, 65, 0, 0, 0, 0, 0, + 0, 0, 0, 168, 178, 0, 0, 171, 193, 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, - 0, 0, 33, 0, 13, 16, 20, 83, 184, 160, + 0, 0, 33, 0, 13, 16, 20, 83, 185, 160, 145, 146, 147, 148, 86, 151, 164, 155, 158, 157, - 159, 156, 59, 69, 70, 0, 70, 10, 204, 207, - 206, 205, 192, 0, 0, 176, 0, 68, 4, 4, + 159, 156, 59, 69, 70, 0, 70, 10, 205, 208, + 207, 206, 193, 0, 0, 177, 0, 68, 4, 4, 4, 4, 4, 4, 0, 4, 4, 32, 169, 0, - 0, 194, 172, 173, 204, 193, 93, 205, 0, 202, - 183, 140, 139, 155, 0, 0, 192, 152, 0, 186, - 189, 191, 190, 175, 198, 170, 128, 129, 150, 133, - 132, 154, 0, 135, 0, 126, 127, 199, 200, 201, - 203, 0, 41, 18, 0, 0, 0, 0, 0, 0, + 0, 195, 172, 173, 205, 194, 93, 206, 0, 203, + 184, 140, 139, 155, 0, 0, 193, 152, 0, 187, + 190, 192, 191, 175, 199, 170, 128, 129, 150, 133, + 132, 154, 0, 135, 0, 126, 127, 200, 201, 202, + 204, 0, 41, 18, 0, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 130, 0, 0, 0, 0, 0, 0, 0, - 72, 0, 192, 0, 9, 91, 194, 0, 95, 70, - 46, 0, 0, 0, 0, 0, 4, 5, 0, 178, - 180, 0, 195, 0, 0, 87, 0, 0, 137, 0, - 167, 188, 0, 74, 185, 0, 153, 134, 34, 23, + 72, 0, 193, 0, 9, 91, 195, 0, 95, 70, + 46, 0, 0, 0, 0, 0, 4, 5, 0, 179, + 181, 0, 196, 0, 0, 87, 0, 0, 137, 0, + 167, 189, 0, 74, 186, 0, 153, 134, 34, 23, 24, 48, 21, 22, 25, 82, 81, 80, 85, 0, 109, 0, 0, 121, 117, 118, 114, 115, 112, 0, 124, 123, 122, 120, 119, 116, 125, 113, 0, 97, 0, 0, 90, 98, 165, 0, 0, 0, 0, 0, - 0, 71, 76, 75, 63, 0, 62, 3, 0, 182, - 192, 0, 0, 47, 0, 0, 49, 51, 0, 0, - 197, 45, 50, 0, 0, 20, 0, 0, 0, 181, - 196, 94, 0, 141, 0, 143, 0, 136, 187, 73, + 0, 71, 76, 75, 63, 0, 62, 3, 0, 183, + 193, 0, 0, 47, 0, 0, 49, 51, 0, 0, + 198, 45, 50, 0, 0, 20, 0, 0, 0, 182, + 197, 94, 0, 141, 0, 143, 0, 136, 188, 73, 0, 0, 0, 108, 102, 0, 0, 106, 0, 0, - 194, 166, 0, 100, 0, 161, 0, 79, 92, 96, + 195, 166, 0, 100, 0, 161, 0, 79, 92, 96, 138, 43, 43, 0, 0, 0, 0, 46, 0, 0, 0, 88, 142, 144, 111, 0, 105, 149, 0, 107, 101, 0, 103, 162, 99, 0, 0, 8, 26, 26, @@ -414,7 +414,7 @@ static const short int yypgoto[] = positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ -#define YYTABLE_NINF -184 +#define YYTABLE_NINF -185 static const short int yytable[] = { 86, 214, 82, 298, 102, 313, 135, 213, 318, 35, @@ -433,7 +433,7 @@ static const short int yytable[] = 190, 146, 171, 78, 119, 380, 5, 6, 120, 7, 8, 179, 180, 181, 121, 297, 125, 248, 249, 251, 252, 253, 254, 255, 256, 257, 199, 259, 261, 262, - 135, 200, 201, 202, -184, -184, 203, 173, 203, 9, + 135, 200, 201, 202, -185, -185, 203, 173, 203, 9, 182, 126, 247, 209, 129, 316, 130, 131, 285, 286, 287, 288, 289, 290, 204, 410, 210, 293, 283, 293, 232, 179, 180, 181, 303, 251, 148, 251, -2, 315, @@ -477,7 +477,7 @@ static const short int yytable[] = 0, -44, 73, 74, 0, 0, 0, 0, 76, 77, 78, 79, 80, 81, 35, 134, 37, 38, 39, 40, 109, 41, 42, 43, 0, 370, 0, 44, 0, 179, - 180, 181, 0, 0, 187, -184, 189, 190, 0, 0, + 180, 181, 0, 0, 187, -185, 189, 190, 0, 0, 0, 53, 0, 54, 55, 56, 57, 58, 0, 0, 0, 0, 59, 60, 61, 62, 63, 64, 0, 65, 386, 66, 198, 199, 0, 0, 67, 0, 200, 201, @@ -494,7 +494,7 @@ static const short int yytable[] = 180, 181, 71, 72, 0, 0, 73, 74, 179, 180, 181, 0, 76, 77, 78, 79, 80, 81, 35, 140, 37, 38, 39, 40, 362, 41, 42, 43, 179, 180, - 181, 44, 0, 363, 0, 0, 0, 0, -184, 0, + 181, 44, 0, 363, 0, 0, 0, 0, -185, 0, 189, 190, 0, 0, 0, 53, 0, 54, 55, 56, 57, 58, 0, 369, 0, 0, 59, 60, 61, 62, 63, 64, 0, 65, 0, 66, 198, 199, 0, 0, @@ -602,14 +602,14 @@ static const short int yytable[] = 203, 0, 0, 0, 0, 0, -155, -155, -155, 0, -155, -155, -155, -155, -155, -155, -155, -155, -155, -155, -155, 0, 0, 0, 0, -155, -155, -155, 0, 0, - -155, -155, 0, 206, 0, 0, -155, -155, -183, -183, - -183, -183, 0, 0, 0, -183, 0, 0, 0, 0, - -183, 0, 0, 0, 0, 0, -183, -183, -183, -183, + -155, -155, 0, 206, 0, 0, -155, -155, -184, -184, + -184, -184, 0, 0, 0, -184, 0, 0, 0, 0, + -184, 0, 0, 0, 0, 0, -184, -184, -184, -184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, -183, -183, -183, 0, -183, -183, -183, -183, -183, - -183, -183, -183, -183, -183, -183, 0, 0, 0, 0, - -183, -183, -183, 0, 0, -183, -183, 186, 0, 0, - 0, -183, -183, 187, 188, 189, 190, 0, 0, 0, + 0, -184, -184, -184, 0, -184, -184, -184, -184, -184, + -184, -184, -184, -184, -184, -184, 0, 0, 0, 0, + -184, -184, -184, 0, 0, -184, -184, 186, 0, 0, + 0, -184, -184, 187, 188, 189, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 192, 335, 193, 194, 195, 196, 197, 198, 199, 0, 0, 0, 0, 200, 201, 202, @@ -619,7 +619,7 @@ static const short int yytable[] = 194, 195, 196, 197, 198, 199, 0, 0, 0, 0, 200, 201, 202, 186, 0, 203, 0, 0, 0, 187, 188, 189, 190, 0, 0, 0, 0, 0, 0, 0, - -184, 0, 0, 0, 0, 0, 187, 188, 189, 190, + -185, 0, 0, 0, 0, 0, 187, 188, 189, 190, 192, 0, 193, 194, 195, 196, 197, 198, 199, 0, 0, 0, 0, 200, 201, 202, 0, 0, 203, 193, 194, 195, 196, 197, 198, 199, 0, 0, 0, 0, |