diff --git a/grammar/php7.y b/grammar/php7.y index 23b193bbba..2e736f68bd 100644 --- a/grammar/php7.y +++ b/grammar/php7.y @@ -68,12 +68,18 @@ semi: no_comma: /* empty */ { /* nothing */ } - | ',' { $this->emitError(new Error('A trailing comma is not allowed here', attributes())); } + | ',' no_comma { $this->emitError(new Error('A trailing comma is not allowed here', attributes())); } ; optional_comma: /* empty */ - | ',' + | comma +; + +comma: + ',' { /* nothing */ } + | comma ',' { $this->emitError(new Error('Only one comma was expected', attributes())); } +; top_statement: statement { $$ = $1; } @@ -481,13 +487,13 @@ optional_return_type: ; argument_list: - '(' ')' { $$ = array(); } + '(' no_comma ')' { $$ = array(); } | '(' non_empty_argument_list optional_comma ')' { $$ = $2; } ; non_empty_argument_list: argument { init($1); } - | non_empty_argument_list ',' argument { push($1, $3); } + | non_empty_argument_list comma argument { push($1, $3); } ; argument: diff --git a/lib/PhpParser/Parser/Php5.php b/lib/PhpParser/Parser/Php5.php index a558d28b78..7c271533aa 100644 --- a/lib/PhpParser/Parser/Php5.php +++ b/lib/PhpParser/Parser/Php5.php @@ -242,7 +242,7 @@ class Php5 extends \PhpParser\ParserAbstract -32766,-32767,-32767,-32767,-32767, 1052, 243, 244,-32766,-32766, -32766,-32766,-32766, 689,-32766,-32766,-32766,-32766,-32766,-32766, -32766,-32766,-32767,-32767,-32767,-32767,-32767, 690, 691, 692, - 693, 694, 695, 696, 834, 27, 757, 959, 960, 961, + 693, 694, 695, 696, 834, 335, 757, 959, 960, 961, 958, 957, 956, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 727, 728, 729, 730, 731, 719, 720, 721, 749, 722, 723, 708, 709, 710, 711, 712, @@ -253,96 +253,96 @@ class Php5 extends \PhpParser\ParserAbstract 60,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766, 28,-32767,-32767,-32767,-32767,-32767,-32767,-32767,-32767, 97, 98, 99, 100, 101, 9, 906, 907,-32766, 1202, 761, - 328, 764, 1188, 814, 61, 62, 52, 285, 500, 951, + 328, 764, 1188, 814, 61, 62, 52, 425, 500, 951, 63, 434, 64, 294, 295, 65, 66, 67, 68, 69, 70, 71, 72, 340, 25, 302, 73, 418,-32766,-32766, -32766, 882, 1103, 1104, 761, 1080, 764,-32766,-32766,-32766, 475, -255, 298, 825, 835, 759, 219, 220, 221,-32766, - 36,-32766,-32766,-32766,-32766,-32766,-32766, 125,-32766, 438, + 123,-32766,-32766,-32766,-32766,-32766,-32766, 125,-32766, 438, -32766,-32766,-32766,-32766,-32766, 1052, 500, 206, 310, 434, - 499, 423, 1052, 129, 439, 759, 336, 340, 483, 484, - 10, 959, 960, 961, 958, 957, 956, 485, 486, 124, + 499, 285, 1052, 129, 439, 759, 336, 340, 483, 484, + 354, 959, 960, 961, 958, 957, 956, 485, 486, 124, 1109, 1110, 1111, 1112, 1106, 1107, 313,-32766,-32766,-32766, - -32766, 500, 1113, 1108, 434, 219, 220, 221, 425, 41, + -32766, 500, 1113, 1108, 434, 219, 220, 221, 423, 41, 764, 336, 324, 1222, 325, 427, -126, -126, -126, -4, 835, 474,-32766,-32766,-32766, 823, 206, 913, 40, 21, - 428, -126, 476, -126, 477, -126, 478, -126, 123, 429, - 219, 220, 221, 31, 32, 430, 431, 354, 130, 33, - 479, 883, 336, 74, 1203, 128, 352, 353, 480, 481, - 912, 206, 247, 301, 482, 210, 1052, 806, 853, 432, - 433, 312, 30, 297, 35, 106, 107, 108, 109, 110, - 111, 112, 113, 114, 115, 116, 117, 118, 421, 1052, - 296, 427, 1154, 837, 647, -126, 835, 474, 102, 103, - 104, 823, 304, 816, 40, 21, 428, 332, 476, 632, - 477, 422, 478, 298, 105, 429, 991, 993, 20, 31, - 32, 430, 431, 933, 409, 33, 479, 220, 221, 74, + 428, -126, 476, -126, 477, -126, 478, -126, 36, 429, + 219, 220, 221, 31, 32, 430, 431, 10, 130, 33, + 479, 883, 336, 74, 1070, 128, 352, 353, 480, 481, + 912, 206, 247, 301, 482, 27, 1052, 806, 853, 432, + 433, 417, 30, 297, 35, 106, 107, 108, 109, 110, + 111, 112, 113, 114, 115, 116, 117, 118, 422, 1052, + 298, 427, 1154, 837, 647, -126, 835, 474, 102, 103, + 104, 823, 304, 818, 40, 21, 428, 351, 476, 632, + 477, 421, 478, 296, 105, 429, 991, 993, 1203, 31, + 32, 430, 431, 820, 409, 33, 479, 220, 221, 74, 323,-32766, 352, 353, 480, 481,-32766,-32766,-32766, 424, 482, 1052, 448, 768, 853, 432, 433, 206,-32766,-32766, - -32766, 48, 906, 907, 1153, 1070, 339,-32766, 485,-32766, + -32766, 49, 906, 907, 1153, 20, 339,-32766, 485,-32766, -32766,-32766,-32766, 1231, 337, 500, 1232, 427, 434, 837, - 647, -4, 835, 474, -224, 1052, 633, 823, 49, 434, + 647, -4, 835, 474, -224, 1052, 633, 823, 51, 434, 40, 21, 428, 937, 476, 776, 477, 777, 478, -504, - 820, 429, -205, -205, -205, 31, 32, 430, 431,-32766, - -32766, 33, 479, 75,-32766, 74,-32766, 594, 352, 353, - 480, 481,-32766,-32766,-32766, 119, 482, 526, 451, 806, - 853, 432, 433, 240, 241, 242, 128,-32766,-32766,-32766, - 411, 775, 51,-32766, 120,-32766,-32766,-32766, 500, 243, - 244, 434, 552, 427, 417, 837, 647, -205,-32766, 474, - -32766,-32766, 1052, 823, 821, 351, 40, 21, 428, 1052, - 476, 121, 477, 449, 478, 1115, 211, 429, -204, -204, - -204, 31, 32, 430, 431, 1115, 286, 33, 479, 818, - 835, 74, 932, 299, 352, 353, 480, 481, 212, 219, - 220, 221, 482, 335, 245, 806, 853, 432, 433,-32766, - -32766,-32766, 213, 79, 80, 81, 99, 100, 101, 650, - 206, 237, 238, 239, 444, 122, 776, 649, 777, 300, - -32766, 837, 647, -204, 34, 248, 82, 83, 84, 85, + 933, 429, -205, -205, -205, 31, 32, 430, 431,-32766, + -32766, 33, 479, 128,-32766, 74,-32766, 526, 352, 353, + 480, 481,-32766,-32766,-32766, 249, 482, 594, 451, 806, + 853, 432, 433, 240, 241, 242, 75,-32766,-32766,-32766, + 411, 821, 48,-32766, 121,-32766,-32766,-32766, 500, 243, + 244, 434, 552, 427, 300, 837, 647, -205,-32766, 474, + -32766,-32766, 1052, 823, 775, 210, 40, 21, 428, 1052, + 476, 122, 477, 449, 478, 1115, 119, 429, -204, -204, + -204, 31, 32, 430, 431, 1115, 286, 33, 479, 816, + 835, 74, 932, 299, 352, 353, 480, 481, 211, 219, + 220, 221, 482, 312, 245, 806, 853, 432, 433,-32766, + -32766,-32766, 250, 79, 80, 81, 237, 238, 239, 651, + 206, 99, 100, 101, 444, 120, 776, 649, 777, 332, + -32766, 837, 647, -204, 34, 213, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 1052, - 304, 427, 221, 249, 835, 250, 78, 474, 206, 133, - 336, 823, 105, 585, 40, 21, 428, 127, 476, -83, + 304, 427, 221, 248, 835, 212, 78, 474, 206, 133, + 336, 823, 105, 585, 40, 21, 428, 127, 476, 132, 477, 206, 478,-32766,-32766, 429, 219, 220, 221, 31, - 32, 430, 316, 651, 658, 33, 479, 835, 661, 74, - 243, 244, 352, 353, 458, 22, 833, 206, 463, 601, - 482, 134, 362, 132, 608, 609, 769, 653,-32766, 948, - 667, 936, 675, 846, 304, 105, 655, 43, 44, 45, - 616, 761, 759, 46, 47, 427, 302, -274, 50, 837, - 647, 474, 53, 131, 588, 823, 442, 468, 40, 21, - 428, 762, 476, 606, 477,-32766, 478, 764, 447, 429, - 964, 854, 532, 31, 32, 430, 855, 327, 427, 33, - 479, 835, 641, 74, 474, 620, 352, 353, 823, -81, - 628, 40, 21, 428, 482, 476, 11, 477, 450, 478, - 282, 591, 429, 375, 605, 848, 31, 32, 430, 0, - 659, 329, 33, 479, 835, 0, 74, 0, 0, 352, - 353, 0, 0, 837, 647, -504, 0, 482, 326, 0, - 331, 0, 0, 0, 0, 0, 0, 0, 309, 311, - -505, 0, 485, 664, 0, 0, 0, 0, 0, 0, - 0, 0, 427, 1114, 1160, 0, 869, 647, 474, -413, - -405, 835, 823, 5, 6, 40, 21, 428, 12, 476, - 14, 477, 361, 478, -414, 386, 429, 387, 24, 395, - 31, 32, 430, 444, 534, 427, 33, 479, 412, 413, - 74, 474, 38, 352, 353, 823, 39, 670, 40, 21, - 428, 482, 476, 671, 477, 774, 478, 824, 832, 429, - 811, 826, 885, 31, 32, 430, 876, 877, 809, 33, - 479, 870, 867, 74, 865, 943, 352, 353, 944, 941, - 837, 647, 427, 815, 482, 817, 819, 831, 474, 822, - 940, 772, 823, 773, 942, 40, 21, 428, 78, 476, - 648, 477, 652, 478, 654, 656, 429, 657, 246, 660, - 31, 32, 430, 837, 647, 662, 33, 479, 663, 665, - 74, 666, 126, 352, 353, 333, 214, 215, 334, 407, - 408, 482, 216, 672, 217, 807, 1228, 1230, 771, 852, - 770, 851, 1229, 850, 1066, 842, 208, 1054, 849, 1055, - 840, 214, 215, 949, 1103, 1104, 874, 216,-32766, 217, - 837, 647, 1105, 875, 462, 1227, 1196, 1194, 1179, 1192, - 1094, 208, 924, 1200, 1190, 780, 781, 778, 779, 1103, - 1104, 26, 29,-32766, 37, 42, 76, 1105, 77, 209, - 284, 292, 293, 305, 306, 307, 308, 341, 410, 416, - -32766, 0, -221, -220, 16, 17, 18, 380, 459, 466, - 573, 467, 1109, 1110, 1111, 1112, 1106, 1107, 385, 472, - 567, 638, 1057, 1060, 1113, 1108, 914, 1119, 1056, 1032, - 577, 218, 287,-32766, 1031, 573, 1096, 1109, 1110, 1111, - 1112, 1106, 1107, 385, -423, 1050, 0, 1061, 1063, 1113, - 1108, 1062, 1065, 1064, 1079, 1193, 218, 1178,-32766, 1174, - 0, 1191, 1093, 1225, 1120, 1173, 612, 0, 1159 + 32, 430, 833, 664, 661, 33, 479, 835, 658, 74, + 243, 244, 352, 353, 458, 22, 316, 206, 463, 601, + 482, 134, 362, -83, 608, 609, 948, 667,-32766, 936, + 675, 769, 653, 846, 304, 105, 659, 50, 46, 131, + 616, 761, 762, 53, 45, 427, 302, 764, 47, 837, + 647, 474, 43, 44, 588, 823, 442, 468, 40, 21, + 428, 759, 476, 606, 477, 532, 478, 964, 447, 429, + -274, 854,-32766, 31, 32, 430, 855, 327, 427, 33, + 479, 835, 641, 74, 474, 620, 352, 353, 823, 11, + 628, 40, 21, 428, 482, 476, 282, 477, 450, 478, + -81, 605, 429, 387, 591, 848, 31, 32, 430, 0, + 655, 329, 33, 479, 835, 0, 74, 0, 0, 352, + 353, 0, 0, 837, 647, 311, 0, 482, 326, 0, + 331, 0, 0, 0, 0, 0, 0, 0, 309, -504, + -505, 0, 485, 650, 0, 0, 0, 0, 0, 0, + 0, 0, 427, 1160, 1114, 0, 837, 647, 474, -414, + -413, 835, 823, -405, 361, 40, 21, 428, 5, 476, + 6, 477, 12, 478, 14, 444, 429, 395, 284, 386, + 31, 32, 430, 375, 412, 427, 33, 479, 413, 534, + 74, 474, 885, 352, 353, 823, 809, 39, 40, 21, + 428, 482, 476, 870, 477, 867, 478, 865, 670, 429, + 826, 940, 772, 31, 32, 430, 773, 942, 811, 33, + 479, 943, 831, 74, 832, 819, 352, 353, 817, 815, + 869, 647, 427, 824, 482, 774, 944, 671, 474, 877, + 941, 38, 823, 822, 876, 40, 21, 428, 654, 476, + 665, 477, 407, 478, 334, 333, 429, 78, 246, 126, + 31, 32, 430, 837, 647, 656, 33, 479, 657, 662, + 74, 648, 663, 352, 353, 660, 214, 215, 652, 666, + 408, 482, 216, 779, 217, 672, 807, 1228, 1230, 771, + 852, 770, 851, 1229, 850, 1066, 208, 842, 1054, 849, + 1055, 214, 215, 840, 1103, 1104, 949, 216,-32766, 217, + 837, 647, 1105, 874, 875, 462, 1227, 1196, 1194, 1179, + 1192, 208, 1094, 924, 1200, 1190, 780, 781, 778, 1103, + 1104, 77, 76,-32766, 24, 416, 410, 1105,-32766, 305, + 341, 308, 307, 306, 26, 29, 293, 292, 37, 42, + 209, 0, 466, 577, 1031, 1096, 1119, 914, 1060, 1057, + 573, 638, 1109, 1110, 1111, 1112, 1106, 1107, 385, 567, + 472, 467, 459, 380, 1113, 1108, 18, 17, 16, -220, + -221, 218, 287,-32766, 1032, 573, 1056, 1109, 1110, 1111, + 1112, 1106, 1107, 385, -423, 1050, 0, 1065, 1063, 1113, + 1108, 1062, 612, 1193, 1064, 1061, 218, 1178,-32766, 1079, + 0, 1173, 1120, 1225, 1093, 1191, 1174, 0, 1159 ); protected $actionCheck = array( @@ -457,10 +457,10 @@ class Php5 extends \PhpParser\ParserAbstract ); protected $actionBase = array( - 0, 223, 299, 375, 451, 102, 102, 311, 754, -2, - -2, 147, -2, -2, -2, 633, 740, 773, 740, 559, - 666, 820, 820, 820, 186, 334, 334, 334, 357, 892, - 443, 33, 233, 409, 617, 520, 527, 240, 240, 240, + 0, 223, 299, 375, 451, 102, 102, 311, 727, -2, + -2, 147, -2, -2, -2, 559, 666, 633, 666, 773, + 740, 820, 820, 820, 186, 357, 357, 357, 334, 861, + 443, 33, 409, 233, 617, 520, 527, 240, 240, 240, 240, 136, 136, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, @@ -470,9 +470,9 @@ class Php5 extends \PhpParser\ParserAbstract 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 181, 73, 305, 217, 743, - 745, 746, 747, 884, 665, 885, 823, 824, 653, 825, - 826, 827, 828, 830, 822, 831, 919, 832, 575, 575, + 240, 240, 240, 240, 240, 181, 73, 217, 305, 739, + 738, 735, 732, 892, 661, 890, 824, 825, 619, 826, + 827, 828, 830, 831, 823, 832, 905, 833, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, 47, 561, 218, 312, 277, 471, 648, 648, 648, 648, 648, 648, 648, 294, 294, 294, 294, 294, 294, 294, @@ -485,43 +485,43 @@ class Php5 extends \PhpParser\ParserAbstract 913, 499, -21, -21, 484, 656, 408, 621, 209, 396, 200, 25, 25, 25, 25, 25, 245, 16, 4, 4, 4, 4, 339, 123, 123, 123, 123, 119, 119, 119, - 119, 69, 307, 307, 671, 671, 637, 781, 538, 538, - 543, 543, 101, 101, 101, 101, 101, 101, 101, 101, - 101, 101, 24, 627, 857, 300, 300, 300, 300, 177, - 177, 177, 43, 414, 673, 920, 43, 327, 327, 327, - 452, 452, 452, 362, 649, 210, 331, 331, 331, 331, - 210, 331, 331, 493, 493, 493, 485, 446, 642, 365, - 488, 373, 390, 664, 814, 667, 821, 541, 690, 118, - 700, 701, 887, 613, 887, 601, 605, 576, 676, 392, - 850, 48, 181, 539, 444, 639, 749, 361, 751, 320, - 384, 368, 536, 363, 244, 784, 753, 886, 890, 180, - 670, 639, 639, 639, 153, 404, 787, 788, 363, -8, - 603, 603, 603, 603, 833, 789, 603, 603, 603, 603, - 834, 835, 253, 412, 836, 281, 750, 623, 623, 624, - 624, 623, 623, 623, 623, 650, 657, 623, 839, 685, - 685, 624, 647, 624, 650, 657, 842, 842, 842, 842, - 624, 657, 624, 624, 623, 624, 685, 685, 657, 637, - 685, 68, 657, 660, 623, 662, 662, 842, 707, 713, - 624, 624, 608, 685, 685, 685, 608, 657, 842, 612, - 616, 338, 685, 842, 632, 647, 632, 612, 657, 632, - 647, 647, 632, 20, 619, 629, 841, 843, 855, 759, - 606, 611, 848, 849, 845, 847, 838, 646, 696, 715, - 717, 480, 630, 631, 635, 636, 679, 640, 668, 613, - 695, 628, 628, 628, 655, 680, 655, 628, 628, 628, - 628, 628, 628, 628, 628, 900, 675, 688, 669, 641, - 718, 531, 615, 663, 553, 761, 672, 696, 696, 793, - 878, 863, 898, 899, 643, 850, 876, 655, 901, 702, - 230, 567, 851, 791, 687, 689, 655, 852, 655, 763, - 655, 879, 794, 645, 795, 696, 796, 628, 882, 904, - 905, 906, 907, 908, 910, 912, 914, 644, 915, 720, - 626, 864, 344, 846, 676, 684, 691, 721, 797, 380, - 916, 798, 655, 655, 764, 757, 655, 766, 722, 706, - 860, 726, 865, 917, 672, 867, 655, 614, 799, 918, - 380, 634, 625, 858, 651, 727, 856, 883, 854, 768, - 590, 618, 800, 801, 802, 638, 728, 861, 862, 859, - 731, 774, 620, 777, 658, 803, 778, 853, 732, 805, - 806, 877, 654, 695, 686, 659, 661, 652, 780, 807, - 875, 734, 735, 738, 808, 739, 811, 0, 0, 0, + 119, 69, 307, 307, 671, 671, 637, 768, 543, 543, + 538, 538, 101, 101, 101, 101, 101, 101, 101, 101, + 101, 101, 24, 650, 845, 300, 300, 300, 300, 177, + 177, 177, 43, 404, 672, 920, 43, 327, 327, 327, + 452, 452, 452, 362, 642, 210, 331, 331, 331, 331, + 210, 331, 331, 493, 493, 493, 485, 446, 649, 365, + 488, 373, 363, 667, 821, 664, 822, 539, 675, 118, + 696, 700, 887, 613, 887, 601, 605, 576, 679, 392, + 846, 48, 181, 536, 390, 639, 753, 384, 722, 253, + 361, 368, 541, 444, 281, 764, 726, 859, 860, 244, + 670, 639, 639, 639, 153, 414, 763, 761, 444, -8, + 603, 603, 603, 603, 834, 789, 603, 603, 603, 603, + 835, 836, 320, 412, 791, 180, 721, 623, 623, 643, + 643, 623, 623, 623, 623, 647, 657, 623, 852, 841, + 841, 643, 627, 643, 647, 657, 856, 856, 856, 856, + 643, 657, 643, 643, 623, 643, 841, 841, 657, 637, + 841, 338, 657, 660, 623, 662, 662, 856, 718, 747, + 643, 643, 608, 841, 841, 841, 608, 657, 856, 612, + 616, 528, 841, 856, 646, 627, 646, 612, 657, 646, + 627, 627, 646, 20, 653, 644, 855, 839, 843, 780, + 606, 611, 854, 853, 838, 685, 851, 632, 701, 745, + 743, 531, 645, 636, 630, 640, 684, 629, 668, 613, + 687, 628, 628, 628, 669, 686, 669, 628, 628, 628, + 628, 628, 628, 628, 628, 908, 676, 680, 655, 641, + 734, 553, 695, 663, 620, 787, 673, 701, 701, 794, + 865, 879, 898, 899, 624, 846, 875, 669, 901, 751, + 230, 590, 850, 793, 691, 615, 669, 849, 669, 757, + 669, 864, 795, 631, 796, 701, 797, 628, 863, 904, + 900, 907, 912, 906, 910, 919, 918, 635, 917, 728, + 626, 878, 566, 857, 679, 688, 689, 720, 798, 592, + 916, 799, 669, 669, 774, 766, 669, 777, 702, 707, + 884, 754, 858, 915, 673, 877, 669, 614, 800, 914, + 592, 638, 625, 886, 651, 749, 842, 862, 847, 784, + 618, 480, 801, 802, 803, 634, 706, 883, 882, 885, + 713, 778, 567, 781, 658, 805, 759, 848, 715, 806, + 807, 867, 665, 687, 690, 659, 654, 652, 788, 808, + 876, 717, 731, 746, 811, 750, 814, 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, 136, 136, 136, @@ -555,17 +555,17 @@ class Php5 extends \PhpParser\ParserAbstract 327, 327, 327, -21, -21, -21, -21, -37, 101, 101, 101, 101, 101, 101, 327, 327, 452, 452, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, -37, - 101, 623, 623, 623, 623, 647, 647, 647, 623, 210, + 101, 623, 623, 623, 623, 627, 627, 627, 623, 210, 210, 210, 623, 0, 0, 0, 0, 0, 0, 623, 210, 0, 101, 101, 101, 101, 0, 101, 101, 623, - 623, 623, 647, 623, 210, 647, 647, 623, 685, 583, - 583, 583, 583, 380, 363, 0, 623, 623, 647, 647, - 647, 0, 0, 0, 685, 0, 624, 0, 0, 0, - 0, 628, 230, 0, 528, 0, 0, 0, 0, 0, - 0, 643, 528, 592, 592, 0, 644, 628, 628, 628, - 0, 0, 643, 643, 0, 0, 0, 0, 0, 0, - 566, 643, 0, 0, 0, 0, 566, 517, 0, 0, - 517, 0, 380 + 623, 623, 627, 623, 210, 627, 627, 623, 841, 583, + 583, 583, 583, 592, 444, 0, 623, 623, 627, 627, + 627, 0, 0, 0, 841, 0, 643, 0, 0, 0, + 0, 628, 230, 0, 380, 0, 0, 0, 0, 0, + 0, 624, 380, 517, 517, 0, 635, 628, 628, 628, + 0, 0, 624, 624, 0, 0, 0, 0, 0, 0, + 68, 624, 0, 0, 0, 0, 68, 344, 0, 0, + 344, 0, 592 ); protected $actionDefault = array( diff --git a/lib/PhpParser/Parser/Php7.php b/lib/PhpParser/Parser/Php7.php index 75c8305fa0..bfd334f138 100644 --- a/lib/PhpParser/Parser/Php7.php +++ b/lib/PhpParser/Parser/Php7.php @@ -18,16 +18,16 @@ class Php7 extends \PhpParser\ParserAbstract { protected $tokenToSymbolMapSize = 394; - protected $actionTableSize = 964; - protected $gotoTableSize = 508; + protected $actionTableSize = 1022; + protected $gotoTableSize = 528; protected $invalidSymbol = 159; protected $errorSymbol = 1; protected $defaultAction = -32766; protected $unexpectedTokenRule = 32767; - protected $YY2TBLSTATE = 348; - protected $numNonLeafStates = 602; + protected $YY2TBLSTATE = 352; + protected $numNonLeafStates = 605; protected $symbolToName = array( "EOF", @@ -235,268 +235,222 @@ class Php7 extends \PhpParser\ParserAbstract ); protected $action = array( - 607, 608, 609, 610, 611, 685, 612, 613, 614, 650, - 651, 0, 32, 103, 104, 105, 106, 107, 108, 109, - 110, 111, 112, 113, 114, 115,-32767,-32767,-32767,-32767, - 94, 95, 96, 97, 98,-32766,-32766,-32766, 687, 491, - -497, 904, 905, 906, 903, 902, 901, 904, 905, 906, - 903, 902, 901, 615, 938, 940,-32766, 9,-32766,-32766, - -32766,-32766,-32766,-32766,-32766,-32766,-32766, 616, 617, 618, - 619, 620, 621, 622, 333, 1104, 683,-32766,-32766,-32766, - 846, 1103, 119, 623, 624, 625, 626, 627, 628, 629, - 630, 631, 632, 633, 653, 654, 655, 656, 657, 645, - 646, 647, 675, 648, 649, 634, 635, 636, 637, 638, - 639, 640, 677, 678, 679, 680, 681, 682, 641, 642, - 643, 644, 674, 665, 663, 664, 660, 661, 402, 652, - 658, 659, 666, 667, 669, 668, 670, 671, 45, 46, - 421, 47, 48, 662, 673, 672, 27, 49, 50, 233, - 51,-32766,-32766,-32766, 96, 97, 98, 24,-32766,-32766, - -32766, -458, 261, 121, 1023,-32766,-32766,-32766, 1091, 1073, - -32766,-32766,-32766, 1039,-32766,-32766,-32766,-32766,-32766,-32766, - -496,-32766,-32766,-32766, 52, 53,-32766, -497,-32766,-32766, - 54, 687, 55, 231, 232, 56, 57, 58, 59, 60, - 61, 62, 63, 1016, 24, 242, 64, 369,-32766,-32766, - -32766, 226, 1040, 1041, 423, 1076, 1073, -493, 880, 508, - 1039, 436, 1023, -458, 768, 1073, 239, 333, -500,-32766, - -500,-32766,-32766,-32766,-32766, 856, 253, -458, 276, 378, - 372, 786, 68, 1073, -458, 685, -461, 278, 1126, 403, - 289, 1127, 288, 99, 100, 101, 303, 252, 433, 434, - 822,-32766, 69, 261, 237, 850, 851, 435, 436, 102, - 1045, 1046, 1047, 1048, 1042, 1043, 256, 1016, -456, -456, - 306, 444, 1049, 1044, 375, 133, 561, -239, 363, 66, - 237, 268, 692, 273, 278, 422, -137, -137, -137, -4, - 768, 1073, 310, 278, 1035, 757, 687, 362, 37, 20, - 424, -137, 425, -137, 426, -137, 427, -137, 127, 428, - -295, 278, -295, 38, 39, 370, 371, -496, 271, 40, - 429, 277, 687, 65, 261, 1016, 302, 896, 430, 431, - -456, -456, 333, -494, 432, 44, 42, 743, 791, 373, - 374, -457, -234, 562, -456, -456, 375,-32766,-32766,-32766, - 882, -456, -456, 124, -493, 75, 850, 851, 333, -273, - -260, 422, 768, 770, 576, -137, 261, 125,-32766, 278, - 823, 757, 857, 1073, 37, 20, 424, 240, 425, -178, - 426, 589, 427, 393, 503, 428, 687, 235, 241, 38, - 39, 370, 371, 125, 354, 40, 429, 260, 259, 65, - 267, 687, 302, -457, 430, 431, -296, -177, -296, 24, - 432, 305, 365, 700, 791, 373, 374, -457, 120, 118, - 24, 1073, 30, 366, -457, 1039, -460, 850, 851, 687, - 367, 691, 1073, 422, 291, 768, 1039, 333, -83, 770, - 576, -4, 467, 757, 126, 368, 37, 20, 424, -92, - 425, 278, 426, 444, 427, 1016, 375, 428, -219, -219, - -219, 38, 39, 370, 371, 333, 1016, 40, 429, 850, - 851, 65, 435, 436, 302, 236, 430, 431, 225, 708, - -494, 709, 432, 435, 436, 743, 791, 373, 374, 690, - 387, 136, 1117, 578, 68, 413, 238, 8, 33, 278, - 1053, 227, 708, 687, 709, 68, 422, -260, 535, 21, - 278, 770, 576, -219, 550, 551, 757, 687, 116, 37, - 20, 424, 117, 425, 358, 426, -178, 427, 132, 328, - 428, -218, -218, -218, 38, 39, 370, 371, 687, 333, - 40, 429, 122, 768, 65, 383, 384, 302, 123, 430, - 431, 29, 234, 333, -177, 432, 528, 529, 743, 791, - 373, 374, 129, 850, 851, 135, 76, 77, 78, 1092, - 881, 599, 582, 254, 333, 137, 138, 782, 590, 593, - 293, 767, 131, 252, 770, 576, -218, 31, 102, 79, - 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 43, 252, 422, 558, 768, 687, 690,-32766, - 471, 130, 476, 685, 757, 102, 553, 37, 20, 424, - 526, 425, 688, 426, 272, 427, 910, 1016, 428, 792, - 1128, 793, 38, 39, 370, 583, 269, 570, 40, 429, - 536, 1052, 65, 275, 1055, 302, -415, 541, 270, -81, - 10, 391, 768, 432, 542, 554, 784, 594, 5, 0, - 12, 577, 0, 0, 304, 0, 0, 0, 0, 336, - 342, 0, 0, 0, 0, 0, 0, 422, 0, 0, - 0, 584, 770, 576, 0, 0, 0, 757, 0, 0, - 37, 20, 424, 343, 425, 0, 426, 0, 427, 768, - 0, 428, 0, 0, 0, 38, 39, 370, 347, 387, - 473, 40, 429, 359, 360, 65, 744, 35, 302, 36, - 597, 598, 748, 422, 825, 809, 432, 816, 587, 876, - 877, 806, 817, 757, 746, 804, 37, 20, 424, 885, - 425, 888, 426, 889, 427, 768, 886, 428, 887, 893, - -485, 38, 39, 370, 579, 770, 576, 40, 429, 581, - 585, 65, 586, 588, 302, 592, 286, 287, 352, 353, - 422, 580, 432, 1123, 591, 1125, 703, 790, 702, 712, - 757, 789, 713, 37, 20, 424, 710, 425, 1124, 426, - 788, 427, 768, 1004, 428, 711, 777, 785, 38, 39, - 370, 808, 576, -483, 40, 429, 775, 814, 65, 815, - 1122, 302, 1074, 1067, 1081, 1086, 422, 1089, -237, 432, - -461, -460, -459, 23, 25, 28, 757, 34, 41, 37, - 20, 424, 67, 425, 70, 426, 71, 427, 72, 73, - 428, 74, 128, 134, 38, 39, 370, 139, 770, 576, - 40, 429, 229, 230, 65, 246, 247, 302, 248, 249, - 250, 251, 290, 422, 355, 432, 357, -427, -235, -234, - 14, 15, 16, 757, 17, 19, 37, 20, 424, 325, - 425, 404, 426, 406, 427, 409, 411, 428, 412, 419, - 567, 38, 39, 370, 770, 576, 1027, 40, 429, 977, - 1037, 65, 858, 1008, 302,-32766,-32766,-32766, -92, 13, - 18, 22, 432, 263, 324, 501, 522, 569, 981, 978, - 0, 994, 0, 1036, 1065, 1066,-32766, 1080,-32766,-32766, - -32766,-32766,-32766,-32766,-32767,-32767,-32767,-32767,-32767, 1120, - 532, 770, 576, 1054 + 610, 611, 612, 613, 614, 688, 615, 616, 617, 653, + 654, 0, 33, 104, 105, 106, 107, 108, 109, 110, + 111, 112, 113, 114, 115, 116,-32767,-32767,-32767,-32767, + 95, 96, 97, 98, 99,-32766,-32766,-32766,-32766,-32766, + -32766, 909, 910, 911, 908, 907, 906, 909, 910, 911, + 908, 907, 906, 618, 943, 945,-32766, 851,-32766,-32766, + -32766,-32766,-32766,-32766, 97, 98, 99, 619, 620, 621, + 622, 623, 624, 625, 397, 1109, 686,-32766,-32766,-32766, + 397, 1108, 120, 626, 627, 628, 629, 630, 631, 632, + 633, 634, 635, 636, 656, 657, 658, 659, 660, 648, + 649, 650, 678, 651, 652, 637, 638, 639, 640, 641, + 642, 643, 680, 681, 682, 683, 684, 685, 644, 645, + 646, 647, 677, 668, 666, 667, 663, 664, 233, 655, + 661, 662, 669, 670, 672, 671, 673, 674, 46, 47, + 422, 48, 49, 665, 676, 675, 30, 50, 51, 262, + 52,-32766,-32766,-32766, 695, 43, 293, 25,-32766,-32766, + -32766, -459,-32766,-32766, 1028,-32766,-32766,-32766, 1096, 1078, + 1040, 307,-32766, 1044,-32766,-32766,-32766,-32766,-32766,-32766, + 308,-32766,-32766,-32766, 53, 54,-32766, -180,-32766,-32766, + 55, 791, 56, 231, 232, 57, 58, 59, 60, 61, + 62, 63, 64, 1021, 25, 242, 65, 373,-32766,-32766, + -32766, 701, 1045, 1046, 690, 364, 1078, 260, 1081, -495, + 1044, 437, -499, -459, 773, 397, 700, 861, -502,-32766, + -502,-32766,-32766,-32766,-32766, 397, 701, -459, 119, 382, + 376, 70, 69, 1078, -459, 688, -462, 278, 226, 1078, + 337, -498, 855, 856, 237, 262, -496, 262, 434, 435, + 885, 7, 100, 101, 102, 237, 253, 436, 437, -460, + 1050, 1051, 1052, 1053, 1047, 1048, 256, 1021, 103, 787, + -458, 445, 1054, 1049, 379,-32766,-32766,-32766, 367, 67, + 713, 269, 714, 274, 278, 423, -139, -139, -139, -4, + 773, 424, 827, 694, 262, 762,-32766, -262, 38, 20, + 425, -139, 426, -139, 427, -139, 428, -139, 127, 429, + 126, 278, -179, 39, 40, 374, 375, 278, 397, 41, + 430, -460, 31, 66, -180, 362, 305, 290, 431, 432, + 505, 592, -458, 306, 433, -460, 405, 748, 796, 377, + 378, 690, -460, 239, -463, 45, -458, 1028, 855, 856, + 855, 856, -297, -458, -297, -458, -495, 125, 76, -499, + 272, 423, 564, 775, 579, -139, 773, 424, 125, 901, + 391, 762, -91, 581, 38, 20, 425, 511, 426, -236, + 427, 243, 428, 693, 366, 429, 1122, -91, -498, 39, + 40, 374, 375, -496, 358, 41, 430, 855, 856, 66, + 268, -275, 305, 290, 431, 432, 1131, 261, 445, 1132, + 433, 379, 828, 705, 796, 377, 378, -458, 1078, -241, + 277, 311, 553, 554, 225, 1021, 1078, 468, 121, 565, + 257, -458, 379, 713, 294, 714, 887, 423, -458, 775, + 579, -4, 773, 424, -262, 29, 234, 762, 538, 21, + 38, 20, 425, 414, 426, 9, 427, 406, 428, -179, + 1021, 429, -221, -221, -221, 39, 40, 374, 375, 1097, + 288, 41, 430, 309, -298, 66, -298, 289, 305, 290, + 431, 432, 396, 132, 332, 1058, 433, 387, 388, 748, + 796, 377, 378, 291, 531, 532, 278,-32766, 855, 856, + 136, 886, 602, 34, 278, 227, 133, 772, 124, 117, + 138, 137, 135, 423, 129, 775, 579, -221, 123, 424, + 122, 118, 296, 762, 253, 103, 38, 20, 425, 44, + 426, -83, 427, 130, 428, 561, 238, 429, -220, -220, + -220, 39, 40, 374, 375, 254, 593, 41, 430, 596, + 773, 66, 131, 236, 305, 290, 431, 432, 691, 235, + 787, 688, 433, 690, 915, 748, 796, 377, 378, 477, + 492, 573, 545, 77, 78, 79, 557, 798, 693, 590, + 273, 1021, 529, 1133, 797, 270, 1060,-32766, 1057, 789, + 472, 775, 579, -220, 32, -417, 80, 81, 82, 83, + 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, + 94, 95, 96, 97, 98, 99, 100, 101, 102, 539, + 253, 423, 556, 544, 773, 588, 821, 424, -81, 395, + 10, 762, 103, 0, 38, 20, 425, 276, 426, 271, + 427, 0, 428, 0, 0, 429, 0, 0, 0, 39, + 40, 374, 310, 585, 0, 41, 430, 773, 12, 66, + 347, 363, 305, 290, 5, -236, 340, 0, 0, 474, + 433, 0, 0, 391, 351, 346, 0, 0, 892, 0, + 0, 0, 898, 0, 0, 0, 586, 751, 822, 811, + 882, 881, 814, 830, 753, 423, 601, 600, 37, 775, + 579, 424, 36, 891, 894, 762, 893, 890, 38, 20, + 425, 809, 426, 583, 427, 286, 428, 287, 356, 429, + 357, 584, 595, 39, 40, 374, 591, 589, 423, 41, + 430, 773, 582, 66, 424, 580, 305, 290, 762, 1129, + 718, 38, 20, 425, 433, 426, 820, 427, 819, 428, + 597, 749, 429, 1128, 1130, 708, 39, 40, 374, 795, + 587, 707, 41, 430, 773, 717, 66, 794, 1127, 305, + 290, 1079, 1072, 775, 579, 249, 1086, 433, 1091, 1094, + 780, 790, 782, 716, 1009, 793, 715, 0, 247, 361, + 359, 292, 252, 594, 251, 250, 248, 230, 229, 139, + 134, 128, 423, 75, 74, 73, 775, 579, 424, -239, + 72, 773, 762, 71, 68, 38, 20, 425, 42, 426, + 35, 427, 28, 428, 26, 23, 429, -461, -462, -463, + 39, 40, 374, -485, -487, 423, 41, 430, 411, 409, + 66, 424, 407, 305, 290, 762, 329, 19, 38, 20, + 425, 433, 426, 17, 427, 16, 428, 15, 14, 429, + -237, 1013, 863, 39, 40, 374, 983, 986, 572, 41, + 430, 525, 503, 66, 328, 264, 305, 290, 22, 18, + 813, 579, 423, 862, 433, 1042, 241, 982, 424, 240, + 1032, 570, 762, 420, 13, 38, 20, 425, 413, 426, + 412, 427, 999, 428, -429, 1059, 429, 1085, 1071, 1070, + 39, 40, 374, 775, 579, 1041, 41, 430, 25, 0, + 66, 25, 535, 305, 290,-32766,-32766,-32766, 1125, 0, + 1078, 433, 0, 1078, 1044, 0, 0, 1044, 0, 0, + 0, 0, 0, 0, 0, 0,-32766, 0,-32766,-32766, + -32766,-32766,-32766,-32766,-32767,-32767,-32767,-32767,-32767, 0, + 775, 579, 0, 0, 1021, 0, 0, 1021, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 436, 437, 0, 436, 437, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 69, 0, 0, 69, 0, 278, 0, + 0, 278 ); protected $actionCheck = array( 2, 3, 4, 5, 6, 78, 8, 9, 10, 11, 12, 0, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 42, 43, 44, 45, - 46, 47, 48, 49, 50, 8, 9, 10, 78, 79, - 7, 114, 115, 116, 117, 118, 119, 114, 115, 116, - 117, 118, 119, 55, 57, 58, 29, 7, 31, 32, - 33, 34, 35, 36, 8, 9, 10, 69, 70, 71, - 72, 73, 74, 75, 114, 1, 78, 8, 9, 10, - 1, 7, 13, 85, 86, 87, 88, 89, 90, 91, + 46, 47, 48, 49, 50, 8, 9, 10, 8, 9, + 10, 114, 115, 116, 117, 118, 119, 114, 115, 116, + 117, 118, 119, 55, 57, 58, 29, 1, 31, 32, + 33, 34, 35, 36, 48, 49, 50, 69, 70, 71, + 72, 73, 74, 75, 7, 1, 78, 8, 9, 10, + 7, 7, 13, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, - 122, 123, 124, 125, 126, 127, 128, 129, 30, 131, + 122, 123, 124, 125, 126, 127, 128, 129, 36, 131, 132, 133, 134, 135, 136, 137, 138, 139, 2, 3, - 4, 5, 6, 145, 146, 147, 7, 11, 12, 36, - 14, 8, 9, 10, 48, 49, 50, 68, 8, 9, - 10, 68, 29, 7, 1, 8, 9, 10, 1, 80, - 8, 9, 29, 84, 31, 32, 33, 34, 35, 29, - 7, 31, 32, 33, 48, 49, 29, 154, 31, 32, - 54, 78, 56, 57, 58, 59, 60, 61, 62, 63, + 4, 5, 6, 145, 146, 147, 7, 11, 12, 29, + 14, 8, 9, 10, 1, 68, 7, 68, 8, 9, + 10, 68, 8, 9, 1, 8, 9, 10, 1, 80, + 1, 7, 29, 84, 31, 32, 33, 34, 35, 29, + 7, 31, 32, 33, 48, 49, 29, 7, 31, 32, + 54, 1, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 114, 68, 69, 70, 71, 8, 9, - 10, 13, 76, 77, 78, 1, 80, 7, 1, 49, - 84, 132, 1, 130, 1, 80, 7, 114, 154, 29, - 156, 31, 32, 33, 34, 1, 7, 144, 7, 103, - 104, 1, 153, 80, 151, 78, 153, 158, 78, 151, - 114, 81, 7, 51, 52, 53, 7, 55, 122, 123, - 30, 8, 149, 29, 36, 132, 133, 131, 132, 67, - 134, 135, 136, 137, 138, 139, 140, 114, 68, 68, - 7, 145, 146, 147, 148, 13, 78, 154, 125, 153, - 36, 155, 1, 157, 158, 72, 73, 74, 75, 0, - 1, 80, 7, 158, 1, 82, 78, 7, 85, 86, + 10, 7, 76, 77, 78, 148, 80, 130, 1, 7, + 84, 132, 7, 130, 1, 7, 7, 1, 154, 29, + 156, 31, 32, 33, 34, 7, 7, 144, 151, 103, + 104, 149, 153, 80, 151, 78, 153, 158, 13, 80, + 114, 7, 132, 133, 36, 29, 7, 29, 122, 123, + 1, 7, 51, 52, 53, 36, 55, 131, 132, 68, + 134, 135, 136, 137, 138, 139, 140, 114, 67, 36, + 68, 145, 146, 147, 148, 8, 9, 10, 125, 153, + 103, 155, 105, 157, 158, 72, 73, 74, 75, 0, + 1, 78, 30, 150, 29, 82, 29, 7, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 151, 96, - 103, 158, 105, 100, 101, 102, 103, 154, 111, 106, - 107, 68, 78, 110, 29, 114, 113, 120, 115, 116, - 130, 130, 114, 7, 121, 68, 68, 124, 125, 126, - 127, 68, 154, 145, 144, 144, 148, 8, 9, 10, - 152, 151, 151, 30, 154, 151, 132, 133, 114, 152, - 7, 72, 1, 150, 151, 152, 29, 149, 29, 158, - 150, 82, 154, 80, 85, 86, 87, 36, 89, 7, - 91, 151, 93, 130, 1, 96, 78, 36, 36, 100, - 101, 102, 103, 149, 105, 106, 107, 130, 130, 110, - 111, 78, 113, 130, 115, 116, 103, 7, 105, 68, - 121, 144, 7, 124, 125, 126, 127, 144, 151, 151, - 68, 80, 7, 7, 151, 84, 153, 132, 133, 78, - 7, 150, 80, 72, 145, 1, 84, 114, 30, 150, - 151, 152, 83, 82, 151, 7, 85, 86, 87, 154, - 89, 158, 91, 145, 93, 114, 148, 96, 97, 98, - 99, 100, 101, 102, 103, 114, 114, 106, 107, 132, - 133, 110, 131, 132, 113, 36, 115, 116, 95, 103, - 154, 105, 121, 131, 132, 124, 125, 126, 127, 80, - 148, 13, 83, 151, 153, 103, 36, 105, 13, 158, - 141, 13, 103, 78, 105, 153, 72, 154, 73, 74, - 158, 150, 151, 152, 73, 74, 82, 78, 15, 85, - 86, 87, 15, 89, 148, 91, 154, 93, 98, 99, - 96, 97, 98, 99, 100, 101, 102, 103, 78, 114, - 106, 107, 15, 1, 110, 103, 104, 113, 15, 115, - 116, 142, 143, 114, 154, 121, 108, 109, 124, 125, - 126, 127, 15, 132, 133, 15, 8, 9, 10, 154, - 150, 151, 30, 30, 114, 15, 15, 36, 30, 30, - 34, 30, 30, 55, 150, 151, 152, 29, 67, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - 52, 53, 68, 55, 72, 75, 1, 78, 80, 83, - 83, 68, 87, 78, 82, 67, 92, 85, 86, 87, - 111, 89, 78, 91, 112, 93, 80, 114, 96, 125, - 81, 125, 100, 101, 102, 30, 128, 90, 106, 107, - 88, 141, 110, 128, 141, 113, 144, 94, 129, 95, - 95, 95, 1, 121, 97, 97, 149, 152, 144, -1, - 144, 151, -1, -1, 144, -1, -1, -1, -1, 148, - 148, -1, -1, -1, -1, -1, -1, 72, -1, -1, - -1, 30, 150, 151, -1, -1, -1, 82, -1, -1, - 85, 86, 87, 148, 89, -1, 91, -1, 93, 1, - -1, 96, -1, -1, -1, 100, 101, 102, 148, 148, - 148, 106, 107, 148, 148, 110, 152, 150, 113, 150, - 150, 150, 150, 72, 150, 150, 121, 150, 30, 150, - 150, 150, 150, 82, 150, 150, 85, 86, 87, 150, - 89, 150, 91, 150, 93, 1, 150, 96, 150, 150, - 153, 100, 101, 102, 151, 150, 151, 106, 107, 151, - 151, 110, 151, 151, 113, 151, 151, 151, 151, 151, - 72, 151, 121, 152, 30, 152, 152, 152, 152, 152, - 82, 152, 152, 85, 86, 87, 152, 89, 152, 91, - 152, 93, 1, 152, 96, 152, 152, 152, 100, 101, - 102, 150, 151, 153, 106, 107, 152, 152, 110, 152, - 152, 113, 152, 152, 152, 152, 72, 152, 154, 121, - 153, 153, 153, 153, 153, 153, 82, 153, 153, 85, - 86, 87, 153, 89, 153, 91, 153, 93, 153, 153, - 96, 153, 153, 153, 100, 101, 102, 153, 150, 151, - 106, 107, 153, 153, 110, 153, 153, 113, 153, 153, - 153, 153, 153, 72, 153, 121, 153, 155, 154, 154, - 154, 154, 154, 82, 154, 154, 85, 86, 87, 154, - 89, 154, 91, 154, 93, 154, 154, 96, 154, 154, - 154, 100, 101, 102, 150, 151, 154, 106, 107, 154, - 154, 110, 154, 154, 113, 8, 9, 10, 154, 154, - 154, 154, 121, 154, 154, 154, 154, 154, 154, 154, - -1, 155, -1, 156, 156, 156, 29, 156, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 156, - 156, 150, 151, 157 + 151, 158, 7, 100, 101, 102, 103, 158, 7, 106, + 107, 130, 7, 110, 154, 148, 113, 114, 115, 116, + 1, 151, 130, 7, 121, 144, 30, 124, 125, 126, + 127, 78, 151, 7, 153, 68, 144, 1, 132, 133, + 132, 133, 103, 151, 105, 68, 154, 149, 151, 154, + 111, 72, 78, 150, 151, 152, 1, 78, 149, 120, + 148, 82, 154, 151, 85, 86, 87, 49, 89, 154, + 91, 7, 93, 80, 7, 96, 83, 154, 154, 100, + 101, 102, 103, 154, 105, 106, 107, 132, 133, 110, + 111, 152, 113, 114, 115, 116, 78, 130, 145, 81, + 121, 148, 150, 124, 125, 126, 127, 130, 80, 154, + 68, 144, 73, 74, 95, 114, 80, 83, 151, 145, + 7, 144, 148, 103, 145, 105, 152, 72, 151, 150, + 151, 152, 1, 78, 154, 142, 143, 82, 73, 74, + 85, 86, 87, 103, 89, 105, 91, 151, 93, 154, + 114, 96, 97, 98, 99, 100, 101, 102, 103, 154, + 7, 106, 107, 7, 103, 110, 105, 7, 113, 114, + 115, 116, 130, 98, 99, 141, 121, 103, 104, 124, + 125, 126, 127, 7, 108, 109, 158, 8, 132, 133, + 13, 150, 151, 13, 158, 13, 13, 30, 30, 15, + 15, 15, 15, 72, 15, 150, 151, 152, 15, 78, + 15, 15, 34, 82, 55, 67, 85, 86, 87, 68, + 89, 30, 91, 68, 93, 75, 36, 96, 97, 98, + 99, 100, 101, 102, 103, 30, 30, 106, 107, 30, + 1, 110, 30, 36, 113, 114, 115, 116, 78, 36, + 36, 78, 121, 78, 80, 124, 125, 126, 127, 87, + 79, 90, 97, 8, 9, 10, 97, 125, 80, 30, + 112, 114, 111, 81, 125, 128, 141, 83, 141, 149, + 83, 150, 151, 152, 29, 144, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 53, 88, + 55, 72, 92, 94, 1, 151, 150, 78, 95, 95, + 95, 82, 67, -1, 85, 86, 87, 128, 89, 129, + 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, + 101, 102, 144, 30, -1, 106, 107, 1, 144, 110, + 148, 148, 113, 114, 144, 154, 148, -1, -1, 148, + 121, -1, -1, 148, 148, 148, -1, -1, 150, -1, + -1, -1, 150, -1, -1, -1, 30, 150, 150, 150, + 150, 150, 150, 150, 150, 72, 150, 150, 150, 150, + 151, 78, 150, 150, 150, 82, 150, 150, 85, 86, + 87, 150, 89, 151, 91, 151, 93, 151, 151, 96, + 151, 151, 151, 100, 101, 102, 151, 151, 72, 106, + 107, 1, 151, 110, 78, 151, 113, 114, 82, 152, + 152, 85, 86, 87, 121, 89, 152, 91, 152, 93, + 152, 152, 96, 152, 152, 152, 100, 101, 102, 152, + 30, 152, 106, 107, 1, 152, 110, 152, 152, 113, + 114, 152, 152, 150, 151, 153, 152, 121, 152, 152, + 152, 152, 152, 152, 152, 152, 152, -1, 153, 153, + 153, 153, 153, 30, 153, 153, 153, 153, 153, 153, + 153, 153, 72, 153, 153, 153, 150, 151, 78, 154, + 153, 1, 82, 153, 153, 85, 86, 87, 153, 89, + 153, 91, 153, 93, 153, 153, 96, 153, 153, 153, + 100, 101, 102, 153, 153, 72, 106, 107, 154, 154, + 110, 78, 154, 113, 114, 82, 154, 154, 85, 86, + 87, 121, 89, 154, 91, 154, 93, 154, 154, 96, + 154, 154, 154, 100, 101, 102, 154, 154, 154, 106, + 107, 154, 154, 110, 154, 154, 113, 114, 154, 154, + 150, 151, 72, 154, 121, 154, 36, 154, 78, 36, + 154, 154, 82, 154, 154, 85, 86, 87, 154, 89, + 154, 91, 155, 93, 155, 157, 96, 156, 156, 156, + 100, 101, 102, 150, 151, 156, 106, 107, 68, -1, + 110, 68, 156, 113, 114, 8, 9, 10, 156, -1, + 80, 121, -1, 80, 84, -1, -1, 84, -1, -1, + -1, -1, -1, -1, -1, -1, 29, -1, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, -1, + 150, 151, -1, -1, 114, -1, -1, 114, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 131, 132, -1, 131, 132, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 153, -1, -1, 153, -1, 158, -1, + -1, 158 ); protected $actionBase = array( - 0, 223, 299, 371, 444, 303, 208, 618, -2, -2, - -73, -2, -2, 625, 718, 718, 764, 718, 552, 671, - 811, 811, 811, 228, 113, 113, 113, 254, 361, -40, - 361, 333, 449, 470, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, - 291, 291, 230, 393, 495, 779, 784, 781, 776, 775, - 780, 785, 498, 678, 680, 562, 681, 682, 683, 685, - 782, 804, 777, 783, 568, 568, 568, 568, 568, 568, - 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - 568, 253, 69, 162, 56, 56, 56, 56, 56, 56, - 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, - 56, 56, 56, 56, 56, 56, 349, 349, 349, 157, - 210, 150, 200, 211, 143, 27, 917, 917, 917, 917, - 917, -16, -16, -16, -16, 351, 351, 362, 217, 89, - 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, - 89, 89, 163, 313, 106, 106, 133, 133, 133, 133, - 133, 133, 221, 305, 234, 347, 369, 523, 806, 167, - 167, 441, 93, 283, 202, 202, 202, 386, 547, 533, - 533, 533, 533, 419, 419, 533, 533, 170, 214, 74, - 211, 211, 277, 211, 211, 211, 409, 409, 409, 452, - 318, 352, 546, 318, 619, 640, 577, 675, 578, 677, - 278, 585, 145, 586, 145, 145, 145, 458, 445, 451, - 774, 291, 522, 291, 291, 291, 291, 722, 291, 291, - 291, 291, 291, 291, 98, 291, 79, 430, 230, 240, - 240, 556, 240, 452, 538, 263, 635, 410, 425, 538, - 538, 538, 636, 637, 336, 363, 198, 638, 382, 402, - 173, 33, 549, 549, 555, 555, 566, 551, 549, 549, - 549, 549, 549, 690, 690, 555, 548, 555, 566, 695, - 555, 551, 551, 555, 555, 549, 555, 690, 551, 156, - 415, 249, 273, 551, 551, 426, 528, 549, 535, 535, - 433, 555, 219, 555, 139, 539, 690, 690, 539, 229, - 551, 231, 590, 591, 529, 527, 553, 245, 553, 553, - 300, 529, 553, 551, 553, 448, 50, 548, 295, 553, - 11, 699, 701, 418, 703, 694, 705, 731, 706, 530, - 524, 526, 719, 720, 708, 692, 691, 561, 582, 513, - 517, 534, 554, 689, 581, 531, 531, 531, 554, 687, - 531, 531, 531, 531, 531, 531, 531, 531, 787, 540, - 545, 723, 537, 541, 576, 543, 623, 520, 582, 582, - 584, 732, 786, 564, 722, 762, 709, 587, 557, 741, - 725, 525, 542, 565, 726, 727, 745, 765, 628, 513, - 766, 641, 563, 643, 582, 644, 531, 670, 617, 788, - 789, 688, 791, 736, 747, 749, 580, 645, 569, 803, - 646, 768, 629, 631, 589, 737, 684, 751, 647, 752, - 754, 649, 592, 572, 734, 573, 733, 272, 729, 632, - 650, 654, 656, 658, 661, 710, 594, 738, 544, 740, - 735, 595, 597, 560, 663, 488, 599, 570, 571, 600, - 714, 558, 550, 601, 602, 769, 664, 728, 604, 665, - 756, 574, 581, 536, 532, 575, 567, 634, 755, 559, - 605, 609, 611, 613, 674, 616, 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, 136, 136, 136, 136, -2, -2, -2, - 0, 0, -2, 0, 0, 136, 136, 136, 136, 136, + 0, 223, 299, 375, 451, 169, 294, 73, 538, -2, + -73, -2, -2, 666, 559, 559, 773, 559, 633, 740, + 820, 820, 820, 218, 229, 92, 92, 92, 533, 501, + 73, 533, 488, 527, 510, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, @@ -507,239 +461,302 @@ class Php7 extends \PhpParser\ParserAbstract 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, + 153, 153, 272, 339, 500, 731, 723, 728, 735, 750, + 730, 722, 502, 626, 629, 532, 630, 634, 636, 637, + 727, 776, 734, 724, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 499, 69, 154, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 277, 277, 277, 157, + 212, 150, 200, 297, 143, 27, 927, 927, 927, 927, + 927, -16, -16, -16, -16, 863, 863, 860, 259, 89, + 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, + 89, 89, 163, 228, 381, 16, 16, 275, 275, 275, + 275, 275, 275, 356, 226, 120, 354, 321, 455, 758, + 167, 167, 376, 201, 93, 211, 211, 211, 187, 517, + 477, 477, 477, 477, 313, 313, 477, 338, 217, 74, + 297, 297, 287, 297, 297, 297, 340, 340, 67, 340, + 394, 73, 273, 243, 232, 514, 273, 542, 572, 485, + 606, 489, 604, 87, 523, 348, 493, 73, 493, 494, + 348, 348, 396, 385, 359, 153, 461, 153, 153, 153, + 153, 645, 153, 153, 153, 153, 153, 153, 316, 153, + 56, 361, 272, 190, 190, 498, 190, 394, 479, 362, + 574, 315, 325, 479, 479, 479, 576, 577, 249, 300, + 235, 579, 180, 360, 244, 215, 495, 495, 493, 493, + 494, 534, 495, 495, 495, 495, 495, 682, 682, 346, + 219, 480, 387, 675, 493, 534, 534, 493, 493, 495, + 493, 682, 534, 139, 336, 473, 496, 534, 534, 164, + 467, 495, 519, 519, 173, 493, 493, 73, 520, 682, + 682, 520, 384, 534, 433, 557, 556, 481, 450, 525, + 525, 525, 481, 525, 534, 525, 476, 254, 508, 149, + 525, 11, 671, 670, 511, 667, 677, 662, 647, 661, + 594, 469, 462, 655, 654, 660, 679, 681, 487, 531, + 504, 516, 530, 471, 684, 535, 468, 468, 468, 471, + 686, 468, 468, 468, 468, 468, 468, 468, 468, 769, + 518, 492, 653, 515, 528, 544, 513, 591, 457, 531, + 531, 609, 759, 757, 490, 645, 746, 658, 562, 509, + 703, 632, 608, 537, 522, 652, 651, 702, 743, 580, + 504, 741, 611, 475, 612, 531, 613, 468, 739, 690, + 691, 763, 762, 685, 761, 714, 698, 695, 536, 204, + 617, 512, 782, 619, 718, 484, 586, 558, 713, 665, + 694, 623, 756, 754, 625, 554, 541, 716, 539, 646, + 503, 648, 585, 598, 644, 597, 643, 642, 657, 553, + 711, 540, 709, 521, 552, 486, 507, 641, 497, 551, + 506, 505, 550, 656, 526, 470, 549, 548, 717, 640, + 649, 547, 639, 747, 543, 535, 524, 478, 545, 491, + 581, 749, 529, 571, 567, 566, 564, 638, 563, 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, 136, 136, 136, 136, + -2, -2, -2, -2, 0, -2, 0, 0, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, - 136, 136, 568, 568, 568, 568, 568, 568, 568, 568, - 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - 568, 568, 568, 568, 568, 568, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 568, 568, 568, 568, 568, 568, 568, - 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, - 568, 568, -3, 568, 568, -3, 568, 568, 568, 568, - 568, 568, 568, 202, 202, 202, 202, 318, 318, 318, - -67, 318, 318, 318, 318, 318, 318, 318, 318, 318, - 318, 318, 318, 318, 318, -67, 202, 202, 318, 318, - 318, 318, 318, 318, 318, 318, 318, 318, 419, 419, - 419, 145, 145, 318, 0, 0, 0, 0, 0, 549, - 419, 318, 318, 318, 318, 0, 0, 318, 318, 548, - 145, 0, 0, 0, 0, 0, 0, 0, 549, 549, - 549, 548, 0, 549, 419, 0, 240, 291, 440, 440, - 440, 440, 0, 549, 0, 549, 0, 0, 0, 0, - 0, 0, 551, 0, 690, 0, 0, 0, 0, 555, - 0, 0, 0, 0, 0, 0, 0, 0, 548, 0, - 0, 0, 0, 548, 0, 0, 531, 0, 564, 0, - 0, 531, 531, 531, 564, 564, 0, 0, 0, 564 + 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, 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, 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, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 575, -3, 575, 575, -3, 575, + 575, 575, 575, 575, 575, 575, 211, 211, 211, 211, + 273, 273, 273, -67, 273, 273, 273, 273, 273, 273, + 273, 273, 273, 273, 273, 273, 273, 273, 273, -67, + 211, 211, 273, 273, 273, 273, 273, 273, 273, 273, + 273, 313, 273, 313, 313, 348, 348, 273, 0, 0, + 0, 0, 0, 495, 313, 273, 273, 273, 273, 0, + 0, 273, 508, 348, 0, 0, 0, 0, 0, 0, + 0, 495, 495, 495, 495, 508, 348, 0, 73, 495, + 313, 0, 190, 153, 395, 395, 395, 395, 0, 495, + 0, 73, 508, 73, 73, 0, 0, 0, 0, 0, + 0, 682, 0, 0, 0, 0, 493, 0, 0, 0, + 0, 0, 0, 0, 0, 508, 0, 0, 0, 0, + 508, 0, 0, 468, 0, 490, 0, 0, 468, 468, + 468, 490, 490, 0, 0, 0, 490 ); protected $actionDefault = array( - 3,32767,32767,32767,32767,32767,32767,32767,32767, 92, + 3,32767,32767,32767,32767,32767,32767, 91,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767, 510, 510, 510, 94, 499,32767, - 499,32767,32767,32767, 314, 314, 314,32767, 454, 454, - 454, 454, 454, 454, 454,32767,32767,32767,32767,32767, - 394,32767,32767,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767, 91, 94, 512, 512, 512, 501,32767, + 91, 501,32767,32767,32767, 316, 316, 316,32767, 456, + 456, 456, 456, 456, 456, 456,32767,32767,32767,32767, + 32767, 396,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767, 92,32767,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767, 506,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767, 377, 378, 380, 381, 313, 455, - 509, 259, 505, 312, 130, 270, 261, 211, 243, 310, - 134, 342, 395, 344, 393, 397, 343, 319, 323, 324, - 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, - 335, 317, 318, 396, 398, 399, 374, 373, 372, 340, - 316, 341, 345, 316, 347, 346, 363, 364, 361, 362, - 365, 366, 367, 368, 369,32767,32767,32767,32767,32767, - 32767,32767,32767,32767,32767,32767,32767,32767,32767, 94, - 32767,32767,32767, 293, 354, 355, 250, 250, 250, 250, - 250, 250,32767, 250,32767, 250,32767,32767,32767,32767, - 32767,32767, 448, 371, 349, 350, 348,32767, 426,32767, - 32767,32767,32767,32767, 428,32767, 92,32767,32767,32767, - 337, 339, 420, 508, 320, 507,32767,32767, 94, 414, + 32767,32767,32767,32767, 508,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 423,32767,32767, 92,32767,32767, 92, 174, 230, 232, - 179,32767, 431,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767,32767, 379, 380, 382, 383, 315, 457, + 511, 261, 507, 314, 132, 272, 263, 213, 245, 312, + 136, 344, 397, 346, 395, 399, 345, 321, 325, 326, + 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, + 337, 319, 320, 398, 400, 401, 376, 375, 374, 342, + 318, 343, 347, 318, 349, 348, 365, 366, 363, 364, + 367, 368, 369, 370, 371,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767,32767,32767,32767,32767, 95, + 32767,32767,32767, 252, 295, 356, 357, 252, 252, 252, + 252, 252, 252,32767,32767, 252,32767, 91,32767,32767, + 32767,32767,32767, 450, 373, 351, 352, 350,32767, 428, + 32767,32767,32767,32767,32767, 430,32767,32767,32767,32767, + 339, 341, 422, 510, 322, 509,32767,32767, 91, 95, + 416, 91,32767, 181,32767,32767,32767,32767,32767,32767, + 32767,32767,32767, 425,32767,32767, 91, 91, 91, 91, + 32767,32767, 176, 232, 234,32767, 433,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767, 414, 359, 517,32767, 456,32767, 351, - 352, 353,32767,32767, 456, 456, 456,32767, 456,32767, - 456, 456,32767,32767,32767,32767,32767, 179,32767,32767, - 32767,32767, 94, 429, 429, 92, 92, 92, 92, 424, - 32767, 179, 179,32767,32767,32767,32767,32767, 179, 91, - 91, 91, 91, 179, 179, 91, 194,32767, 192, 192, - 91,32767, 93,32767, 93, 196,32767, 470, 196, 91, - 179, 91, 216, 216, 405, 181, 252, 93, 252, 252, - 93, 405, 252, 179, 252, 91, 91,32767, 91, 252, - 32767,32767,32767, 85,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767,32767,32767,32767,32767, 416,32767, - 436,32767, 449, 468,32767, 357, 358, 360,32767, 458, - 382, 383, 384, 385, 386, 387, 388, 390,32767, 419, - 32767,32767,32767, 87, 121, 269,32767, 515, 87, 417, - 32767, 515,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767, 87, 87,32767,32767,32767,32767,32767, 495, - 32767, 516,32767, 456, 418,32767, 356, 432, 475,32767, - 32767, 457,32767,32767,32767,32767, 87,32767,32767,32767, - 32767,32767,32767,32767,32767,32767, 436,32767,32767,32767, - 32767,32767,32767,32767, 456,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767,32767,32767, 416, 361, 519, + 32767, 458,32767, 353, 354, 355,32767,32767, 458, 458, + 458,32767, 458,32767, 458, 458,32767,32767,32767,32767, + 32767, 181,32767,32767,32767,32767, 95, 431, 431, 93, + 93, 93, 93, 426,32767, 181, 181,32767,32767,32767, + 32767,32767, 181, 91, 91, 91, 91, 181, 181, 91, + 196,32767, 194, 194, 91,32767,32767, 91, 198,32767, + 472, 198, 91, 181, 91, 218, 218, 407, 183, 254, + 254, 254, 407, 254, 181, 254, 91, 91,32767, 91, + 254,32767,32767,32767, 85,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767,32767,32767,32767,32767, 418, + 32767, 438,32767, 451, 470,32767, 359, 360, 362,32767, + 460, 384, 385, 386, 387, 388, 389, 390, 392,32767, + 421,32767,32767,32767, 87, 123, 271,32767, 517, 87, + 419,32767, 517,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767, 87, 87,32767,32767,32767,32767,32767, + 497,32767, 518,32767, 458, 420,32767, 358,32767, 434, + 477,32767,32767, 459,32767,32767,32767,32767, 87, 94, + 32767,32767,32767,32767,32767,32767,32767,32767,32767, 438, + 32767,32767,32767,32767,32767,32767,32767, 458,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 456,32767,32767, 242,32767,32767,32767, 309,32767,32767, - 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767, 85, 60,32767, 289,32767,32767,32767,32767,32767, - 32767,32767,32767,32767,32767,32767, 136, 136, 3, 272, - 3, 272, 136, 136, 136, 272, 272, 136, 136, 136, - 136, 136, 136, 136, 169, 224, 227, 216, 216, 281, - 136, 136 + 32767,32767,32767, 458,32767,32767, 244,32767,32767,32767, + 311,32767,32767,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767,32767, 85, 60,32767, 291,32767,32767, + 32767,32767,32767,32767,32767,32767,32767,32767,32767, 138, + 138, 3, 274, 3, 274, 138, 138, 138, 274, 274, + 138, 138, 138, 138, 138, 138, 138, 171, 226, 229, + 218, 218, 283, 138, 138 ); protected $goto = array( - 171, 144, 144, 144, 171, 152, 153, 152, 155, 187, - 172, 168, 168, 168, 168, 169, 169, 169, 169, 169, - 169, 169, 164, 165, 166, 167, 184, 182, 185, 445, - 446, 334, 447, 450, 451, 452, 453, 454, 455, 456, - 457, 924, 141, 145, 146, 147, 170, 148, 149, 143, - 150, 151, 154, 181, 183, 186, 206, 209, 211, 212, - 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, - 224, 244, 245, 264, 265, 266, 339, 340, 341, 496, - 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, - 198, 199, 200, 201, 202, 156, 203, 157, 173, 174, + 171, 171, 144, 144, 144, 152, 153, 173, 152, 155, + 187, 172, 168, 168, 168, 168, 169, 169, 169, 169, + 169, 169, 169, 164, 165, 166, 167, 184, 182, 185, + 446, 447, 338, 448, 451, 452, 453, 454, 455, 456, + 457, 458, 929, 141, 145, 146, 147, 170, 148, 149, + 143, 150, 151, 154, 181, 183, 186, 206, 209, 211, + 212, 214, 215, 216, 217, 218, 219, 220, 221, 222, + 223, 224, 245, 246, 265, 266, 267, 343, 344, 345, + 497, 188, 189, 190, 191, 192, 193, 194, 195, 196, + 197, 198, 199, 200, 201, 202, 156, 203, 157, 174, 175, 207, 176, 158, 159, 160, 177, 161, 208, 142, - 204, 162, 178, 205, 179, 180, 163, 563, 210, 463, - 210, 516, 516, 1038, 572, 1038, 1038, 1038, 1038, 1038, - 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 468, 468, - 468, 514, 537, 468, 297, 489, 521, 489, 498, 274, - 533, 534, 698, 483, 258, 468, 448, 448, 448, 725, - 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, - 448, 448, 448, 449, 449, 449, 699, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 1114, 1114, 734, 725, 899, 725, 315, 319, 475, 499, - 500, 502, 1083, 1084, 468, 468, 760, 1114, 761, 900, - 482, 506, 468, 468, 468, 329, 330, 686, 481, 545, - 495, 332, 510, 596, 523, 525, 294, 469, 538, 556, - 559, 835, 566, 574, 831, 765, 729, 717, 864, 494, - 807, 868, 490, 860, 716, 716, 810, 697, 1013, 1105, - 726, 726, 726, 728, 715, 840, 1093, 800, 824, 805, - 805, 803, 805, 595, 313, 460, 833, 828, 459, 3, - 4, 907, 733, 539, 1009, 487, 317, 461, 459, 497, - 892, 575, 972, 474, 843, 557, 890, 1129, 484, 485, - 505, 517, 519, 520, 568, 801, 801, 801, 801, 465, - 855, 795, 802, 1002, 787, 405, 1003, 799, 327, 571, - 356, 1082, 530, 1014, 848, 346, 540, 350, 11, 337, - 337, 280, 281, 283, 493, 344, 284, 345, 285, 348, - 524, 351, 1015, 1069, 1113, 1113, 543, 301, 298, 299, - 721, 560, 838, 838, 1100, 295, 865, 718, 600, 323, - 544, 1113, 1010, 1017, 511, 1005, 869, 849, 849, 849, - 849, 849, 849, 1017, 849, 849, 849, 720, 730, 1116, - 714, 812, 849, 1088, 1088, 909, 465, 398, 513, 414, - 1017, 1017, 1017, 1017, 0, 1079, 1017, 1017, 0, 701, - 0, 0, 0, 0, 0, 1079, 0, 0, 0, 0, - 0, 773, 1090, 1090, 774, 706, 0, 756, 751, 752, - 766, 0, 707, 753, 704, 754, 755, 705, 0, 759, - 0, 1075, 0, 0, 0, 0, 0, 1012, 0, 0, - 0, 480, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 867, 0, 1077, 1077, 867, + 204, 162, 178, 205, 179, 180, 163, 566, 210, 464, + 575, 210, 770, 319, 323, 476, 501, 502, 504, 499, + 897, 498, 578, 517, 540, 560, 895, 469, 469, 469, + 469, 500, 704, 490, 300, 469, 490, 507, 520, 522, + 523, 571, 450, 450, 450, 484, 450, 450, 450, 450, + 450, 450, 450, 450, 450, 450, 450, 450, 450, 449, + 449, 449, 703, 449, 449, 449, 449, 449, 449, 449, + 449, 449, 449, 449, 449, 449, 519, 519, 1043, 730, + 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, 1043, + 1043, 1043, 1043, 1007, 792, 740, 1008, 469, 469, 730, + 1134, 1088, 1089, 483, 508, 469, 469, 469, 689, 333, + 334, 482, 548, 466, 336, 730, 599, 526, 528, 297, + 470, 541, 559, 562, 840, 569, 577, 836, 702, 904, + 466, 275, 495, 812, 1118, 1118, 259, 1119, 1119, 829, + 810, 810, 808, 810, 598, 905, 461, 838, 833, 865, + 460, 1118, 524, 546, 1119, 491, 536, 537, 563, 3, + 4, 460, 1018, 1110, 765, 807, 766, 721, 721, 706, + 496, 1121, 513, 731, 731, 731, 733, 720, 806, 806, + 806, 806, 1098, 317, 800, 542, 711, 488, 761, 756, + 757, 771, 848, 712, 758, 709, 759, 760, 710, 977, + 764, 804, 331, 574, 860, 350, 543, 354, 360, 341, + 341, 280, 281, 283, 494, 348, 284, 349, 285, 352, + 527, 355, 514, 725, 719, 1087, 304, 1019, 301, 302, + 843, 843, 1105, 853, 533, 298, 723, 327, 874, 871, + 726, 1017, 603, 1022, 854, 1020, 1074, 736, 854, 854, + 854, 854, 854, 854, 1022, 854, 854, 547, 1022, 913, + 1093, 1093, 816, 854, 1010, 1015, 401, 24, 1084, 516, + 415, 1022, 1022, 1022, 1022, 0, 0, 1022, 0, 1084, + 0, 0, 0, 0, 0, 0, 1095, 1095, 321, 462, + 0, 0, 0, 778, 0, 475, 0, 779, 0, 0, + 485, 486, 0, 0, 1080, 0, 463, 0, 479, 0, + 0, 0, 0, 0, 0, 0, 408, 872, 0, 0, + 0, 481, 0, 0, 0, 0, 0, 11, 0, 0, + 0, 872, 0, 0, 0, 0, 1082, 1082, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 463, 479, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 462, 478, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 462, - 0, 478, 0, 0, 316, 0, 0, 466, 386, 0, - 388, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 724, 0, 1121 + 0, 0, 0, 0, 320, 0, 0, 467, 390, 0, + 392, 918, 734, 722, 869, 0, 0, 873, 0, 0, + 0, 0, 815, 0, 0, 729, 1126, 0, 0, 0, + 845, 0, 805, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 912, 738, 0, 1014 ); protected $gotoCheck = array( - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 63, 56, 10, - 56, 86, 86, 86, 8, 86, 86, 86, 86, 86, - 86, 86, 86, 86, 86, 86, 86, 86, 10, 10, - 10, 46, 46, 10, 80, 85, 73, 85, 97, 134, - 73, 73, 17, 10, 134, 10, 135, 135, 135, 26, - 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, - 135, 135, 135, 137, 137, 137, 18, 137, 137, 137, - 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, - 148, 148, 36, 26, 111, 26, 49, 49, 49, 49, - 49, 49, 141, 141, 10, 10, 55, 148, 55, 111, - 10, 10, 10, 10, 10, 69, 69, 5, 39, 69, - 2, 69, 2, 39, 39, 39, 69, 10, 39, 39, - 39, 39, 39, 39, 39, 13, 14, 14, 14, 10, - 40, 14, 136, 94, 26, 26, 14, 16, 92, 146, - 26, 26, 26, 26, 26, 14, 143, 14, 16, 16, - 16, 16, 16, 16, 52, 16, 16, 16, 75, 37, - 37, 14, 14, 54, 14, 53, 65, 65, 75, 7, - 7, 7, 118, 65, 88, 7, 7, 12, 65, 65, - 68, 68, 68, 68, 68, 75, 75, 75, 75, 12, - 90, 75, 75, 67, 67, 65, 67, 76, 76, 76, - 89, 139, 24, 92, 91, 56, 56, 56, 65, 56, - 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, - 56, 56, 92, 92, 147, 147, 12, 20, 80, 80, - 30, 12, 85, 85, 85, 11, 96, 28, 82, 19, - 23, 147, 127, 63, 15, 124, 99, 63, 63, 63, - 63, 63, 63, 63, 63, 63, 63, 15, 32, 147, - 15, 79, 63, 8, 8, 114, 12, 71, 72, 122, - 63, 63, 63, 63, -1, 97, 63, 63, -1, 13, - -1, -1, -1, -1, -1, 97, -1, -1, -1, -1, - -1, 63, 97, 97, 63, 13, -1, 13, 13, 13, - 13, -1, 13, 13, 13, 13, 13, 13, -1, 13, - -1, 97, -1, -1, -1, -1, -1, 12, -1, -1, - -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 97, -1, 97, 97, 97, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 64, 57, 10, + 8, 57, 13, 50, 50, 50, 50, 50, 50, 7, + 7, 14, 7, 47, 47, 7, 7, 10, 10, 10, + 10, 98, 19, 86, 81, 10, 86, 69, 69, 69, + 69, 69, 138, 138, 138, 10, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 136, + 136, 136, 18, 136, 136, 136, 136, 136, 136, 136, + 136, 136, 136, 136, 136, 136, 87, 87, 87, 27, + 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, + 87, 87, 87, 68, 68, 37, 68, 10, 10, 27, + 12, 142, 142, 10, 10, 10, 10, 10, 5, 70, + 70, 40, 70, 12, 70, 27, 40, 40, 40, 70, + 10, 40, 40, 40, 40, 40, 40, 40, 17, 112, + 12, 135, 10, 41, 148, 148, 135, 149, 149, 17, + 17, 17, 17, 17, 17, 112, 17, 17, 17, 95, + 76, 148, 74, 12, 149, 137, 74, 74, 12, 38, + 38, 76, 93, 147, 56, 76, 56, 27, 27, 13, + 2, 148, 2, 27, 27, 27, 27, 27, 76, 76, + 76, 76, 144, 53, 76, 55, 13, 54, 13, 13, + 13, 13, 89, 13, 13, 13, 13, 13, 13, 119, + 13, 77, 77, 77, 91, 57, 57, 57, 90, 57, + 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, + 57, 57, 15, 15, 15, 140, 21, 93, 81, 81, + 86, 86, 86, 92, 25, 11, 29, 20, 100, 97, + 31, 12, 83, 64, 64, 93, 93, 33, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 24, 64, 115, + 8, 8, 80, 64, 125, 128, 72, 16, 98, 73, + 123, 64, 64, 64, 64, -1, -1, 64, -1, 98, + -1, -1, -1, -1, -1, -1, 98, 98, 66, 66, + -1, -1, -1, 64, -1, 66, -1, 64, -1, -1, + 66, 66, -1, -1, 98, -1, 8, -1, 8, -1, + -1, -1, -1, -1, -1, -1, 66, 98, -1, -1, + -1, 8, -1, -1, -1, -1, -1, 66, -1, -1, + -1, 98, -1, -1, -1, -1, 98, 98, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8, 8, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 8, - -1, 8, -1, -1, 8, -1, -1, 8, 8, -1, - 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 8, -1, 8 + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 8, -1, -1, 8, 8, -1, + 8, 14, 14, 14, 14, -1, -1, 14, -1, -1, + -1, -1, 14, -1, -1, 8, 8, -1, -1, -1, + 14, -1, 14, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 14, 14, -1, 14 ); protected $gotoBase = array( - 0, 0, -358, 0, 0, 207, 0, 274, 114, 0, - -148, 54, 10, 94, -144, -40, 245, 150, 174, 48, - 70, 0, 0, -3, 25, 0, -108, 0, 44, 0, - 52, 0, 3, -23, 0, 0, 183, -331, 0, -359, - 221, 0, 0, 0, 0, 0, 106, 0, 0, 157, - 0, 0, 227, 45, 47, 191, 90, 0, 0, 0, - 0, 0, 0, 111, 0, -95, 0, -26, 43, -193, - 0, -12, -20, -435, 0, 26, 37, 0, 0, 4, - -259, 0, 20, 0, 0, 117, -104, 0, 31, 55, - 46, 53, -64, 0, 216, 0, 40, 143, 0, -10, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, -34, 0, 0, 7, 0, 0, 0, 30, 0, - 0, 0, -32, 0, -9, 0, 0, -5, 0, 0, - 0, 0, 0, 0, -119, -69, 217, -52, 0, 51, - 0, -102, 0, 226, 0, 0, 223, 77, -67, 0, - 0 + 0, 0, -301, 0, 0, 208, 0, 124, 110, 0, + -149, 51, -67, -19, 108, -38, 7, 236, 170, 140, + 43, 68, 0, 0, 10, 57, 0, -79, 0, 58, + 0, 61, 0, -1, -23, 0, 0, 196, -334, 0, + -359, 224, 0, 0, 0, 0, 0, 97, 0, 0, + 83, 0, 0, 255, 67, 69, 259, 90, 0, 0, + 0, 0, 0, 0, 111, 0, 23, 0, -130, -101, + -191, 0, -17, -22, -322, 0, 18, 40, 0, 0, + 13, -262, 0, 20, 0, 0, 115, -39, 0, 59, + 63, 60, 81, -44, 0, 235, 0, 44, 136, 0, + 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 11, 0, 0, 9, 0, 0, 0, 56, + 0, 0, 0, -32, 0, 6, 0, 0, 14, 0, + 0, 0, 0, 0, 0, -28, -56, 239, -73, 0, + 74, 0, -99, 0, 261, 0, 0, 246, -14, -11, + 0, 0 ); protected $gotoDefault = array( - -32768, 420, 603, 2, 604, 676, 684, 548, 437, 573, - 438, 464, 335, 758, 913, 778, 740, 741, 742, 320, - 361, 311, 318, 531, 518, 410, 727, 381, 719, 407, - 722, 380, 731, 140, 549, 416, 735, 1, 737, 470, - 769, 308, 745, 309, 552, 747, 477, 749, 750, 314, - 321, 322, 917, 486, 515, 762, 213, 479, 763, 307, - 764, 772, 331, 312, 392, 417, 326, 894, 504, 527, - 376, 395, 512, 507, 488, 1024, 797, 401, 390, 811, - 296, 819, 601, 827, 830, 439, 440, 399, 842, 400, - 853, 847, 1032, 394, 859, 382, 866, 1064, 385, 870, - 228, 873, 255, 546, 349, 878, 879, 6, 884, 564, - 565, 7, 243, 415, 908, 547, 379, 923, 364, 991, - 993, 472, 408, 1006, 389, 555, 418, 1011, 1068, 377, - 441, 396, 282, 300, 257, 442, 458, 262, 443, 397, - 1071, 1078, 338, 1094, 279, 26, 1106, 1115, 292, 492, - 509 + -32768, 421, 606, 2, 607, 679, 687, 551, 438, 576, + 439, 465, 339, 763, 697, 783, 509, 745, 746, 747, + 324, 365, 315, 322, 534, 521, 372, 732, 385, 724, + 371, 727, 384, 735, 140, 552, 417, 739, 1, 742, + 471, 774, 313, 750, 314, 555, 752, 478, 754, 755, + 318, 325, 326, 922, 487, 518, 767, 213, 480, 768, + 312, 769, 777, 335, 316, 369, 418, 330, 899, 506, + 530, 380, 398, 515, 510, 489, 1029, 802, 404, 394, + 817, 299, 824, 604, 832, 835, 440, 441, 402, 847, + 403, 858, 852, 1037, 370, 864, 386, 870, 1069, 389, + 875, 228, 878, 255, 549, 353, 883, 884, 6, 889, + 567, 568, 8, 244, 416, 914, 550, 383, 928, 368, + 996, 998, 473, 410, 1011, 393, 558, 419, 1016, 1073, + 381, 442, 399, 282, 303, 258, 443, 459, 263, 444, + 400, 1076, 1083, 342, 1099, 279, 27, 1111, 1120, 295, + 493, 512 ); protected $ruleToNonTerminal = array( @@ -752,50 +769,50 @@ class Php7 extends \PhpParser\ParserAbstract 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 9, 10, 10, 11, 12, 13, - 13, 14, 14, 15, 15, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 20, 20, 21, 21, - 21, 21, 23, 25, 25, 19, 27, 27, 24, 29, - 29, 26, 26, 28, 28, 30, 30, 22, 31, 31, - 32, 34, 35, 35, 36, 37, 37, 39, 38, 38, - 38, 38, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 16, 16, 59, - 59, 62, 62, 61, 60, 60, 53, 64, 64, 65, - 65, 66, 66, 67, 67, 17, 18, 18, 18, 70, - 70, 70, 71, 71, 74, 74, 72, 72, 76, 77, - 77, 47, 47, 55, 55, 58, 58, 58, 57, 78, - 78, 79, 48, 48, 48, 48, 80, 80, 81, 81, - 82, 82, 45, 45, 41, 41, 83, 43, 43, 84, - 42, 42, 44, 44, 54, 54, 54, 54, 68, 68, - 87, 87, 88, 88, 88, 90, 90, 91, 91, 91, - 89, 89, 69, 69, 69, 92, 92, 93, 93, 94, - 94, 94, 50, 95, 95, 96, 51, 98, 98, 99, - 99, 100, 100, 73, 101, 101, 101, 101, 101, 106, - 106, 107, 107, 108, 108, 108, 108, 108, 109, 110, - 110, 105, 105, 102, 102, 104, 104, 112, 112, 111, - 111, 111, 111, 111, 111, 103, 113, 113, 115, 114, - 114, 52, 116, 116, 46, 46, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 33, 33, 123, 117, 117, 122, 122, 125, 126, 126, - 127, 128, 128, 128, 75, 75, 63, 63, 63, 118, - 118, 118, 130, 130, 119, 119, 121, 121, 121, 124, - 124, 135, 135, 135, 86, 137, 137, 137, 120, 120, - 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, - 120, 120, 120, 120, 49, 49, 133, 133, 133, 129, - 129, 129, 138, 138, 138, 138, 138, 138, 56, 56, - 56, 97, 97, 97, 97, 141, 140, 132, 132, 132, - 132, 132, 132, 131, 131, 131, 139, 139, 139, 139, - 85, 142, 142, 143, 143, 143, 143, 143, 143, 143, - 136, 145, 145, 144, 144, 146, 146, 146, 146, 146, - 146, 134, 134, 134, 134, 148, 149, 147, 147, 147, - 147, 147, 147, 147, 150, 150, 150, 150 + 13, 14, 14, 15, 15, 16, 16, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 21, 21, + 22, 22, 22, 22, 24, 26, 26, 20, 28, 28, + 25, 30, 30, 27, 27, 29, 29, 31, 31, 23, + 32, 32, 33, 35, 36, 36, 37, 38, 38, 40, + 39, 39, 39, 39, 41, 41, 41, 41, 41, 41, + 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, + 41, 41, 41, 41, 41, 41, 41, 41, 41, 17, + 17, 60, 60, 63, 63, 62, 61, 61, 54, 65, + 65, 66, 66, 67, 67, 68, 68, 18, 19, 19, + 19, 71, 71, 71, 72, 72, 75, 75, 73, 73, + 77, 78, 78, 48, 48, 56, 56, 59, 59, 59, + 58, 79, 79, 80, 49, 49, 49, 49, 81, 81, + 82, 82, 83, 83, 46, 46, 42, 42, 84, 44, + 44, 85, 43, 43, 45, 45, 55, 55, 55, 55, + 69, 69, 88, 88, 89, 89, 89, 91, 91, 92, + 92, 92, 90, 90, 70, 70, 70, 93, 93, 94, + 94, 95, 95, 95, 51, 96, 96, 97, 52, 99, + 99, 100, 100, 101, 101, 74, 102, 102, 102, 102, + 102, 107, 107, 108, 108, 109, 109, 109, 109, 109, + 110, 111, 111, 106, 106, 103, 103, 105, 105, 113, + 113, 112, 112, 112, 112, 112, 112, 104, 114, 114, + 116, 115, 115, 53, 117, 117, 47, 47, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, + 34, 34, 34, 34, 124, 118, 118, 123, 123, 126, + 127, 127, 128, 129, 129, 129, 76, 76, 64, 64, + 64, 119, 119, 119, 131, 131, 120, 120, 122, 122, + 122, 125, 125, 136, 136, 136, 87, 138, 138, 138, + 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, + 121, 121, 121, 121, 121, 121, 50, 50, 134, 134, + 134, 130, 130, 130, 139, 139, 139, 139, 139, 139, + 57, 57, 57, 98, 98, 98, 98, 142, 141, 133, + 133, 133, 133, 133, 133, 132, 132, 132, 140, 140, + 140, 140, 86, 143, 143, 144, 144, 144, 144, 144, + 144, 144, 137, 146, 146, 145, 145, 147, 147, 147, + 147, 147, 147, 135, 135, 135, 135, 149, 150, 148, + 148, 148, 148, 148, 148, 148, 151, 151, 151, 151 ); protected $ruleToLength = array( @@ -808,50 +825,50 @@ class Php7 extends \PhpParser\ParserAbstract 1, 1, 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, 1, 1, 1, - 1, 0, 1, 0, 1, 1, 1, 1, 1, 3, - 5, 4, 3, 4, 2, 3, 1, 1, 7, 8, - 6, 7, 2, 3, 1, 2, 3, 1, 2, 3, - 1, 1, 3, 1, 2, 1, 2, 2, 3, 1, - 3, 2, 3, 1, 3, 2, 0, 1, 1, 1, - 1, 1, 3, 7, 10, 5, 7, 9, 5, 3, - 3, 3, 3, 3, 3, 1, 2, 5, 7, 9, - 6, 5, 6, 3, 3, 2, 1, 1, 1, 0, - 2, 1, 3, 8, 0, 4, 2, 1, 3, 0, - 1, 0, 1, 3, 1, 8, 7, 6, 5, 1, - 2, 2, 0, 2, 0, 2, 0, 2, 2, 1, - 3, 1, 4, 1, 4, 1, 1, 4, 2, 1, - 3, 3, 3, 4, 4, 5, 0, 2, 4, 3, - 1, 1, 1, 4, 0, 2, 5, 0, 2, 6, - 0, 2, 0, 3, 1, 2, 1, 1, 2, 0, - 1, 3, 4, 6, 4, 1, 2, 1, 1, 1, - 0, 1, 0, 2, 2, 2, 4, 1, 3, 1, - 2, 2, 2, 3, 1, 1, 2, 3, 1, 1, - 3, 2, 0, 1, 4, 4, 9, 3, 1, 1, - 3, 0, 2, 4, 5, 4, 4, 4, 3, 1, - 1, 1, 1, 1, 1, 0, 1, 1, 2, 1, - 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, - 3, 2, 3, 1, 0, 1, 1, 3, 3, 3, - 4, 1, 2, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, - 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 5, 4, 3, 4, 4, 2, 2, 4, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 1, 3, 2, 1, 2, 4, 2, 8, 9, - 8, 9, 7, 3, 2, 0, 4, 2, 1, 3, - 2, 2, 2, 4, 1, 1, 1, 2, 3, 1, - 1, 1, 1, 1, 0, 3, 0, 1, 1, 0, - 1, 1, 3, 3, 3, 4, 1, 1, 1, 1, + 1, 0, 2, 0, 1, 1, 2, 1, 1, 1, + 1, 3, 5, 4, 3, 4, 2, 3, 1, 1, + 7, 8, 6, 7, 2, 3, 1, 2, 3, 1, + 2, 3, 1, 1, 3, 1, 2, 1, 2, 2, + 3, 1, 3, 2, 3, 1, 3, 2, 0, 1, + 1, 1, 1, 1, 3, 7, 10, 5, 7, 9, + 5, 3, 3, 3, 3, 3, 3, 1, 2, 5, + 7, 9, 6, 5, 6, 3, 3, 2, 1, 1, + 1, 0, 2, 1, 3, 8, 0, 4, 2, 1, + 3, 0, 1, 0, 1, 3, 1, 8, 7, 6, + 5, 1, 2, 2, 0, 2, 0, 2, 0, 2, + 2, 1, 3, 1, 4, 1, 4, 1, 1, 4, + 2, 1, 3, 3, 3, 4, 4, 5, 0, 2, + 4, 3, 1, 1, 1, 4, 0, 2, 5, 0, + 2, 6, 0, 2, 0, 3, 1, 2, 1, 1, + 2, 0, 1, 3, 4, 6, 4, 1, 2, 1, + 1, 1, 0, 1, 0, 2, 2, 3, 4, 1, + 3, 1, 2, 2, 2, 3, 1, 1, 2, 3, + 1, 1, 3, 2, 0, 1, 4, 4, 9, 3, + 1, 1, 3, 0, 2, 4, 5, 4, 4, 4, + 3, 1, 1, 1, 1, 1, 1, 0, 1, 1, + 2, 1, 1, 1, 1, 1, 1, 2, 1, 3, + 1, 1, 3, 2, 3, 1, 0, 1, 1, 3, + 3, 3, 4, 1, 2, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, + 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, + 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 5, 4, 3, 4, 4, 2, + 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 1, 3, 2, 1, 2, 4, 2, + 8, 9, 8, 9, 7, 3, 2, 0, 4, 2, + 1, 3, 2, 2, 2, 4, 1, 1, 1, 2, + 3, 1, 1, 1, 1, 1, 0, 3, 0, 1, + 1, 0, 1, 1, 3, 3, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 3, 2, 3, 3, 0, 1, 1, 3, 1, 1, - 3, 1, 1, 4, 4, 4, 1, 4, 1, 1, - 3, 1, 4, 2, 2, 1, 3, 1, 4, 4, - 3, 3, 3, 1, 3, 1, 1, 3, 1, 1, - 4, 3, 1, 1, 2, 1, 3, 4, 3, 0, - 1, 1, 1, 3, 1, 3, 1, 4, 2, 2, - 0, 2, 2, 1, 2, 1, 1, 1, 4, 3, - 3, 3, 6, 3, 1, 1, 2, 1 + 1, 1, 3, 2, 3, 3, 0, 1, 1, 3, + 1, 1, 3, 1, 1, 4, 4, 4, 1, 4, + 1, 1, 3, 1, 4, 2, 2, 1, 3, 1, + 4, 4, 3, 3, 3, 1, 3, 1, 1, 3, + 1, 1, 4, 3, 1, 1, 2, 1, 3, 4, + 3, 0, 1, 1, 1, 3, 1, 3, 1, 4, + 2, 2, 0, 2, 2, 1, 2, 1, 1, 1, + 4, 3, 3, 3, 6, 3, 1, 1, 2, 1 ); protected function initReduceCallbacks() { @@ -1134,7 +1151,7 @@ protected function initReduceCallbacks() { /* nothing */ }, 92 => function ($stackPos) { - $this->emitError(new Error('A trailing comma is not allowed here', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes)); + $this->emitError(new Error('A trailing comma is not allowed here', $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes)); }, 93 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos]; @@ -1143,154 +1160,160 @@ protected function initReduceCallbacks() { $this->semValue = $this->semStack[$stackPos]; }, 95 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + /* nothing */ }, 96 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->emitError(new Error('Only one comma was expected', $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes)); }, 97 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 98 => function ($stackPos) { - $this->semValue = new Stmt\HaltCompiler($this->lexer->handleHaltCompiler(), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 99 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 100 => function ($stackPos) { + $this->semValue = new Stmt\HaltCompiler($this->lexer->handleHaltCompiler(), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 101 => function ($stackPos) { $this->semValue = new Stmt\Namespace_($this->semStack[$stackPos-(3-2)], null, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); $this->semValue->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); $this->checkNamespace($this->semValue); }, - 100 => function ($stackPos) { + 102 => function ($stackPos) { $this->semValue = new Stmt\Namespace_($this->semStack[$stackPos-(5-2)], $this->semStack[$stackPos-(5-4)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); $this->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); $this->checkNamespace($this->semValue); }, - 101 => function ($stackPos) { + 103 => function ($stackPos) { $this->semValue = new Stmt\Namespace_(null, $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); $this->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); $this->checkNamespace($this->semValue); }, - 102 => function ($stackPos) { + 104 => function ($stackPos) { $this->semValue = new Stmt\Use_($this->semStack[$stackPos-(3-2)], Stmt\Use_::TYPE_NORMAL, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 103 => function ($stackPos) { + 105 => function ($stackPos) { $this->semValue = new Stmt\Use_($this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-2)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 104 => function ($stackPos) { + 106 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 105 => function ($stackPos) { + 107 => function ($stackPos) { $this->semValue = new Stmt\Const_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 106 => function ($stackPos) { + 108 => function ($stackPos) { $this->semValue = Stmt\Use_::TYPE_FUNCTION; }, - 107 => function ($stackPos) { + 109 => function ($stackPos) { $this->semValue = Stmt\Use_::TYPE_CONSTANT; }, - 108 => function ($stackPos) { + 110 => function ($stackPos) { $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$stackPos-(7-3)], $this->startAttributeStack[$stackPos-(7-3)] + $this->endAttributeStack[$stackPos-(7-3)]), $this->semStack[$stackPos-(7-6)], $this->semStack[$stackPos-(7-2)], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); }, - 109 => function ($stackPos) { + 111 => function ($stackPos) { $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$stackPos-(8-4)], $this->startAttributeStack[$stackPos-(8-4)] + $this->endAttributeStack[$stackPos-(8-4)]), $this->semStack[$stackPos-(8-7)], $this->semStack[$stackPos-(8-2)], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, - 110 => function ($stackPos) { + 112 => function ($stackPos) { $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$stackPos-(6-2)], $this->startAttributeStack[$stackPos-(6-2)] + $this->endAttributeStack[$stackPos-(6-2)]), $this->semStack[$stackPos-(6-5)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); }, - 111 => function ($stackPos) { + 113 => function ($stackPos) { $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$stackPos-(7-3)], $this->startAttributeStack[$stackPos-(7-3)] + $this->endAttributeStack[$stackPos-(7-3)]), $this->semStack[$stackPos-(7-6)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); }, - 112 => function ($stackPos) { + 114 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 113 => function ($stackPos) { + 115 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 114 => function ($stackPos) { + 116 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 115 => function ($stackPos) { + 117 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 116 => function ($stackPos) { + 118 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 117 => function ($stackPos) { + 119 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 118 => function ($stackPos) { + 120 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 119 => function ($stackPos) { + 121 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 120 => function ($stackPos) { + 122 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 121 => function ($stackPos) { + 123 => function ($stackPos) { $this->semValue = new Stmt\UseUse($this->semStack[$stackPos-(1-1)], null, Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->checkUseUse($this->semValue, $stackPos-(1-1)); }, - 122 => function ($stackPos) { + 124 => function ($stackPos) { $this->semValue = new Stmt\UseUse($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); $this->checkUseUse($this->semValue, $stackPos-(3-3)); }, - 123 => function ($stackPos) { + 125 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 124 => function ($stackPos) { + 126 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-2)]; }, - 125 => function ($stackPos) { + 127 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; $this->semValue->type = Stmt\Use_::TYPE_NORMAL; }, - 126 => function ($stackPos) { + 128 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-2)]; $this->semValue->type = $this->semStack[$stackPos-(2-1)]; }, - 127 => function ($stackPos) { + 129 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 128 => function ($stackPos) { + 130 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 129 => function ($stackPos) { + 131 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 130 => function ($stackPos) { + 132 => function ($stackPos) { $this->semValue = new Node\Const_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 131 => function ($stackPos) { + 133 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 132 => function ($stackPos) { + 134 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 133 => function ($stackPos) { + 135 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 134 => function ($stackPos) { + 136 => function ($stackPos) { $this->semValue = new Node\Const_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 135 => function ($stackPos) { + 137 => function ($stackPos) { if (is_array($this->semStack[$stackPos-(2-2)])) { $this->semValue = array_merge($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)]); } else { $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }; }, - 136 => function ($stackPos) { + 138 => function ($stackPos) { $this->semValue = array(); }, - 137 => function ($stackPos) { + 139 => function ($stackPos) { $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop($this->createZeroLengthAttributes($startAttributes)); } else { $nop = null; }; if ($nop !== null) { $this->semStack[$stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 138 => function ($stackPos) { + 140 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 139 => function ($stackPos) { + 141 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 140 => function ($stackPos) { + 142 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 141 => function ($stackPos) { + 143 => function ($stackPos) { throw new Error('__HALT_COMPILER() can only be used from the outermost scope', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 142 => function ($stackPos) { + 144 => function ($stackPos) { if ($this->semStack[$stackPos-(3-2)]) { $this->semValue = $this->semStack[$stackPos-(3-2)]; $attrs = $this->startAttributeStack[$stackPos-(3-1)]; $stmts = $this->semValue; if (!empty($attrs['comments'])) {$stmts[0]->setAttribute('comments', array_merge($attrs['comments'], $stmts[0]->getAttribute('comments', []))); }; @@ -1300,120 +1323,114 @@ protected function initReduceCallbacks() { } }, - 143 => function ($stackPos) { + 145 => function ($stackPos) { $this->semValue = new Stmt\If_($this->semStack[$stackPos-(7-3)], ['stmts' => is_array($this->semStack[$stackPos-(7-5)]) ? $this->semStack[$stackPos-(7-5)] : array($this->semStack[$stackPos-(7-5)]), 'elseifs' => $this->semStack[$stackPos-(7-6)], 'else' => $this->semStack[$stackPos-(7-7)]], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); }, - 144 => function ($stackPos) { + 146 => function ($stackPos) { $this->semValue = new Stmt\If_($this->semStack[$stackPos-(10-3)], ['stmts' => $this->semStack[$stackPos-(10-6)], 'elseifs' => $this->semStack[$stackPos-(10-7)], 'else' => $this->semStack[$stackPos-(10-8)]], $this->startAttributeStack[$stackPos-(10-1)] + $this->endAttributes); }, - 145 => function ($stackPos) { + 147 => function ($stackPos) { $this->semValue = new Stmt\While_($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 146 => function ($stackPos) { + 148 => function ($stackPos) { $this->semValue = new Stmt\Do_($this->semStack[$stackPos-(7-5)], is_array($this->semStack[$stackPos-(7-2)]) ? $this->semStack[$stackPos-(7-2)] : array($this->semStack[$stackPos-(7-2)]), $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); }, - 147 => function ($stackPos) { + 149 => function ($stackPos) { $this->semValue = new Stmt\For_(['init' => $this->semStack[$stackPos-(9-3)], 'cond' => $this->semStack[$stackPos-(9-5)], 'loop' => $this->semStack[$stackPos-(9-7)], 'stmts' => $this->semStack[$stackPos-(9-9)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 148 => function ($stackPos) { + 150 => function ($stackPos) { $this->semValue = new Stmt\Switch_($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 149 => function ($stackPos) { + 151 => function ($stackPos) { $this->semValue = new Stmt\Break_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 150 => function ($stackPos) { + 152 => function ($stackPos) { $this->semValue = new Stmt\Continue_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 151 => function ($stackPos) { + 153 => function ($stackPos) { $this->semValue = new Stmt\Return_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 152 => function ($stackPos) { + 154 => function ($stackPos) { $this->semValue = new Stmt\Global_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 153 => function ($stackPos) { + 155 => function ($stackPos) { $this->semValue = new Stmt\Static_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 154 => function ($stackPos) { + 156 => function ($stackPos) { $this->semValue = new Stmt\Echo_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 155 => function ($stackPos) { + 157 => function ($stackPos) { $this->semValue = new Stmt\InlineHTML($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 156 => function ($stackPos) { + 158 => function ($stackPos) { $this->semValue = new Stmt\Expression($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 157 => function ($stackPos) { + 159 => function ($stackPos) { $this->semValue = new Stmt\Unset_($this->semStack[$stackPos-(5-3)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 158 => function ($stackPos) { + 160 => function ($stackPos) { $this->semValue = new Stmt\Foreach_($this->semStack[$stackPos-(7-3)], $this->semStack[$stackPos-(7-5)][0], ['keyVar' => null, 'byRef' => $this->semStack[$stackPos-(7-5)][1], 'stmts' => $this->semStack[$stackPos-(7-7)]], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); }, - 159 => function ($stackPos) { + 161 => function ($stackPos) { $this->semValue = new Stmt\Foreach_($this->semStack[$stackPos-(9-3)], $this->semStack[$stackPos-(9-7)][0], ['keyVar' => $this->semStack[$stackPos-(9-5)], 'byRef' => $this->semStack[$stackPos-(9-7)][1], 'stmts' => $this->semStack[$stackPos-(9-9)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 160 => function ($stackPos) { + 162 => function ($stackPos) { $this->semValue = new Stmt\Foreach_($this->semStack[$stackPos-(6-3)], new Expr\Error($this->startAttributeStack[$stackPos-(6-4)] + $this->endAttributeStack[$stackPos-(6-4)]), ['stmts' => $this->semStack[$stackPos-(6-6)]], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); }, - 161 => function ($stackPos) { + 163 => function ($stackPos) { $this->semValue = new Stmt\Declare_($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 162 => function ($stackPos) { + 164 => function ($stackPos) { $this->semValue = new Stmt\TryCatch($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-5)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); $this->checkTryCatch($this->semValue); }, - 163 => function ($stackPos) { + 165 => function ($stackPos) { $this->semValue = new Stmt\Throw_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 164 => function ($stackPos) { + 166 => function ($stackPos) { $this->semValue = new Stmt\Goto_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 165 => function ($stackPos) { + 167 => function ($stackPos) { $this->semValue = new Stmt\Label($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 166 => function ($stackPos) { + 168 => function ($stackPos) { $this->semValue = array(); /* means: no statement */ }, - 167 => function ($stackPos) { + 169 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 168 => function ($stackPos) { + 170 => function ($stackPos) { $startAttributes = $this->startAttributeStack[$stackPos-(1-1)]; if (isset($startAttributes['comments'])) { $this->semValue = new Stmt\Nop($startAttributes + $this->endAttributes); } else { $this->semValue = null; }; if ($this->semValue === null) $this->semValue = array(); /* means: no statement */ }, - 169 => function ($stackPos) { - $this->semValue = array(); - }, - 170 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, 171 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = array(); }, 172 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 173 => function ($stackPos) { - $this->semValue = new Stmt\Catch_($this->semStack[$stackPos-(8-3)], $this->semStack[$stackPos-(8-4)], $this->semStack[$stackPos-(8-7)], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 174 => function ($stackPos) { - $this->semValue = null; + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 175 => function ($stackPos) { - $this->semValue = new Stmt\Finally_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Stmt\Catch_($this->semStack[$stackPos-(8-3)], $this->semStack[$stackPos-(8-4)], $this->semStack[$stackPos-(8-7)], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, 176 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = null; }, 177 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = new Stmt\Finally_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 178 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 179 => function ($stackPos) { - $this->semValue = false; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 180 => function ($stackPos) { - $this->semValue = true; + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 181 => function ($stackPos) { $this->semValue = false; @@ -1422,42 +1439,42 @@ protected function initReduceCallbacks() { $this->semValue = true; }, 183 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = false; }, 184 => function ($stackPos) { - $this->semValue = []; + $this->semValue = true; }, 185 => function ($stackPos) { - $this->semValue = new Stmt\Function_($this->semStack[$stackPos-(8-3)], ['byRef' => $this->semStack[$stackPos-(8-2)], 'params' => $this->semStack[$stackPos-(8-5)], 'returnType' => $this->semStack[$stackPos-(8-7)], 'stmts' => $this->semStack[$stackPos-(8-8)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 186 => function ($stackPos) { - $this->semValue = new Stmt\Class_($this->semStack[$stackPos-(7-2)], ['type' => $this->semStack[$stackPos-(7-1)], 'extends' => $this->semStack[$stackPos-(7-3)], 'implements' => $this->semStack[$stackPos-(7-4)], 'stmts' => $this->semStack[$stackPos-(7-6)]], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); - $this->checkClass($this->semValue, $stackPos-(7-2)); + $this->semValue = []; }, 187 => function ($stackPos) { - $this->semValue = new Stmt\Interface_($this->semStack[$stackPos-(6-2)], ['extends' => $this->semStack[$stackPos-(6-3)], 'stmts' => $this->semStack[$stackPos-(6-5)]], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); - $this->checkInterface($this->semValue, $stackPos-(6-2)); + $this->semValue = new Stmt\Function_($this->semStack[$stackPos-(8-3)], ['byRef' => $this->semStack[$stackPos-(8-2)], 'params' => $this->semStack[$stackPos-(8-5)], 'returnType' => $this->semStack[$stackPos-(8-7)], 'stmts' => $this->semStack[$stackPos-(8-8)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, 188 => function ($stackPos) { - $this->semValue = new Stmt\Trait_($this->semStack[$stackPos-(5-2)], ['stmts' => $this->semStack[$stackPos-(5-4)]], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); + $this->semValue = new Stmt\Class_($this->semStack[$stackPos-(7-2)], ['type' => $this->semStack[$stackPos-(7-1)], 'extends' => $this->semStack[$stackPos-(7-3)], 'implements' => $this->semStack[$stackPos-(7-4)], 'stmts' => $this->semStack[$stackPos-(7-6)]], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); + $this->checkClass($this->semValue, $stackPos-(7-2)); }, 189 => function ($stackPos) { - $this->semValue = 0; + $this->semValue = new Stmt\Interface_($this->semStack[$stackPos-(6-2)], ['extends' => $this->semStack[$stackPos-(6-3)], 'stmts' => $this->semStack[$stackPos-(6-5)]], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + $this->checkInterface($this->semValue, $stackPos-(6-2)); }, 190 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; + $this->semValue = new Stmt\Trait_($this->semStack[$stackPos-(5-2)], ['stmts' => $this->semStack[$stackPos-(5-4)]], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, 191 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_FINAL; + $this->semValue = 0; }, 192 => function ($stackPos) { - $this->semValue = null; + $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; }, 193 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; + $this->semValue = Stmt\Class_::MODIFIER_FINAL; }, 194 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = null; }, 195 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-2)]; @@ -1469,19 +1486,19 @@ protected function initReduceCallbacks() { $this->semValue = $this->semStack[$stackPos-(2-2)]; }, 198 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array(); }, 199 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(2-2)]; }, 200 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 201 => function ($stackPos) { - $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 202 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 203 => function ($stackPos) { $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); @@ -1493,981 +1510,987 @@ protected function initReduceCallbacks() { $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); }, 206 => function ($stackPos) { - $this->semValue = null; + $this->semValue = $this->semStack[$stackPos-(4-2)]; }, 207 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; + $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); }, 208 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = null; }, 209 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(4-2)]; }, 210 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 211 => function ($stackPos) { - $this->semValue = new Stmt\DeclareDeclare($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 212 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 213 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-3)]; + $this->semValue = new Stmt\DeclareDeclare($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 214 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 215 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(5-3)]; + $this->semValue = $this->semStack[$stackPos-(4-3)]; }, 216 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = $this->semStack[$stackPos-(4-2)]; }, 217 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = $this->semStack[$stackPos-(5-3)]; }, 218 => function ($stackPos) { - $this->semValue = new Stmt\Case_($this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = array(); }, 219 => function ($stackPos) { - $this->semValue = new Stmt\Case_(null, $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 220 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; + $this->semValue = new Stmt\Case_($this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 221 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; + $this->semValue = new Stmt\Case_(null, $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 222 => function ($stackPos) { - $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos]; }, 223 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; + $this->semValue = $this->semStack[$stackPos]; }, 224 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); }, 225 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = $this->semStack[$stackPos-(4-2)]; }, 226 => function ($stackPos) { - $this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(5-3)], is_array($this->semStack[$stackPos-(5-5)]) ? $this->semStack[$stackPos-(5-5)] : array($this->semStack[$stackPos-(5-5)]), $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); + $this->semValue = array(); }, 227 => function ($stackPos) { - $this->semValue = array(); + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 228 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(5-3)], is_array($this->semStack[$stackPos-(5-5)]) ? $this->semStack[$stackPos-(5-5)] : array($this->semStack[$stackPos-(5-5)]), $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, 229 => function ($stackPos) { - $this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + $this->semValue = array(); }, 230 => function ($stackPos) { - $this->semValue = null; + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 231 => function ($stackPos) { - $this->semValue = new Stmt\Else_(is_array($this->semStack[$stackPos-(2-2)]) ? $this->semStack[$stackPos-(2-2)] : array($this->semStack[$stackPos-(2-2)]), $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); }, 232 => function ($stackPos) { $this->semValue = null; }, 233 => function ($stackPos) { - $this->semValue = new Stmt\Else_($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Stmt\Else_(is_array($this->semStack[$stackPos-(2-2)]) ? $this->semStack[$stackPos-(2-2)] : array($this->semStack[$stackPos-(2-2)]), $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 234 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)], false); + $this->semValue = null; }, 235 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(2-2)], true); + $this->semValue = new Stmt\Else_($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 236 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)], false); }, 237 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)], false); + $this->semValue = array($this->semStack[$stackPos-(2-2)], true); }, 238 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)], false); }, 239 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = array($this->semStack[$stackPos-(1-1)], false); }, 240 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 241 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = array(); }, 242 => function ($stackPos) { - $this->semValue = new Node\Param($this->semStack[$stackPos-(4-4)], null, $this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); $this->checkParam($this->semValue); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 243 => function ($stackPos) { - $this->semValue = new Node\Param($this->semStack[$stackPos-(6-4)], $this->semStack[$stackPos-(6-6)], $this->semStack[$stackPos-(6-1)], $this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-3)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); $this->checkParam($this->semValue); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 244 => function ($stackPos) { - $this->semValue = new Node\Param(new Expr\Error($this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes), null, $this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Node\Param($this->semStack[$stackPos-(4-4)], null, $this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); $this->checkParam($this->semValue); }, 245 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Node\Param($this->semStack[$stackPos-(6-4)], $this->semStack[$stackPos-(6-6)], $this->semStack[$stackPos-(6-1)], $this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-3)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); $this->checkParam($this->semValue); }, 246 => function ($stackPos) { - $this->semValue = new Node\NullableType($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Node\Param(new Expr\Error($this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes), null, $this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 247 => function ($stackPos) { - $this->semValue = $this->handleBuiltinTypes($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 248 => function ($stackPos) { - $this->semValue = new Node\Identifier('array', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Node\NullableType($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 249 => function ($stackPos) { - $this->semValue = new Node\Identifier('callable', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->handleBuiltinTypes($this->semStack[$stackPos-(1-1)]); }, 250 => function ($stackPos) { - $this->semValue = null; + $this->semValue = new Node\Identifier('array', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 251 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Node\Identifier('callable', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 252 => function ($stackPos) { $this->semValue = null; }, 253 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 254 => function ($stackPos) { $this->semValue = null; }, 255 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = $this->semStack[$stackPos-(2-2)]; }, 256 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; + $this->semValue = null; }, 257 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = array(); }, 258 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = $this->semStack[$stackPos-(4-2)]; }, 259 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(1-1)], false, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 260 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], true, false, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 261 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], false, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Node\Arg($this->semStack[$stackPos-(1-1)], false, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 262 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], true, false, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 263 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], false, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 264 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 265 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 266 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 267 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 268 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 269 => function ($stackPos) { - $this->semValue = new Stmt\StaticVar($this->semStack[$stackPos-(1-1)], null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 270 => function ($stackPos) { - $this->semValue = new Stmt\StaticVar($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 271 => function ($stackPos) { - if ($this->semStack[$stackPos-(2-2)] !== null) { $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; } + $this->semValue = new Stmt\StaticVar($this->semStack[$stackPos-(1-1)], null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 272 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = new Stmt\StaticVar($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 273 => function ($stackPos) { + if ($this->semStack[$stackPos-(2-2)] !== null) { $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; } + }, + 274 => function ($stackPos) { + $this->semValue = array(); + }, + 275 => function ($stackPos) { $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop($this->createZeroLengthAttributes($startAttributes)); } else { $nop = null; }; if ($nop !== null) { $this->semStack[$stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 274 => function ($stackPos) { + 276 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes; $this->semValue = new Stmt\Property($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $attrs, $this->semStack[$stackPos-(4-2)]); $this->checkProperty($this->semValue, $stackPos-(4-1)); }, - 275 => function ($stackPos) { + 277 => function ($stackPos) { $this->semValue = new Stmt\ClassConst($this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-1)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); $this->checkClassConst($this->semValue, $stackPos-(4-1)); }, - 276 => function ($stackPos) { + 278 => function ($stackPos) { $this->semValue = new Stmt\ClassMethod($this->semStack[$stackPos-(9-4)], ['type' => $this->semStack[$stackPos-(9-1)], 'byRef' => $this->semStack[$stackPos-(9-3)], 'params' => $this->semStack[$stackPos-(9-6)], 'returnType' => $this->semStack[$stackPos-(9-8)], 'stmts' => $this->semStack[$stackPos-(9-9)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); $this->checkClassMethod($this->semValue, $stackPos-(9-1)); }, - 277 => function ($stackPos) { + 279 => function ($stackPos) { $this->semValue = new Stmt\TraitUse($this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 278 => function ($stackPos) { + 280 => function ($stackPos) { $this->semValue = null; /* will be skipped */ }, - 279 => function ($stackPos) { + 281 => function ($stackPos) { $this->semValue = array(); }, - 280 => function ($stackPos) { + 282 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(3-2)]; }, - 281 => function ($stackPos) { + 283 => function ($stackPos) { $this->semValue = array(); }, - 282 => function ($stackPos) { + 284 => function ($stackPos) { $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 283 => function ($stackPos) { + 285 => function ($stackPos) { $this->semValue = new Stmt\TraitUseAdaptation\Precedence($this->semStack[$stackPos-(4-1)][0], $this->semStack[$stackPos-(4-1)][1], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 284 => function ($stackPos) { + 286 => function ($stackPos) { $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$stackPos-(5-1)][0], $this->semStack[$stackPos-(5-1)][1], $this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-4)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 285 => function ($stackPos) { + 287 => function ($stackPos) { $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$stackPos-(4-1)][0], $this->semStack[$stackPos-(4-1)][1], $this->semStack[$stackPos-(4-3)], null, $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 286 => function ($stackPos) { + 288 => function ($stackPos) { $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$stackPos-(4-1)][0], $this->semStack[$stackPos-(4-1)][1], null, $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 287 => function ($stackPos) { + 289 => function ($stackPos) { $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$stackPos-(4-1)][0], $this->semStack[$stackPos-(4-1)][1], null, $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 288 => function ($stackPos) { + 290 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); }, - 289 => function ($stackPos) { + 291 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 290 => function ($stackPos) { + 292 => function ($stackPos) { $this->semValue = array(null, $this->semStack[$stackPos-(1-1)]); }, - 291 => function ($stackPos) { + 293 => function ($stackPos) { $this->semValue = null; }, - 292 => function ($stackPos) { + 294 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 293 => function ($stackPos) { + 295 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 294 => function ($stackPos) { + 296 => function ($stackPos) { $this->semValue = 0; }, - 295 => function ($stackPos) { + 297 => function ($stackPos) { $this->semValue = 0; }, - 296 => function ($stackPos) { + 298 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 297 => function ($stackPos) { + 299 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 298 => function ($stackPos) { + 300 => function ($stackPos) { $this->checkModifier($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $stackPos-(2-2)); $this->semValue = $this->semStack[$stackPos-(2-1)] | $this->semStack[$stackPos-(2-2)]; }, - 299 => function ($stackPos) { + 301 => function ($stackPos) { $this->semValue = Stmt\Class_::MODIFIER_PUBLIC; }, - 300 => function ($stackPos) { + 302 => function ($stackPos) { $this->semValue = Stmt\Class_::MODIFIER_PROTECTED; }, - 301 => function ($stackPos) { + 303 => function ($stackPos) { $this->semValue = Stmt\Class_::MODIFIER_PRIVATE; }, - 302 => function ($stackPos) { + 304 => function ($stackPos) { $this->semValue = Stmt\Class_::MODIFIER_STATIC; }, - 303 => function ($stackPos) { + 305 => function ($stackPos) { $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; }, - 304 => function ($stackPos) { + 306 => function ($stackPos) { $this->semValue = Stmt\Class_::MODIFIER_FINAL; }, - 305 => function ($stackPos) { + 307 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 306 => function ($stackPos) { + 308 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 307 => function ($stackPos) { + 309 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 308 => function ($stackPos) { + 310 => function ($stackPos) { $this->semValue = new Node\VarLikeIdentifier(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 309 => function ($stackPos) { + 311 => function ($stackPos) { $this->semValue = new Stmt\PropertyProperty($this->semStack[$stackPos-(1-1)], null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 310 => function ($stackPos) { + 312 => function ($stackPos) { $this->semValue = new Stmt\PropertyProperty($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 311 => function ($stackPos) { + 313 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 312 => function ($stackPos) { + 314 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 313 => function ($stackPos) { + 315 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 314 => function ($stackPos) { + 316 => function ($stackPos) { $this->semValue = array(); }, - 315 => function ($stackPos) { + 317 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 316 => function ($stackPos) { + 318 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 317 => function ($stackPos) { + 319 => function ($stackPos) { $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 318 => function ($stackPos) { + 320 => function ($stackPos) { $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 319 => function ($stackPos) { + 321 => function ($stackPos) { $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 320 => function ($stackPos) { + 322 => function ($stackPos) { $this->semValue = new Expr\AssignRef($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 321 => function ($stackPos) { + 323 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 322 => function ($stackPos) { + 324 => function ($stackPos) { $this->semValue = new Expr\Clone_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 323 => function ($stackPos) { + 325 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Plus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 324 => function ($stackPos) { + 326 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Minus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 325 => function ($stackPos) { + 327 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Mul($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 326 => function ($stackPos) { + 328 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Div($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 327 => function ($stackPos) { + 329 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Concat($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 328 => function ($stackPos) { + 330 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Mod($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 329 => function ($stackPos) { + 331 => function ($stackPos) { $this->semValue = new Expr\AssignOp\BitwiseAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 330 => function ($stackPos) { + 332 => function ($stackPos) { $this->semValue = new Expr\AssignOp\BitwiseOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 331 => function ($stackPos) { + 333 => function ($stackPos) { $this->semValue = new Expr\AssignOp\BitwiseXor($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 332 => function ($stackPos) { + 334 => function ($stackPos) { $this->semValue = new Expr\AssignOp\ShiftLeft($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 333 => function ($stackPos) { + 335 => function ($stackPos) { $this->semValue = new Expr\AssignOp\ShiftRight($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 334 => function ($stackPos) { + 336 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Pow($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 335 => function ($stackPos) { + 337 => function ($stackPos) { $this->semValue = new Expr\AssignOp\Coalesce($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 336 => function ($stackPos) { + 338 => function ($stackPos) { $this->semValue = new Expr\PostInc($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 337 => function ($stackPos) { + 339 => function ($stackPos) { $this->semValue = new Expr\PreInc($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 338 => function ($stackPos) { + 340 => function ($stackPos) { $this->semValue = new Expr\PostDec($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 339 => function ($stackPos) { + 341 => function ($stackPos) { $this->semValue = new Expr\PreDec($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 340 => function ($stackPos) { + 342 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\BooleanOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 341 => function ($stackPos) { + 343 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\BooleanAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 342 => function ($stackPos) { + 344 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\LogicalOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 343 => function ($stackPos) { + 345 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\LogicalAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 344 => function ($stackPos) { + 346 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\LogicalXor($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 345 => function ($stackPos) { + 347 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\BitwiseOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 346 => function ($stackPos) { + 348 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\BitwiseAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 347 => function ($stackPos) { + 349 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\BitwiseXor($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 348 => function ($stackPos) { + 350 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Concat($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 349 => function ($stackPos) { + 351 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Plus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 350 => function ($stackPos) { + 352 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Minus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 351 => function ($stackPos) { + 353 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Mul($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 352 => function ($stackPos) { + 354 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Div($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 353 => function ($stackPos) { + 355 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Mod($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 354 => function ($stackPos) { + 356 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\ShiftLeft($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 355 => function ($stackPos) { + 357 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\ShiftRight($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 356 => function ($stackPos) { + 358 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Pow($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 357 => function ($stackPos) { + 359 => function ($stackPos) { $this->semValue = new Expr\UnaryPlus($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 358 => function ($stackPos) { + 360 => function ($stackPos) { $this->semValue = new Expr\UnaryMinus($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 359 => function ($stackPos) { + 361 => function ($stackPos) { $this->semValue = new Expr\BooleanNot($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 360 => function ($stackPos) { + 362 => function ($stackPos) { $this->semValue = new Expr\BitwiseNot($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 361 => function ($stackPos) { + 363 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Identical($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 362 => function ($stackPos) { + 364 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\NotIdentical($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 363 => function ($stackPos) { + 365 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Equal($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 364 => function ($stackPos) { + 366 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\NotEqual($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 365 => function ($stackPos) { + 367 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Spaceship($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 366 => function ($stackPos) { + 368 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Smaller($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 367 => function ($stackPos) { + 369 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\SmallerOrEqual($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 368 => function ($stackPos) { + 370 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Greater($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 369 => function ($stackPos) { + 371 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\GreaterOrEqual($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 370 => function ($stackPos) { + 372 => function ($stackPos) { $this->semValue = new Expr\Instanceof_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 371 => function ($stackPos) { + 373 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(3-2)]; }, - 372 => function ($stackPos) { + 374 => function ($stackPos) { $this->semValue = new Expr\Ternary($this->semStack[$stackPos-(5-1)], $this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 373 => function ($stackPos) { + 375 => function ($stackPos) { $this->semValue = new Expr\Ternary($this->semStack[$stackPos-(4-1)], null, $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 374 => function ($stackPos) { + 376 => function ($stackPos) { $this->semValue = new Expr\BinaryOp\Coalesce($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 375 => function ($stackPos) { + 377 => function ($stackPos) { $this->semValue = new Expr\Isset_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 376 => function ($stackPos) { + 378 => function ($stackPos) { $this->semValue = new Expr\Empty_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 377 => function ($stackPos) { + 379 => function ($stackPos) { $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 378 => function ($stackPos) { + 380 => function ($stackPos) { $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE_ONCE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 379 => function ($stackPos) { + 381 => function ($stackPos) { $this->semValue = new Expr\Eval_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 380 => function ($stackPos) { + 382 => function ($stackPos) { $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 381 => function ($stackPos) { + 383 => function ($stackPos) { $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE_ONCE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 382 => function ($stackPos) { + 384 => function ($stackPos) { $this->semValue = new Expr\Cast\Int_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 383 => function ($stackPos) { + 385 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes; $attrs['kind'] = $this->getFloatCastKind($this->semStack[$stackPos-(2-1)]); $this->semValue = new Expr\Cast\Double($this->semStack[$stackPos-(2-2)], $attrs); }, - 384 => function ($stackPos) { + 386 => function ($stackPos) { $this->semValue = new Expr\Cast\String_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 385 => function ($stackPos) { + 387 => function ($stackPos) { $this->semValue = new Expr\Cast\Array_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 386 => function ($stackPos) { + 388 => function ($stackPos) { $this->semValue = new Expr\Cast\Object_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 387 => function ($stackPos) { + 389 => function ($stackPos) { $this->semValue = new Expr\Cast\Bool_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 388 => function ($stackPos) { + 390 => function ($stackPos) { $this->semValue = new Expr\Cast\Unset_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 389 => function ($stackPos) { + 391 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes; $attrs['kind'] = strtolower($this->semStack[$stackPos-(2-1)]) === 'exit' ? Expr\Exit_::KIND_EXIT : Expr\Exit_::KIND_DIE; $this->semValue = new Expr\Exit_($this->semStack[$stackPos-(2-2)], $attrs); }, - 390 => function ($stackPos) { + 392 => function ($stackPos) { $this->semValue = new Expr\ErrorSuppress($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 391 => function ($stackPos) { + 393 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 392 => function ($stackPos) { + 394 => function ($stackPos) { $this->semValue = new Expr\ShellExec($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 393 => function ($stackPos) { + 395 => function ($stackPos) { $this->semValue = new Expr\Print_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 394 => function ($stackPos) { + 396 => function ($stackPos) { $this->semValue = new Expr\Yield_(null, null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 395 => function ($stackPos) { + 397 => function ($stackPos) { $this->semValue = new Expr\Yield_($this->semStack[$stackPos-(2-2)], null, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 396 => function ($stackPos) { + 398 => function ($stackPos) { $this->semValue = new Expr\Yield_($this->semStack[$stackPos-(4-4)], $this->semStack[$stackPos-(4-2)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 397 => function ($stackPos) { + 399 => function ($stackPos) { $this->semValue = new Expr\YieldFrom($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 398 => function ($stackPos) { + 400 => function ($stackPos) { $this->semValue = new Expr\ArrowFunction(['static' => false, 'byRef' => $this->semStack[$stackPos-(8-2)], 'params' => $this->semStack[$stackPos-(8-4)], 'returnType' => $this->semStack[$stackPos-(8-6)], 'expr' => $this->semStack[$stackPos-(8-8)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, - 399 => function ($stackPos) { + 401 => function ($stackPos) { $this->semValue = new Expr\ArrowFunction(['static' => true, 'byRef' => $this->semStack[$stackPos-(9-3)], 'params' => $this->semStack[$stackPos-(9-5)], 'returnType' => $this->semStack[$stackPos-(9-7)], 'expr' => $this->semStack[$stackPos-(9-9)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 400 => function ($stackPos) { + 402 => function ($stackPos) { $this->semValue = new Expr\Closure(['static' => false, 'byRef' => $this->semStack[$stackPos-(8-2)], 'params' => $this->semStack[$stackPos-(8-4)], 'uses' => $this->semStack[$stackPos-(8-6)], 'returnType' => $this->semStack[$stackPos-(8-7)], 'stmts' => $this->semStack[$stackPos-(8-8)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, - 401 => function ($stackPos) { + 403 => function ($stackPos) { $this->semValue = new Expr\Closure(['static' => true, 'byRef' => $this->semStack[$stackPos-(9-3)], 'params' => $this->semStack[$stackPos-(9-5)], 'uses' => $this->semStack[$stackPos-(9-7)], 'returnType' => $this->semStack[$stackPos-(9-8)], 'stmts' => $this->semStack[$stackPos-(9-9)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 402 => function ($stackPos) { + 404 => function ($stackPos) { $this->semValue = array(new Stmt\Class_(null, ['type' => 0, 'extends' => $this->semStack[$stackPos-(7-3)], 'implements' => $this->semStack[$stackPos-(7-4)], 'stmts' => $this->semStack[$stackPos-(7-6)]], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes), $this->semStack[$stackPos-(7-2)]); $this->checkClass($this->semValue[0], -1); }, - 403 => function ($stackPos) { + 405 => function ($stackPos) { $this->semValue = new Expr\New_($this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 404 => function ($stackPos) { + 406 => function ($stackPos) { list($class, $ctorArgs) = $this->semStack[$stackPos-(2-2)]; $this->semValue = new Expr\New_($class, $ctorArgs, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 405 => function ($stackPos) { + 407 => function ($stackPos) { $this->semValue = array(); }, - 406 => function ($stackPos) { + 408 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(4-3)]; }, - 407 => function ($stackPos) { + 409 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 408 => function ($stackPos) { + 410 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 409 => function ($stackPos) { + 411 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 410 => function ($stackPos) { + 412 => function ($stackPos) { $this->semValue = new Expr\ClosureUse($this->semStack[$stackPos-(2-2)], $this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 411 => function ($stackPos) { + 413 => function ($stackPos) { $this->semValue = new Expr\FuncCall($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 412 => function ($stackPos) { + 414 => function ($stackPos) { $this->semValue = new Expr\FuncCall($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 413 => function ($stackPos) { + 415 => function ($stackPos) { $this->semValue = new Expr\StaticCall($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 414 => function ($stackPos) { + 416 => function ($stackPos) { $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 415 => function ($stackPos) { + 417 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 416 => function ($stackPos) { + 418 => function ($stackPos) { $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 417 => function ($stackPos) { + 419 => function ($stackPos) { $this->semValue = new Name\FullyQualified($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 418 => function ($stackPos) { + 420 => function ($stackPos) { $this->semValue = new Name\Relative($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 419 => function ($stackPos) { + 421 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 420 => function ($stackPos) { + 422 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 421 => function ($stackPos) { + 423 => function ($stackPos) { $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; }, - 422 => function ($stackPos) { + 424 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 423 => function ($stackPos) { + 425 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 424 => function ($stackPos) { + 426 => function ($stackPos) { $this->semValue = null; }, - 425 => function ($stackPos) { + 427 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(3-2)]; }, - 426 => function ($stackPos) { + 428 => function ($stackPos) { $this->semValue = array(); }, - 427 => function ($stackPos) { + 429 => function ($stackPos) { $this->semValue = array(new Scalar\EncapsedStringPart(Scalar\String_::parseEscapeSequences($this->semStack[$stackPos-(1-1)], '`'), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes)); }, - 428 => function ($stackPos) { + 430 => function ($stackPos) { foreach ($this->semStack[$stackPos-(1-1)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '`', true); } }; $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 429 => function ($stackPos) { + 431 => function ($stackPos) { $this->semValue = array(); }, - 430 => function ($stackPos) { + 432 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 431 => function ($stackPos) { + 433 => function ($stackPos) { $this->semValue = new Expr\ConstFetch($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 432 => function ($stackPos) { + 434 => function ($stackPos) { $this->semValue = new Expr\ClassConstFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 433 => function ($stackPos) { + 435 => function ($stackPos) { $this->semValue = new Expr\ClassConstFetch($this->semStack[$stackPos-(3-1)], new Expr\Error($this->startAttributeStack[$stackPos-(3-3)] + $this->endAttributeStack[$stackPos-(3-3)]), $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); $this->errorState = 2; }, - 434 => function ($stackPos) { + 436 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = Expr\Array_::KIND_SHORT; $this->semValue = new Expr\Array_($this->semStack[$stackPos-(3-2)], $attrs); }, - 435 => function ($stackPos) { + 437 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes; $attrs['kind'] = Expr\Array_::KIND_LONG; $this->semValue = new Expr\Array_($this->semStack[$stackPos-(4-3)], $attrs); }, - 436 => function ($stackPos) { + 438 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 437 => function ($stackPos) { + 439 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes; $attrs['kind'] = ($this->semStack[$stackPos-(1-1)][0] === "'" || ($this->semStack[$stackPos-(1-1)][1] === "'" && ($this->semStack[$stackPos-(1-1)][0] === 'b' || $this->semStack[$stackPos-(1-1)][0] === 'B')) ? Scalar\String_::KIND_SINGLE_QUOTED : Scalar\String_::KIND_DOUBLE_QUOTED); $this->semValue = new Scalar\String_(Scalar\String_::parse($this->semStack[$stackPos-(1-1)]), $attrs); }, - 438 => function ($stackPos) { + 440 => function ($stackPos) { $this->semValue = $this->parseLNumber($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 439 => function ($stackPos) { + 441 => function ($stackPos) { $this->semValue = new Scalar\DNumber(Scalar\DNumber::parse($this->semStack[$stackPos-(1-1)]), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 440 => function ($stackPos) { + 442 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Line($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 441 => function ($stackPos) { + 443 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\File($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 442 => function ($stackPos) { + 444 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Dir($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 443 => function ($stackPos) { + 445 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Class_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 444 => function ($stackPos) { + 446 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Trait_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 445 => function ($stackPos) { + 447 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Method($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 446 => function ($stackPos) { + 448 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Function_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 447 => function ($stackPos) { + 449 => function ($stackPos) { $this->semValue = new Scalar\MagicConst\Namespace_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 448 => function ($stackPos) { + 450 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 449 => function ($stackPos) { + 451 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 450 => function ($stackPos) { + 452 => function ($stackPos) { $this->semValue = $this->parseDocString($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes, $this->startAttributeStack[$stackPos-(3-3)] + $this->endAttributeStack[$stackPos-(3-3)], true); }, - 451 => function ($stackPos) { + 453 => function ($stackPos) { $this->semValue = $this->parseDocString($this->semStack[$stackPos-(2-1)], '', $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes, $this->startAttributeStack[$stackPos-(2-2)] + $this->endAttributeStack[$stackPos-(2-2)], true); }, - 452 => function ($stackPos) { + 454 => function ($stackPos) { $attrs = $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = Scalar\String_::KIND_DOUBLE_QUOTED; foreach ($this->semStack[$stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '"', true); } }; $this->semValue = new Scalar\Encapsed($this->semStack[$stackPos-(3-2)], $attrs); }, - 453 => function ($stackPos) { - $this->semValue = $this->parseDocString($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes, $this->startAttributeStack[$stackPos-(3-3)] + $this->endAttributeStack[$stackPos-(3-3)], true); - }, - 454 => function ($stackPos) { - $this->semValue = null; - }, 455 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = $this->parseDocString($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes, $this->startAttributeStack[$stackPos-(3-3)] + $this->endAttributeStack[$stackPos-(3-3)], true); }, 456 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = null; }, 457 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 458 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 459 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 460 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 461 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 462 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 463 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 464 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 465 => function ($stackPos) { $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 466 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 467 => function ($stackPos) { - $this->semValue = new Expr\MethodCall($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 468 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 469 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Expr\MethodCall($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 470 => function ($stackPos) { - $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 471 => function ($stackPos) { - $this->semValue = substr($this->semStack[$stackPos-(1-1)], 1); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 472 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-3)]; + $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 473 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = substr($this->semStack[$stackPos-(1-1)], 1); }, 474 => function ($stackPos) { - $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); $this->errorState = 2; + $this->semValue = $this->semStack[$stackPos-(4-3)]; }, 475 => function ($stackPos) { - $var = $this->semStack[$stackPos-(1-1)]; $this->semValue = \is_string($var) ? new Node\VarLikeIdentifier($var, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes) : $var; + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 476 => function ($stackPos) { - $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); $this->errorState = 2; }, 477 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $var = $this->semStack[$stackPos-(1-1)]; $this->semValue = \is_string($var) ? new Node\VarLikeIdentifier($var, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes) : $var; }, 478 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 479 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 480 => function ($stackPos) { - $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 481 => function ($stackPos) { - $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 482 => function ($stackPos) { - $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 483 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 484 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 485 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 486 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 487 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 488 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 489 => function ($stackPos) { - $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 490 => function ($stackPos) { - $this->semValue = new Expr\List_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 491 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; }, 492 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = new Expr\List_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 493 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 494 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 495 => function ($stackPos) { $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 496 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(3-3)], $this->semStack[$stackPos-(3-1)], false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 497 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(4-4)], $this->semStack[$stackPos-(4-1)], true, $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 498 => function ($stackPos) { $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(3-3)], $this->semStack[$stackPos-(3-1)], false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 499 => function ($stackPos) { - $this->semValue = null; + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(4-4)], $this->semStack[$stackPos-(4-1)], true, $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 500 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; $end = count($this->semValue)-1; if ($this->semValue[$end] === null) array_pop($this->semValue); + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(3-3)], $this->semStack[$stackPos-(3-1)], false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 501 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; + $this->semValue = null; }, 502 => function ($stackPos) { - /* do nothing -- prevent default action of $$=$this->semStack[$1]. See $551. */ + $this->semValue = $this->semStack[$stackPos-(1-1)]; $end = count($this->semValue)-1; if ($this->semValue[$end] === null) array_pop($this->semValue); }, 503 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = $this->semStack[$stackPos]; }, 504 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + /* do nothing -- prevent default action of $$=$this->semStack[$1]. See $551. */ }, 505 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(3-3)], $this->semStack[$stackPos-(3-1)], false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 506 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 507 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(4-4)], $this->semStack[$stackPos-(4-1)], true, $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(3-3)], $this->semStack[$stackPos-(3-1)], false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 508 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 509 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, false, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(4-4)], $this->semStack[$stackPos-(4-1)], true, $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 510 => function ($stackPos) { - $this->semValue = null; + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 511 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, false, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 512 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = null; }, 513 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 514 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)]); + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 515 => function ($stackPos) { - $this->semValue = new Scalar\EncapsedStringPart($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 516 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)]); }, 517 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Scalar\EncapsedStringPart($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 518 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 519 => function ($stackPos) { - $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 520 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 521 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 522 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-4)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 523 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 524 => function ($stackPos) { - $this->semValue = new Scalar\String_($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-4)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); }, 525 => function ($stackPos) { - $this->semValue = $this->parseNumString($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 526 => function ($stackPos) { - $this->semValue = $this->parseNumString('-' . $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Scalar\String_($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 527 => function ($stackPos) { + $this->semValue = $this->parseNumString($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 528 => function ($stackPos) { + $this->semValue = $this->parseNumString('-' . $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 529 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, ]; diff --git a/test/code/parser/errorHandling/recovery.test b/test/code/parser/errorHandling/recovery.test index a9fd49d0d6..398fe865c7 100644 --- a/test/code/parser/errorHandling/recovery.test +++ b/test/code/parser/errorHandling/recovery.test @@ -1414,4 +1414,59 @@ array( $a = ["a "thing"]; ----- !!php7 -Syntax error, unexpected T_STRING, expecting ',' or ')' or ']' from 2:11 to 2:15 \ No newline at end of file +Syntax error, unexpected T_STRING, expecting ',' or ')' or ']' from 2:11 to 2:15 +----- +