From f68e1a43ff3994e674458574f0d3f577a9a6f2b1 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 25 Apr 2021 21:11:36 +0200 Subject: [PATCH] [PHP 8.1] Add support for enums (#758) RFC: https://wiki.php.net/rfc/enumerations Co-authored-by: Nikita Popov --- .editorconfig | 9 + grammar/php7.y | 16 +- grammar/tokens.y | 1 + lib/PhpParser/Node/Stmt/Class_.php | 2 +- lib/PhpParser/Node/Stmt/EnumCase.php | 37 + lib/PhpParser/Node/Stmt/Enum_.php | 40 + lib/PhpParser/Parser/Php5.php | 12 +- lib/PhpParser/Parser/Php7.php | 2731 +++++++++-------- lib/PhpParser/Parser/Tokens.php | 56 +- lib/PhpParser/ParserAbstract.php | 47 +- lib/PhpParser/PrettyPrinter/Standard.php | 14 + lib/PhpParser/PrettyPrinterAbstract.php | 11 +- test/code/formatPreservation/enum.test | 100 + test/code/parser/stmt/class/enum.test | 65 + .../parser/stmt/class/enum_with_string.test | 67 + test/code/prettyPrinter/stmt/enum.test | 39 + 16 files changed, 1835 insertions(+), 1412 deletions(-) create mode 100644 .editorconfig create mode 100644 lib/PhpParser/Node/Stmt/EnumCase.php create mode 100644 lib/PhpParser/Node/Stmt/Enum_.php create mode 100644 test/code/formatPreservation/enum.test create mode 100644 test/code/parser/stmt/class/enum.test create mode 100644 test/code/parser/stmt/class/enum_with_string.test create mode 100644 test/code/prettyPrinter/stmt/enum.test diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9c76d07 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*.y] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 diff --git a/grammar/php7.y b/grammar/php7.y index 4ca244d..e85c1c7 100644 --- a/grammar/php7.y +++ b/grammar/php7.y @@ -28,7 +28,7 @@ reserved_non_modifiers: | T_FUNCTION | T_CONST | T_RETURN | T_PRINT | T_YIELD | T_LIST | T_SWITCH | T_ENDSWITCH | T_CASE | T_DEFAULT | T_BREAK | T_ARRAY | T_CALLABLE | T_EXTENDS | T_IMPLEMENTS | T_NAMESPACE | T_TRAIT | T_INTERFACE | T_CLASS | T_CLASS_C | T_TRAIT_C | T_FUNC_C | T_METHOD_C | T_LINE | T_FILE | T_DIR | T_NS_C | T_HALT_COMPILER | T_FN - | T_MATCH + | T_MATCH | T_ENUM ; semi_reserved: @@ -356,6 +356,18 @@ class_declaration_statement: $this->checkInterface($$, #3); } | optional_attributes T_TRAIT identifier '{' class_statement_list '}' { $$ = Stmt\Trait_[$3, ['stmts' => $5, 'attrGroups' => $1]]; } + | optional_attributes T_ENUM identifier enum_scalar_type implements_list '{' class_statement_list '}' + { $$ = Stmt\Enum_[$3, ['scalarType' => $4, 'implements' => $5, 'stmts' => $7, 'attrGroups' => $1]]; + $this->checkEnum($$, #3); } +; + +enum_scalar_type: + /* empty */ { $$ = null; } + | ':' type { $$ = $2; } + +enum_case_expr: + /* empty */ { $$ = null; } + | '=' expr { $$ = $2; } ; class_entry_type: @@ -637,6 +649,8 @@ class_statement: { $$ = Stmt\ClassMethod[$5, ['type' => $2, 'byRef' => $4, 'params' => $7, 'returnType' => $9, 'stmts' => $10, 'attrGroups' => $1]]; $this->checkClassMethod($$, #2); } | T_USE class_name_list trait_adaptations { $$ = Stmt\TraitUse[$2, $3]; } + | optional_attributes T_CASE identifier enum_case_expr semi + { $$ = Stmt\EnumCase[$3, $4, $1]; } | error { $$ = null; /* will be skipped */ } ; diff --git a/grammar/tokens.y b/grammar/tokens.y index d2c2b72..1ce52f9 100644 --- a/grammar/tokens.y +++ b/grammar/tokens.y @@ -83,6 +83,7 @@ %token T_CLASS %token T_TRAIT %token T_INTERFACE +%token T_ENUM %token T_EXTENDS %token T_IMPLEMENTS %token T_OBJECT_OPERATOR diff --git a/lib/PhpParser/Node/Stmt/Class_.php b/lib/PhpParser/Node/Stmt/Class_.php index ace266f..0f35fe0 100644 --- a/lib/PhpParser/Node/Stmt/Class_.php +++ b/lib/PhpParser/Node/Stmt/Class_.php @@ -32,7 +32,7 @@ class Class_ extends ClassLike * 'extends' => null : Name of extended class * 'implements' => array(): Names of implemented interfaces * 'stmts' => array(): Statements - * '$attrGroups' => array(): PHP attribute groups + * 'attrGroups' => array(): PHP attribute groups * @param array $attributes Additional attributes */ public function __construct($name, array $subNodes = [], array $attributes = []) { diff --git a/lib/PhpParser/Node/Stmt/EnumCase.php b/lib/PhpParser/Node/Stmt/EnumCase.php new file mode 100644 index 0000000..5beff8b --- /dev/null +++ b/lib/PhpParser/Node/Stmt/EnumCase.php @@ -0,0 +1,37 @@ +name = \is_string($name) ? new Node\Identifier($name) : $name; + $this->expr = $expr; + $this->attrGroups = $attrGroups; + } + + public function getSubNodeNames() : array { + return ['attrGroups', 'name', 'expr']; + } + + public function getType() : string { + return 'Stmt_EnumCase'; + } +} diff --git a/lib/PhpParser/Node/Stmt/Enum_.php b/lib/PhpParser/Node/Stmt/Enum_.php new file mode 100644 index 0000000..3a50c22 --- /dev/null +++ b/lib/PhpParser/Node/Stmt/Enum_.php @@ -0,0 +1,40 @@ + null : Scalar type + * 'implements' => array() : Names of implemented interfaces + * 'stmts' => array() : Statements + * 'attrGroups' => array() : PHP attribute groups + * @param array $attributes Additional attributes + */ + public function __construct($name, array $subNodes = [], array $attributes = []) { + $this->name = \is_string($name) ? new Node\Identifier($name) : $name; + $this->scalarType = $subNodes['scalarType'] ?? null; + $this->implements = $subNodes['implements'] ?? []; + $this->stmts = $subNodes['stmts'] ?? []; + $this->attrGroups = $subNodes['attrGroups'] ?? []; + + parent::__construct($attributes); + } + + public function getSubNodeNames() : array { + return ['attrGroups', 'name', 'scalarType', 'implements', 'stmts']; + } + + public function getType() : string { + return 'Stmt_Enum'; + } +} diff --git a/lib/PhpParser/Parser/Php5.php b/lib/PhpParser/Parser/Php5.php index 331adb6..39cdbcc 100644 --- a/lib/PhpParser/Parser/Php5.php +++ b/lib/PhpParser/Parser/Php5.php @@ -193,9 +193,9 @@ class Php5 extends \PhpParser\ParserAbstract "'`'", "']'", "'\"'", + "T_ENUM", "T_NULLSAFE_OBJECT_OPERATOR", - "T_ATTRIBUTE", - "T_ENUM" + "T_ATTRIBUTE" ); protected $tokenToSymbol = array( @@ -235,10 +235,10 @@ class Php5 extends \PhpParser\ParserAbstract 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, - 124, 125, 126, 127, 128, 129, 130, 131, 163, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, - 153, 164, 165 + 124, 125, 126, 127, 128, 163, 129, 130, 131, 164, + 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, + 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, + 152, 153, 165 ); protected $action = array( diff --git a/lib/PhpParser/Parser/Php7.php b/lib/PhpParser/Parser/Php7.php index 3d09a65..e7bb199 100644 --- a/lib/PhpParser/Parser/Php7.php +++ b/lib/PhpParser/Parser/Php7.php @@ -18,16 +18,16 @@ use PhpParser\Node\Stmt; class Php7 extends \PhpParser\ParserAbstract { protected $tokenToSymbolMapSize = 393; - protected $actionTableSize = 1162; - protected $gotoTableSize = 588; + protected $actionTableSize = 1178; + protected $gotoTableSize = 582; protected $invalidSymbol = 166; protected $errorSymbol = 1; protected $defaultAction = -32766; protected $unexpectedTokenRule = 32767; - protected $YY2TBLSTATE = 397; - protected $numNonLeafStates = 688; + protected $YY2TBLSTATE = 401; + protected $numNonLeafStates = 700; protected $symbolToName = array( "EOF", @@ -159,6 +159,7 @@ class Php7 extends \PhpParser\ParserAbstract "T_CLASS", "T_TRAIT", "T_INTERFACE", + "T_ENUM", "T_EXTENDS", "T_IMPLEMENTS", "T_OBJECT_OPERATOR", @@ -194,24 +195,23 @@ class Php7 extends \PhpParser\ParserAbstract "')'", "'`'", "'\"'", - "'$'", - "T_ENUM" + "'$'" ); protected $tokenToSymbol = array( 0, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 55, 163, 166, 164, 54, 37, 166, - 160, 161, 52, 49, 8, 50, 51, 53, 166, 166, - 166, 166, 166, 166, 166, 166, 166, 166, 31, 156, + 166, 166, 166, 55, 164, 166, 165, 54, 37, 166, + 161, 162, 52, 49, 8, 50, 51, 53, 166, 166, + 166, 166, 166, 166, 166, 166, 166, 166, 31, 157, 43, 16, 45, 30, 67, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, - 166, 69, 166, 157, 36, 166, 162, 166, 166, 166, + 166, 69, 166, 158, 36, 166, 163, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, - 166, 166, 166, 158, 35, 159, 57, 166, 166, 166, + 166, 166, 166, 159, 35, 160, 57, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, @@ -238,499 +238,504 @@ class Php7 extends \PhpParser\ParserAbstract 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, - 154, 155, 165 + 154, 155, 156 ); protected $action = array( - 130, 131, 132, 552, 133, 134, 0, 698, 699, 700, - 135, 36, 883, 528, 529,-32766, 1212,-32766,-32766,-32766, - -551, 1145, 772, 889, 430, 431, 1232, -551,-32766,-32766, - -32766, -293,-32766, 1231,-32766, 245,-32766, -189,-32766,-32766, - -32766,-32766,-32766, 458,-32766,-32766,-32766,-32766,-32766,-32766, - -32766,-32766, 124, 783, 701, 777,-32766, 388, 1024, 1025, - 1026, 1023, 1022, 1021,-32766, 428, 429, 955, 261, 136, - 372, 705, 706, 707, 708, 391, -188, 397, 1024, 1025, - 1026, 1023, 1022, 1021, 709, 710, 711, 712, 713, 714, - 715, 716, 717, 718, 719, 739, 553, 740, 741, 742, - 743, 731, 732, 373, 374, 734, 735, 720, 721, 722, - 724, 725, 726, 333, 765, 766, 767, 768, 769, 727, - 728, 554, 555, 760, 751, 749, 750, 746, 747, 778, - 2, 556, 557, 745, 558, 559, 560, 561, 562, 563, - -542, -548, 19, -502, -542, 748, 564, 565, -548, 137, - -32766,-32766,-32766, 130, 131, 132, 552, 133, 134, 976, - 698, 699, 700, 135, 36,-32766,-32766,-32766,-32766, 675, - -32766,-32766,-32766, 80, 1145, 544, -551,-32766,-32766, 309, - -551,-32766,-32766,-32766, -293,-32766,-32766,-32766, 245,-32766, - -189,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766, - 31, 433, 429,-32766,-32766, -502, -502, 701, 782,-32766, - 388, 391,-32766,-32766,-32766, 235, 126,-32766, -82, 142, - -502, 261, 136, 372, 705, 706, 707, 708, 247, -188, - 397, 292, -502,-32766, -508,-32766,-32766, 709, 710, 711, - 712, 713, 714, 715, 716, 717, 718, 719, 739, 553, - 740, 741, 742, 743, 731, 732, 373, 374, 734, 735, - 720, 721, 722, 724, 725, 726, 333, 765, 766, 767, - 768, 769, 727, 728, 554, 555, 760, 751, 749, 750, - 746, 747, 294, -82, 556, 557, 745, 558, 559, 560, - 561, 562, 563, 310, 81, 82, 83, -548, 748, 564, - 565, -548, 137, 723, 693, 694, 695, 696, 697,-32766, - 698, 699, 700, 736, 737, 33, 307, 84, 85, 86, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, - 322, 263,-32766,-32766,-32766, 104, 105, 106, 346, 263, - 952, 951, 950, 107, 350, 438, 439, 701,-32766,-32766, - -32766, 107, -253,-32766, 355,-32766,-32766,-32766,-32766,-32766, - -32766, 702, 703, 704, 705, 706, 707, 708, 452,-32766, - 770,-32766,-32766,-32766,-32766,-32766, 357, 709, 710, 711, - 712, 713, 714, 715, 716, 717, 718, 719, 739, 762, - 740, 741, 742, 743, 731, 732, 733, 761, 734, 735, - 720, 721, 722, 724, 725, 726, 764, 765, 766, 767, - 768, 769, 727, 728, 729, 730, 760, 751, 749, 750, - 746, 747, 619, 24, 738, 744, 745, 752, 753, 755, - 754, 756, 757, 524,-32766,-32766,-32766, 574, 748, 759, - 758, 48, 49, 50, 483, 51, 52, 147, 397, 580, - 408, 53, 54, 409, 55,-32766, 975,-32766,-32766,-32766, - -32766,-32766,-32766,-32767,-32767,-32767,-32767,-32767, 865,-32767, - -32767,-32767,-32767, 99, 100, 101, 102, 103, 1257, 410, - 1172, 1258, 411, 1145, 865, 271, 634, 635, 56, 57, - 148, 808, 1184, 809, 58, 453, 59, 240, 241, 60, - 61, 62, 63, 64, 65, 66, 67, 787, 26, 262, - 68, 412, 484, 121, 667,-32766, 1178, 1179, 485, 1143, - 781, 1147, 1146, 1148, 1176, 40, 23, 486, 1002, 487, - 150, 488, 234, 489, 962, 963, 490, 491, 780, 423, - 424, 42, 43, 413, 417, 415, 865, 44, 492, 151, - 855, 920, 248, 345, 321, 1152, 1147, 1146, 1148, 122, - 781, 493, 494, 495, 152, -330, 855, -330, 127, -505, - 960, 154, 496, 497, 35, 1166, 1167, 1168, 1169, 1163, - 1164, 280, 146, 377, 26, -14, 128, 1170, 1165, 962, - 963, 1147, 1146, 1148, 281, 141, 781, -501, 155, 69, - 1176, 305, 306, 309, 34, 108, 109, 110, 111, 112, - 113, 114, 115, 116, 117, 118, 119, 120, 156, -149, - -149, -149, 478, 867, 18, 662, 1152, 1152, 855, 440, - 441, -505, -505, 157, -149, 781, -149, 138, -149, 867, - -149, 662, 808, 309, 809, 242, 1060, 1062, 496, 497, - 414, 1166, 1167, 1168, 1169, 1163, 1164, -500, -505, -501, - -501, -107, -107, 1170, 1165, -503, 1228, 865, 611, 612, - 841, -107, -107, -107, -501, 71, 921, -84, 306, 309, - -107,-32766, -76, 1001, -49, 686, -501, 1145, -507, -73, - -71, 774, -70, -69,-32766,-32766,-32766, 668,-32766, -68, - -32766, 867,-32766, 662, -149,-32766, 781, 781, -67, 281, - -32766,-32766,-32766, -66, 73, -65,-32766,-32766, 309, -500, - -500, 129,-32766, 388, -64, -45,-32766, -503, -503, -16, - -32766, 145, 1145, 264, -500, 676, 865, 679, 864,-32766, - -32766,-32766, -503,-32766, 772,-32766, -500,-32766, 144, 855, - -32766, 272, -107, 273, -503,-32766,-32766,-32766, 879, 72, - 244,-32766,-32766,-32766, 275, 776, 669,-32766, 388, 1145, - 664, 865, -500, 274, 276,-32766,-32766,-32766,-32766, 315, - -32766, 281,-32766, 263,-32766, 73, 73,-32766, 107, 309, - 309, 143,-32766,-32766,-32766, 642,-32766, 246,-32766,-32766, - 532, 671, 1145, 772,-32766, 388, -4, 865, 1259,-32766, - -32766,-32766,-32766,-32766, 781,-32766,-32766,-32766, 855, 1030, - -32766, 865, 867, 139, 662,-32766,-32766,-32766, 655, 309, - 865,-32766,-32766,-32766, -500, -500, 526,-32766, 388, 1145, - 101, 102, 103, 620, 637,-32766,-32766,-32766,-32766, -500, - -32766, 960,-32766, 855,-32766, 20, 865,-32766,-32766, 625, - 677, -500,-32766,-32766,-32766, 435,-32766, 463,-32766,-32766, - 962, 963, 1145, 626,-32766, 388, 638, 962, 963,-32766, - -32766,-32766,-32766,-32766, 609,-32766, 289,-32766, 46, 855, - -32766, 906, 407, 662,-32766,-32766,-32766,-32766, 287, 1016, - 1183,-32766,-32766, 855, 286, 293, 781,-32766, 388, 1247, - 890, 414, 855, 402, 891,-32766, 881, 538, 279, -231, - -231, -231, -107, -107, 1000, 414, 867, 26, 662, 1185, - 578, 800, -107, -107, -107, -466, -107, -107, 855, 781, - 47, -456, 7, 1176, 22, 841, -107, -107, -107, 348, - 282, 283, 780, 9, -230, -230, -230, 281, 1173, -536, - 414, 38, 867, 39, 662, -4, 683, 684, 846, 32, - 243, -107, -107, 930, 907, 680, 867, 123, 662, -231, - 841, -107, -107, -107, 914, 867, 904, 662, 915, 844, - 902, 1005, 497, 1008, 1166, 1167, 1168, 1169, 1163, 1164, - 1009, 1006, 284, 285, 1007, 1013, 1170, 1165, 792, 1198, - 1216, 867, 30, 662, -230, 304, 1250, 349, 71, 614, - 842, 306, 309, 347, 663, 666, 670, 672, -107, 125, - -107, 673, 674, 678, 665, 288, 1254, 1256, -107, -107, - -107, -107, -107, -107, -107, 803, 802, 811, 888, 922, - 810, 1255, 887, 886, 1131, 874, 882, 872, 912, 913, - 1253, 1210, 1199, 1217, 1223, 1226, 0, -534, -508, -507, - -506, 1, 27, 28, 37, 41, 45, 70, 74, 75, - 76, 77, -307, -256, 78, 79, 140, 149, 153, 239, - 311, 334, 335, 336, 337, 338, 339, 340, 341, 342, - 343, 344, 403, 404, 0, -254, -253, 12, 13, 14, - 15, 17, 376, 454, 455, 462, 465, 466, 467, 468, - 472, 473, 474, 481, 649, 1156, 1099, 1174, 977, 1135, - -258, -99, 11, 16, 25, 278, 375, 571, 575, 601, - 654, 1103, 1151, 1100, 1229, 0, -470, 1116, 0, 1177, - 0, 309 + 130, 131, 132, 561, 133, 134, 0, 710, 711, 712, + 135, 36, 896, 537, 538,-32766, 1231,-32766,-32766,-32766, + -558, 1164, 785, 907, 434, 435, 436, -558,-32766,-32766, + -32766, -299,-32766, 973,-32766, 247,-32766, -190,-32766,-32766, + -32766,-32766,-32766, 465,-32766,-32766,-32766,-32766,-32766,-32766, + -32766,-32766, 124, 796, 713,-32766,-32766, 392, 1043, 1044, + 1045, 1042, 1041, 1040,-32766,-32766,-32766,-32766, 263, 136, + 375, 717, 718, 719, 720, 980, 981, 401, 1043, 1044, + 1045, 1042, 1041, 1040, 721, 722, 723, 724, 725, 726, + 727, 728, 729, 730, 731, 751, 562, 752, 753, 754, + 755, 743, 744, 376, 377, 746, 747, 732, 733, 734, + 736, 737, 738, 336, 778, 779, 780, 781, 782, 739, + 740, 563, 564, 772, 763, 761, 762, 775, 758, 759, + -189, 978, 565, 566, 757, 567, 568, 569, 570, 571, + 572, 533, -555, -509,-32766,-32766, 760, 573, 574, -555, + 137, 980, 981, 313, 130, 131, 132, 561, 133, 134, + 994, 710, 711, 712, 135, 36,-32766,-32766,-32766,-32766, + 687,-32766,-32766,-32766, 80, 1164, 553, -558, 629, 24, + 312, -558,-32766,-32766,-32766, -299,-32766,-32766,-32766, 247, + -32766, -190,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766, + -32766, 1203, 432, 433,-32766,-32766, -509, -509, 713, 795, + -32766, 392, 395,-32766,-32766,-32766, 443, 444,-32766, 438, + 433, -509, 263, 136, 375, 717, 718, 719, 720, 395, + -83, 401, 237, -509,-32766, -515,-32766,-32766, 721, 722, + 723, 724, 725, 726, 727, 728, 729, 730, 731, 751, + 562, 752, 753, 754, 755, 743, 744, 376, 377, 746, + 747, 732, 733, 734, 736, 737, 738, 336, 778, 779, + 780, 781, 782, 739, 740, 563, 564, 772, 763, 761, + 762, 775, 758, 759, -189, 2, 565, 566, 757, 567, + 568, 569, 570, 571, 572, -83, 81, 82, 83, -555, + 760, 573, 574, -555, 137, 735, 705, 706, 707, 708, + 709, 1251, 710, 711, 712, 748, 749, 33, 1250, 84, + 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, + 105, 106, 12, 265,-32766,-32766,-32766, 104, 105, 106, + 31, 265, 970, 969, 968, 107, 101, 102, 103, 713, + -32766,-32766,-32766, 107, 459,-32766, 583,-32766,-32766,-32766, + -32766,-32766,-32766, 714, 715, 716, 717, 718, 719, 720, + -259,-32766, 783,-32766,-32766,-32766,-32766,-32766, 126, 721, + 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, + 751, 774, 752, 753, 754, 755, 743, 744, 745, 773, + 746, 747, 732, 733, 734, 736, 737, 738, 777, 778, + 779, 780, 781, 782, 739, 740, 741, 742, 772, 763, + 761, 762, 775, 758, 759, 142, 938, 750, 756, 757, + 764, 765, 767, 766, 768, 769, -549,-32766,-32766,-32766, + -549, 760, 771, 770, 48, 49, 50, 492, 51, 52, + 790, 236, 589, -510, 53, 54, 249, 55,-32766, 993, + -32766,-32766,-32766,-32766,-32766,-32766,-32767,-32767,-32767,-32767, + -32767, 296,-32767,-32767,-32767,-32767, 99, 100, 101, 102, + 103, 1276, 460, 787, 1277, 821, 298, 822, 274, 482, + 1191, 56, 57, -337, 310, -337, -508, 58, 1171, 59, + 242, 243, 60, 61, 62, 63, 64, 65, 66, 67, + 1035, 26, 264, 68, 416, 493, -510, -510, 325, 1197, + 1198, 494, 349, 794, 1171, 791, 353, 1195, 40, 23, + 495, -510, 496, 793, 497, 487, 498, 11, 358, 499, + 500, 645, 646, -510, 42, 43, 417, 421, 419, 878, + 44, 501, 939, 401, -14, 360, 348, 324, 789, -508, + -508, 412, -507, 675, 502, 503, 504, 427, 428, 47, + 794, 146, 380, 978, -508, 413, 505, 506, 794, 1185, + 1186, 1187, 1188, 1182, 1183, 284, -508, 414, -514, 1247, + 415, 1189, 1184, 980, 981, 1166, 1165, 1167, 285, 821, + 878, 822, 800, 69, 794, 308, 309, 312, 34, 108, + 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, + 119, 120, -150, -150, -150, -507, -507, 1166, 1165, 1167, + 678, 868, 288, 289, 1021,-32766, 1020, -150, 698, -150, + -507, -150, 147, -150, 244, 445, 446, 352, 138, -108, + 1079, 1081, -507, 418, 312, 621, 622, 148, 73, 125, + 150, -507, 312, 151, -108, -108, 152, 785, -85, 154, + 35, -49, -77, 854, -108, -108, -108, -108, 121, 285, + -32766, 122, 868, 127, 73, 128, 1164, 141, 312, 155, + 878, 156, 157,-32766,-32766,-32766, 158,-32766, 277,-32766, + 878,-32766, 107, -73,-32766, 880, 878, 673, -150,-32766, + -32766,-32766, -71,-32766, -70,-32766,-32766, -69, 129, 1164, + 679,-32766, 392, -512, -507, -507,-32766,-32766,-32766,-32766, + -32766, -68,-32766, 878,-32766, -67, 680,-32766, -66, -507, + -65, -64,-32766,-32766,-32766, 1171, -45, 139,-32766,-32766, + 878, -507, -16, 312,-32766, 392, 880, 246, 673, 72, + -32766, 145,-32766, 682, 1164, 266, 1164, 273, 688, -4, + 878, 691, 868,-32766,-32766,-32766, 877,-32766, 144,-32766, + 689,-32766, 868,-32766,-32766, 275, -512, -512, 868,-32766, + -32766,-32766, 892,-32766, 248,-32766,-32766, 276, 278, 1164, + 1162,-32766, 392, 980, 981, 279,-32766,-32766,-32766,-32766, + -32766, 318,-32766, -512,-32766, 868, 265,-32766, 653, 794, + 46, 143,-32766,-32766,-32766, 794, 666, 785,-32766,-32766, + -32766, 541, 868,-32766,-32766, 392, 1164, 1049, 1166, 1165, + 1167, 1278,-32766,-32766,-32766,-32766, 880,-32766, 673,-32766, + -32766,-32766, 868, 630,-32766, 250, 880, 535, 673,-32766, + -32766,-32766, 924, 635, 673,-32766,-32766, 648, 13, 290, + -108,-32766, 392, 440, 418, 794, 406, 470, 1266,-32766, + 293, 283, 636, 286, 287, -108, -108, 26, 878, 880, + 649, 673, 619, -473, 813, -108, -108, -108, -108, 794, + 285,-32766, 878, 1195, 411, 73, 880, 1164, 673, 312, + 123, 908, 909, 291,-32766,-32766,-32766, 9,-32766, 297, + -32766, 285,-32766, 1202, 793,-32766, 880, 894, 673, -4, + -32766,-32766,-32766, 0, 1019, -463,-32766,-32766, 547, 32, + 245, 1204,-32766, 392, 587, 7, 15, 351, 1192, 38, + -32766, 0, 505, 506, 805, 1185, 1186, 1187, 1188, 1182, + 1183, 39, 695, 696, 859, 948, 925, 1189, 1184, 932, + 868, 922, 933, 857, 920, -262, 1024, 1027, 1028, 71, + 1025, 1026, 309, 312, 868, 1217, -237, -237, -237, 1032, + 30, 1235, 418, 1269, 624, -543, 307, 350, 674, 677, + -236, -236, -236, -108, -108, 681, 418, 26, 683, 684, + 685, 686, 854, -108, -108, -108, -108, -108, -108, 794, + 690, 676, -260, 1195, 692, 855, 854, -108, -108, -108, + -108, 1273, 1275, -108, 816, 815, 824, 901, -108, 940, + -108, 823, 1274, 900, 880, 292, 673, -237, -108, -108, + -108, -108, -108, -108, -108, 902, 899, 1150, 880, 887, + 673, -236, 895, 885, 930, 931, 1272, 1229, 1218, 1236, + 1242, 1245, 0, 506, -541, 1185, 1186, 1187, 1188, 1182, + 1183, -515, -514, -513, 1, 27, 28, 1189, 1184, 37, + 41, 45, 70, -313, -259, 74, 75, 76, 77, 71, + 78, 79, 309, 312, 140, 149, 153, 241, 314, 337, + 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, + 407, 408, 0, 17, 18, 19, 20, 22, 379, 461, + 462, 469, 472, 473, 474, 475, 479, 480, 481, 490, + 660, 1175, 1118, 1193, 995, 1154, -264, -100, 16, 21, + 25, 282, 378, 580, 584, 611, 665, 1122, 1170, 1119, + 1248, 0, -477, 1135, 0, 1196, 0, 312 ); protected $actionCheck = array( 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 1, 116, 117, 73, 1, 9, 10, 11, - 1, 79, 79, 126, 127, 128, 1, 8, 86, 87, - 88, 8, 90, 8, 92, 37, 94, 8, 30, 97, + 1, 79, 79, 126, 127, 128, 129, 8, 86, 87, + 88, 8, 90, 1, 92, 37, 94, 8, 30, 97, 32, 33, 34, 101, 102, 103, 104, 9, 10, 11, - 108, 109, 14, 1, 56, 79, 114, 115, 115, 116, - 117, 118, 119, 120, 122, 105, 106, 1, 70, 71, - 72, 73, 74, 75, 76, 115, 8, 79, 115, 116, + 108, 109, 14, 1, 56, 115, 114, 115, 115, 116, + 117, 118, 119, 120, 122, 9, 10, 11, 70, 71, + 72, 73, 74, 75, 76, 135, 136, 79, 115, 116, 117, 118, 119, 120, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, - 122, 123, 124, 125, 126, 127, 128, 129, 130, 153, - 8, 133, 134, 135, 136, 137, 138, 139, 140, 141, - 157, 1, 8, 69, 161, 147, 148, 149, 8, 151, - 9, 10, 11, 2, 3, 4, 5, 6, 7, 161, - 9, 10, 11, 12, 13, 9, 10, 11, 73, 158, - 9, 10, 11, 158, 79, 80, 157, 9, 10, 164, - 161, 86, 87, 88, 161, 90, 30, 92, 37, 94, - 161, 30, 97, 32, 33, 34, 35, 102, 103, 104, - 8, 105, 106, 108, 109, 131, 132, 56, 156, 114, - 115, 115, 9, 10, 11, 14, 8, 122, 31, 8, - 146, 70, 71, 72, 73, 74, 75, 76, 8, 161, - 79, 8, 158, 30, 160, 32, 33, 86, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, - 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, - 129, 130, 8, 96, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 69, 9, 10, 11, 157, 147, 148, - 149, 161, 151, 2, 3, 4, 5, 6, 7, 9, - 9, 10, 11, 12, 13, 30, 8, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 8, 56, 9, 10, 11, 52, 53, 54, 8, 56, - 118, 119, 120, 68, 8, 131, 132, 56, 9, 10, - 11, 68, 161, 30, 8, 32, 33, 34, 35, 36, - 37, 70, 71, 72, 73, 74, 75, 76, 31, 30, - 79, 32, 33, 34, 35, 36, 8, 86, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, - 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, - 129, 130, 74, 75, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 84, 9, 10, 11, 1, 147, 148, - 149, 2, 3, 4, 5, 6, 7, 14, 79, 50, - 8, 12, 13, 8, 15, 30, 1, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 1, 43, - 44, 45, 46, 47, 48, 49, 50, 51, 79, 8, - 1, 82, 8, 79, 1, 30, 74, 75, 49, 50, - 14, 105, 143, 107, 55, 158, 57, 58, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 8, 69, 70, - 71, 72, 73, 16, 31, 115, 77, 78, 79, 115, - 81, 152, 153, 154, 85, 86, 87, 88, 159, 90, - 14, 92, 96, 94, 134, 135, 97, 98, 152, 105, - 106, 102, 103, 104, 105, 106, 1, 108, 109, 14, - 83, 31, 37, 114, 115, 1, 152, 153, 154, 16, - 81, 122, 123, 124, 14, 105, 83, 107, 16, 69, - 115, 14, 133, 134, 14, 136, 137, 138, 139, 140, - 141, 142, 100, 101, 69, 31, 16, 148, 149, 134, - 135, 152, 153, 154, 155, 16, 81, 69, 16, 160, - 85, 162, 163, 164, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 16, 74, - 75, 76, 105, 156, 107, 158, 1, 1, 83, 105, - 106, 131, 132, 16, 89, 81, 91, 158, 93, 156, - 95, 158, 105, 164, 107, 37, 58, 59, 133, 134, - 105, 136, 137, 138, 139, 140, 141, 69, 158, 131, - 132, 116, 117, 148, 149, 69, 1, 1, 110, 111, - 125, 126, 127, 128, 146, 160, 156, 31, 163, 164, - 126, 73, 31, 156, 31, 158, 158, 79, 160, 31, - 31, 79, 31, 31, 86, 87, 88, 31, 90, 31, - 92, 156, 94, 158, 159, 97, 81, 81, 31, 155, - 102, 103, 104, 31, 160, 31, 108, 109, 164, 131, - 132, 31, 114, 115, 31, 31, 73, 131, 132, 31, - 122, 31, 79, 31, 146, 31, 1, 31, 31, 86, - 87, 88, 146, 90, 79, 92, 158, 94, 31, 83, - 97, 35, 126, 35, 158, 102, 103, 104, 37, 151, - 37, 108, 109, 73, 35, 153, 31, 114, 115, 79, - 158, 1, 69, 30, 35, 122, 86, 87, 88, 35, - 90, 155, 92, 56, 94, 160, 160, 97, 68, 164, - 164, 69, 102, 103, 104, 76, 73, 37, 108, 109, - 88, 31, 79, 79, 114, 115, 0, 1, 82, 86, - 87, 88, 122, 90, 81, 92, 84, 94, 83, 81, - 97, 1, 156, 158, 158, 102, 103, 104, 91, 164, - 1, 108, 109, 73, 131, 132, 84, 114, 115, 79, - 49, 50, 51, 89, 93, 122, 86, 87, 88, 146, - 90, 115, 92, 83, 94, 96, 1, 97, 115, 95, - 31, 158, 102, 103, 104, 96, 73, 96, 108, 109, - 134, 135, 79, 99, 114, 115, 99, 134, 135, 86, - 87, 88, 122, 90, 112, 92, 113, 94, 69, 83, - 97, 156, 126, 158, 115, 102, 103, 104, 130, 121, - 143, 108, 109, 83, 129, 129, 81, 114, 115, 84, - 126, 105, 83, 107, 126, 122, 151, 150, 112, 99, - 100, 101, 116, 117, 1, 105, 156, 69, 158, 143, - 150, 125, 126, 127, 128, 146, 116, 117, 83, 81, - 69, 146, 146, 85, 146, 125, 126, 127, 128, 146, - 131, 132, 152, 147, 99, 100, 101, 155, 157, 160, - 105, 156, 156, 156, 158, 159, 156, 156, 156, 144, - 145, 116, 117, 156, 156, 159, 156, 158, 158, 159, - 125, 126, 127, 128, 156, 156, 156, 158, 156, 156, - 156, 156, 134, 156, 136, 137, 138, 139, 140, 141, - 156, 156, 131, 132, 156, 156, 148, 149, 157, 157, - 157, 156, 158, 158, 159, 158, 157, 146, 160, 157, - 159, 163, 164, 158, 158, 158, 158, 158, 105, 158, - 107, 158, 158, 158, 158, 112, 159, 159, 115, 116, - 117, 118, 119, 120, 121, 159, 159, 159, 159, 159, - 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, - 159, 159, 159, 159, 159, 159, -1, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 159, 161, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, -1, 161, 161, 161, 161, 161, + 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, + 8, 115, 134, 135, 136, 137, 138, 139, 140, 141, + 142, 84, 1, 69, 9, 10, 148, 149, 150, 8, + 152, 135, 136, 69, 2, 3, 4, 5, 6, 7, + 162, 9, 10, 11, 12, 13, 9, 10, 11, 73, + 159, 9, 10, 11, 159, 79, 80, 158, 74, 75, + 165, 162, 86, 87, 88, 162, 90, 30, 92, 37, + 94, 162, 30, 97, 32, 33, 34, 35, 102, 103, + 104, 144, 105, 106, 108, 109, 132, 133, 56, 157, + 114, 115, 115, 9, 10, 11, 132, 133, 122, 105, + 106, 147, 70, 71, 72, 73, 74, 75, 76, 115, + 31, 79, 14, 159, 30, 161, 32, 33, 86, 87, + 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, + 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, + 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, + 128, 129, 130, 131, 162, 8, 134, 135, 136, 137, + 138, 139, 140, 141, 142, 96, 9, 10, 11, 158, + 148, 149, 150, 162, 152, 2, 3, 4, 5, 6, + 7, 1, 9, 10, 11, 12, 13, 30, 8, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, + 53, 54, 8, 56, 9, 10, 11, 52, 53, 54, + 8, 56, 118, 119, 120, 68, 49, 50, 51, 56, + 9, 10, 11, 68, 31, 30, 1, 32, 33, 34, + 35, 36, 37, 70, 71, 72, 73, 74, 75, 76, + 162, 30, 79, 32, 33, 34, 35, 36, 8, 86, + 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, + 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, + 127, 128, 129, 130, 131, 8, 31, 134, 135, 136, + 137, 138, 139, 140, 141, 142, 158, 9, 10, 11, + 162, 148, 149, 150, 2, 3, 4, 5, 6, 7, + 79, 96, 50, 69, 12, 13, 8, 15, 30, 1, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 8, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 79, 159, 79, 82, 105, 8, 107, 30, 100, + 1, 49, 50, 105, 8, 107, 69, 55, 1, 57, + 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 121, 69, 70, 71, 72, 73, 132, 133, 8, 77, + 78, 79, 8, 81, 1, 154, 8, 85, 86, 87, + 88, 147, 90, 153, 92, 105, 94, 107, 8, 97, + 98, 74, 75, 159, 102, 103, 104, 105, 106, 1, + 108, 109, 157, 79, 31, 8, 114, 115, 154, 132, + 133, 8, 69, 159, 122, 123, 124, 105, 106, 69, + 81, 100, 101, 115, 147, 8, 134, 135, 81, 137, + 138, 139, 140, 141, 142, 143, 159, 8, 161, 1, + 8, 149, 150, 135, 136, 153, 154, 155, 156, 105, + 1, 107, 8, 161, 81, 163, 164, 165, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 74, 75, 76, 132, 133, 153, 154, 155, + 31, 83, 132, 133, 160, 9, 157, 89, 159, 91, + 147, 93, 14, 95, 37, 105, 106, 147, 159, 126, + 58, 59, 159, 105, 165, 110, 111, 14, 161, 159, + 14, 69, 165, 14, 116, 117, 14, 79, 31, 14, + 14, 31, 31, 125, 126, 127, 128, 129, 16, 156, + 73, 16, 83, 16, 161, 16, 79, 16, 165, 16, + 1, 16, 16, 86, 87, 88, 16, 90, 30, 92, + 1, 94, 68, 31, 97, 157, 1, 159, 160, 102, + 103, 104, 31, 73, 31, 108, 109, 31, 31, 79, + 31, 114, 115, 69, 132, 133, 86, 87, 88, 122, + 90, 31, 92, 1, 94, 31, 31, 97, 31, 147, + 31, 31, 102, 103, 104, 1, 31, 159, 108, 109, + 1, 159, 31, 165, 114, 115, 157, 37, 159, 152, + 73, 31, 122, 31, 79, 31, 79, 31, 31, 0, + 1, 31, 83, 86, 87, 88, 31, 90, 31, 92, + 31, 94, 83, 115, 97, 35, 132, 133, 83, 102, + 103, 104, 37, 73, 37, 108, 109, 35, 35, 79, + 115, 114, 115, 135, 136, 35, 86, 87, 88, 122, + 90, 35, 92, 159, 94, 83, 56, 97, 76, 81, + 69, 69, 102, 103, 104, 81, 91, 79, 108, 109, + 73, 88, 83, 115, 114, 115, 79, 81, 153, 154, + 155, 82, 122, 86, 87, 88, 157, 90, 159, 92, + 84, 94, 83, 89, 97, 37, 157, 84, 159, 102, + 103, 104, 157, 95, 159, 108, 109, 93, 96, 130, + 126, 114, 115, 96, 105, 81, 107, 96, 84, 122, + 113, 112, 99, 132, 133, 116, 117, 69, 1, 157, + 99, 159, 112, 147, 125, 126, 127, 128, 129, 81, + 156, 73, 1, 85, 126, 161, 157, 79, 159, 165, + 159, 126, 126, 131, 86, 87, 88, 148, 90, 130, + 92, 156, 94, 144, 153, 97, 157, 152, 159, 160, + 102, 103, 104, -1, 1, 147, 108, 109, 151, 145, + 146, 144, 114, 115, 151, 147, 147, 147, 158, 157, + 122, -1, 134, 135, 158, 137, 138, 139, 140, 141, + 142, 157, 157, 157, 157, 157, 157, 149, 150, 157, + 83, 157, 157, 157, 157, 162, 157, 157, 157, 161, + 157, 157, 164, 165, 83, 158, 99, 100, 101, 157, + 159, 158, 105, 158, 158, 161, 159, 159, 159, 159, + 99, 100, 101, 116, 117, 159, 105, 69, 159, 159, + 159, 159, 125, 126, 127, 128, 129, 116, 117, 81, + 159, 159, 162, 85, 160, 160, 125, 126, 127, 128, + 129, 160, 160, 100, 160, 160, 160, 160, 105, 160, + 107, 160, 160, 160, 157, 112, 159, 160, 115, 116, + 117, 118, 119, 120, 121, 160, 160, 160, 157, 160, + 159, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, -1, 135, 161, 137, 138, 139, 140, 141, + 142, 161, 161, 161, 161, 161, 161, 149, 150, 161, + 161, 161, 161, 160, 162, 161, 161, 161, 161, 161, + 161, 161, 164, 165, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, - 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, - 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, - 161, 161, 161, 161, 161, -1, 162, 162, -1, 163, - -1, 164 + 161, 161, -1, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, -1, 163, 163, -1, 164, -1, 165 ); protected $actionBase = array( - 0, -2, 151, 555, 816, 830, 865, 489, 379, 622, - 858, 676, 780, 780, 839, 780, 493, 745, 301, 301, - -57, 301, 301, 477, 477, 477, 618, 618, 618, 618, - -58, -58, 95, 700, 733, 770, 663, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, - 803, 803, 803, 803, 803, 803, 803, 803, 52, 530, - 446, 570, 984, 990, 986, 991, 982, 981, 985, 987, - 992, 911, 912, 727, 913, 914, 915, 916, 988, 872, - 983, 989, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 285, 300, 38, 168, 141, 141, 141, 141, - 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, - 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, - 156, 156, 156, 203, 525, 525, 8, 598, 161, 868, - 868, 868, 868, 868, 868, 868, 868, 868, 868, 349, - 333, 435, 435, 435, 435, 435, 436, 436, 436, 436, - 933, 564, 636, 635, 465, 470, 801, 801, 753, 753, - 788, 746, 746, 746, 410, 410, 410, 74, 538, 396, - 359, 414, 675, 675, 675, 675, 414, 414, 414, 414, - 796, 996, 414, 414, 414, -103, 606, 713, 713, 881, - 293, 293, 293, 713, 547, 762, 835, 547, 835, 15, - 409, 789, -40, 96, -17, 789, 510, 829, 140, 19, - 810, 444, 810, 742, 859, 886, 993, 232, 784, 909, - 787, 910, 224, 661, 979, 979, 979, 979, 979, 979, - 979, 979, 979, 979, 979, 997, 980, -24, 997, 997, - 997, 568, -24, 358, 422, -24, 754, 980, 52, 805, - 52, 52, 52, 52, 941, 52, 52, 52, 52, 52, - 52, 946, 708, 704, 668, 347, 52, 530, 11, 11, - 537, 66, 11, 11, 11, 11, 52, 52, 444, 737, - 777, 534, 790, 68, 737, 737, 737, 187, 23, 201, - 29, 527, 734, 734, 731, 748, 921, 921, 734, 743, - 734, 748, 926, 734, 731, 731, 921, 731, 812, 208, - 452, 332, 346, 731, 731, 455, 921, 223, 731, 731, - 734, 734, 734, 731, 481, 734, 220, 211, 734, 734, - 731, 731, 785, 786, 122, 921, 921, 921, 786, 340, - 778, 778, 820, 821, 782, 712, 308, 274, 509, 192, - 731, 712, 712, 734, 356, 782, 712, 782, 712, 775, - 712, 712, 712, 782, 712, 743, 378, 712, 731, 484, - 134, 712, 6, 927, 928, 656, 929, 924, 930, 952, - 931, 934, 876, 939, 925, 935, 923, 922, 717, 507, - 553, 806, 799, 920, 730, 730, 730, 918, 730, 730, - 730, 730, 730, 730, 730, 730, 507, 811, 813, 776, - 722, 942, 562, 580, 767, 871, 994, 995, 794, 798, - 941, 974, 936, 815, 589, 960, 943, 826, 867, 944, - 945, 961, 975, 976, 887, 732, 888, 896, 861, 947, - 877, 730, 927, 934, 925, 935, 923, 922, 703, 694, - 687, 692, 678, 672, 669, 671, 710, 917, 809, 862, - 946, 919, 507, 863, 956, 864, 962, 963, 875, 779, - 736, 869, 897, 948, 949, 950, 878, 977, 817, 957, - 932, 964, 781, 898, 965, 966, 967, 968, 899, 879, - 883, 822, 764, 954, 774, 900, 443, 739, 749, 953, - 486, 940, 884, 901, 902, 969, 970, 971, 903, 937, - 827, 958, 761, 959, 955, 828, 838, 526, 726, 728, - 545, 560, 904, 905, 938, 714, 729, 840, 842, 978, - 906, 567, 843, 592, 907, 973, 612, 627, 747, 885, - 808, 783, 769, 951, 716, 844, 908, 845, 847, 854, - 972, 855, 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, 449, - 449, 449, 449, 449, 449, 301, 301, 301, 301, 449, - 449, 449, 449, 449, 449, 449, 0, 0, 301, 0, - 0, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, - 449, 449, 449, 449, 449, 449, 285, 285, 285, 285, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, + 0, -2, 152, 558, 779, 897, 911, 499, 484, 414, + 834, 303, 303, -57, 303, 303, 699, 742, 742, 759, + 742, 609, 715, 709, 709, 709, 617, 617, 617, 617, + -58, -58, 96, 697, 730, 767, 650, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, + 838, 838, 838, 838, 838, 838, 838, 838, 838, 52, + 405, 365, 666, 999, 1005, 1001, 1006, 997, 996, 1000, + 1002, 1007, 916, 917, 757, 918, 919, 920, 921, 1003, + 846, 998, 1004, 287, 287, 287, 287, 287, 287, 287, + 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, + 287, 287, 287, 287, 287, 636, 38, 135, 56, 56, + 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, + 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, + 56, 56, 157, 157, 157, 204, 828, 828, 8, 602, + 162, 948, 948, 948, 948, 948, 948, 948, 948, 948, + 948, 351, 335, 438, 438, 438, 438, 438, 943, 439, + 439, 439, 439, 533, 754, 507, 468, 399, 398, 307, + 307, 678, 678, 16, 16, 16, 16, -60, -60, -60, + -103, 74, 437, 390, 57, 695, 598, 598, 598, 598, + 695, 695, 695, 695, 807, 1011, 695, 695, 695, 394, + 503, 503, 510, 295, 295, 295, 503, 504, 783, 804, + 504, 804, 15, 412, 728, 97, 114, 288, 728, 664, + 761, 141, 19, 781, 472, 781, 776, 842, 872, 1008, + 234, 793, 914, 801, 915, 84, 651, 994, 994, 994, + 994, 994, 994, 994, 994, 994, 994, 994, 1012, 995, + 381, 1012, 1012, 1012, 555, 381, 104, 477, 381, 786, + 995, 52, 798, 52, 52, 52, 52, 958, 52, 52, + 52, 52, 52, 52, 963, 731, 725, 682, 333, 52, + 405, 11, 11, 489, 32, 11, 11, 11, 11, 52, + 52, 52, 472, 770, 797, 550, 803, 122, 770, 770, + 770, 199, 23, 218, 29, 440, 758, 758, 765, 766, + 933, 933, 758, 748, 758, 766, 940, 758, 765, 765, + 933, 765, 775, 380, 563, 520, 528, 765, 765, 577, + 933, 473, 765, 765, 758, 758, 758, 758, 765, 589, + 758, 458, 427, 758, 758, 765, 765, 749, 746, 799, + 277, 933, 933, 933, 799, 524, 792, 792, 792, 815, + 816, 790, 744, 496, 488, 604, 342, 765, 744, 744, + 758, 540, 790, 744, 790, 744, 785, 744, 744, 744, + 790, 744, 758, 748, 557, 744, 683, 765, 592, 334, + 744, 6, 941, 944, 647, 945, 938, 946, 969, 947, + 949, 849, 956, 939, 950, 935, 934, 755, 672, 675, + 808, 756, 932, 644, 644, 644, 930, 644, 644, 644, + 644, 644, 644, 644, 644, 672, 800, 810, 788, 753, + 959, 677, 679, 789, 875, 1009, 1010, 795, 796, 958, + 989, 953, 802, 681, 975, 960, 874, 847, 961, 962, + 976, 990, 991, 881, 762, 882, 884, 806, 964, 850, + 644, 941, 949, 939, 950, 935, 934, 720, 719, 714, + 717, 710, 696, 691, 693, 740, 923, 844, 837, 963, + 931, 672, 843, 971, 841, 977, 978, 848, 787, 769, + 845, 885, 965, 966, 967, 856, 992, 814, 972, 823, + 979, 791, 886, 980, 981, 982, 983, 887, 859, 860, + 861, 817, 774, 870, 778, 889, 638, 773, 780, 970, + 653, 957, 862, 891, 892, 984, 985, 986, 893, 954, + 818, 973, 784, 974, 942, 819, 822, 656, 760, 772, + 659, 662, 905, 906, 907, 955, 747, 752, 824, 825, + 993, 909, 665, 826, 685, 912, 988, 686, 690, 745, + 871, 809, 777, 782, 968, 750, 827, 913, 829, 830, + 831, 987, 833, 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, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, - 285, 285, 414, 414, 285, 0, 285, 414, 414, 414, - 414, 414, 414, 414, 414, 414, 414, 285, 285, 285, - 285, 285, 285, 285, 293, 293, 293, 293, 812, 414, - 414, 414, 414, -37, 293, 293, 414, 414, -37, 414, - 414, 414, 414, 414, 414, 0, 0, -24, 835, 0, - 743, 743, 743, 743, 0, 0, 0, 0, 835, 835, + 0, 452, 452, 452, 452, 452, 452, 303, 303, 303, + 303, 0, 0, 303, 0, 0, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 287, + 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, + 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, + 287, 287, 287, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, -24, 835, 0, -24, 0, 743, 743, 414, - 812, 812, 25, 414, 0, 0, 0, 0, -24, 743, - -24, 835, 11, 52, 25, 0, 492, 492, 492, 492, - 0, 444, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 743, 812, 0, 743, 743, 743, 0, - 0, 0, 0, 0, 743, 731, 0, 921, 0, 0, - 0, 0, 734, 0, 0, 0, 0, 0, 0, 734, - 926, 731, 731, 0, 0, 0, 0, 0, 0, 743, - 0, 0, 0, 0, 0, 0, 0, 730, 779, 0, - 779, 0, 730, 730, 730 + 0, 0, 0, 0, 0, 287, 287, 287, 287, 287, + 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, + 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, + 287, 287, 287, 287, 287, 287, 695, 695, 287, 0, + 287, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 695, 287, 287, 287, 287, 287, 287, 287, 775, 295, + 295, 295, 295, 695, 695, 695, 695, -37, -37, 295, + 295, 695, 695, 695, 695, 695, 695, 695, 695, 695, + 0, 0, 0, 381, 804, 0, 748, 748, 748, 748, + 0, 0, 0, 0, 804, 804, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 381, 804, 0, + 381, 0, 748, 748, 695, 775, 775, 310, 695, 0, + 0, 0, 0, 381, 748, 381, 804, 11, 52, 310, + 0, 481, 481, 481, 481, 0, 472, 775, 775, 775, + 775, 775, 775, 775, 775, 775, 775, 775, 748, 775, + 0, 748, 748, 748, 0, 0, 0, 0, 0, 748, + 765, 0, 933, 0, 0, 0, 0, 758, 0, 0, + 0, 0, 0, 0, 758, 940, 765, 765, 0, 0, + 0, 0, 0, 0, 748, 0, 0, 0, 0, 0, + 0, 0, 0, 644, 787, 0, 787, 0, 644, 644, + 644 ); protected $actionDefault = array( - 3,32767, 99,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767,32767,32767,32767,32767,32767, 97, - 32767,32767,32767,32767,32767,32767, 554, 554, 554, 554, - 235, 99,32767,32767,32767,32767, 430, 349, 349, 349, - 32767,32767, 498, 498, 498, 498, 498, 498,32767,32767, - 32767,32767,32767,32767, 430,32767,32767,32767,32767,32767, + 3,32767, 100,32767,32767,32767,32767,32767,32767,32767, + 32767,32767, 98,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767,32767, 561, 561, 561, 561, + 241, 100,32767,32767,32767,32767, 437, 356, 356, 356, + 32767,32767, 505, 505, 505, 505, 505, 505,32767,32767, + 32767,32767,32767,32767, 437,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,32767,32767, 97,32767,32767,32767, + 32767,32767,32767,32767,32767,32767, 98,32767,32767,32767, 35, 5, 6, 8, 9, 48, 15,32767,32767,32767, - 32767,32767, 99,32767,32767,32767,32767,32767,32767,32767, + 32767,32767, 100,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767, 547,32767,32767,32767,32767,32767,32767,32767,32767, + 32767,32767, 554,32767,32767,32767,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767, 434, 413, 414, 416, 417, 348, 499, 553, - 292, 550, 347, 142, 304, 294, 223, 295, 239, 240, - 266, 344, 146, 378, 431, 380, 429, 433, 379, 354, - 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, - 369, 370, 371, 352, 353, 432, 435, 436, 439, 440, - 410, 409, 408, 376,32767,32767, 377, 351, 381,32767, - 32767,32767,32767,32767,32767,32767,32767, 99,32767, 383, - 382, 399, 400, 397, 398, 401, 402, 403, 404, 405, - 32767,32767,32767,32767,32767, 327, 390, 391, 283, 283, - 329,32767,32767,32767,32767,32767,32767, 492, 407,32767, + 32767,32767,32767, 441, 420, 421, 423, 424, 355, 506, + 560, 298, 557, 354, 143, 310, 300, 229, 301, 245, + 246, 206, 272, 351, 147, 385, 438, 387, 436, 440, + 386, 361, 366, 367, 368, 369, 370, 371, 372, 373, + 374, 375, 376, 377, 378, 359, 360, 439, 442, 443, + 446, 447, 417, 416, 415, 383,32767,32767, 384, 358, + 388,32767,32767,32767,32767,32767,32767,32767,32767, 100, + 32767, 390, 389, 406, 407, 404, 405, 408,32767, 409, + 410, 411, 412,32767,32767,32767,32767, 336, 334, 397, + 398, 289, 289,32767,32767,32767,32767,32767,32767,32767, + 32767, 499, 414,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767,32767, 100,32767, 98, 501, + 380, 382, 469, 392, 393, 391, 362,32767, 476,32767, + 100, 478,32767,32767,32767, 109,32767,32767,32767, 500, + 32767, 507, 507,32767, 462, 98,32767,32767,32767,32767, + 267,32767,32767,32767,32767, 568, 462, 108, 108, 108, + 108, 108, 108, 108, 108, 108, 108, 108,32767, 108, + 32767,32767,32767, 98, 186,32767, 255, 257, 100, 522, + 191,32767, 481,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767, 474, 191, 191,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767, 99,32767, 97,32767, 494, 373, 375, 462, - 385, 386, 384, 355,32767, 469,32767, 99, 471,32767, - 32767,32767, 108,32767,32767,32767, 493,32767, 500, 500, - 32767, 455, 97,32767,32767,32767,32767, 261,32767,32767, - 32767,32767, 561, 455, 107, 107, 107, 107, 107, 107, - 107, 107, 107, 107, 107,32767, 107,32767,32767,32767, - 97, 185,32767, 249, 251, 99, 515, 190,32767, 474, + 32767,32767, 462, 402, 136,32767, 136, 507, 394, 395, + 396, 464, 507, 507, 507,32767,32767,32767, 191,32767, + 479, 479, 98, 98, 98, 98, 474,32767, 191, 191, + 32767, 191, 109, 97, 97, 97, 97, 191, 191, 97, + 101, 99, 191, 191,32767,32767,32767,32767, 191, 97, + 32767, 99, 99,32767,32767, 191, 191, 212, 203, 210, + 99,32767, 526, 527, 210, 99, 214, 214, 214, 234, + 234, 453, 291, 99, 97, 99, 99, 191, 291, 291, + 32767, 99, 453, 291, 453, 291, 193, 291, 291, 291, + 453, 291,32767,32767, 99, 291, 205, 191, 97, 97, + 291,32767,32767,32767, 464,32767,32767,32767,32767,32767, + 32767,32767,32767,32767,32767,32767,32767,32767,32767, 494, + 32767, 511, 524, 400, 401, 403, 509, 425, 426, 427, + 428, 429, 430, 431, 433, 556,32767, 468,32767,32767, + 32767,32767, 309, 566,32767, 566,32767,32767,32767,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767, 467, 190, 190,32767,32767,32767,32767,32767, - 32767,32767,32767,32767,32767,32767,32767,32767, 455, 395, - 135,32767, 135, 500, 387, 388, 389, 457, 500, 500, - 500,32767,32767,32767, 190,32767, 472, 472, 97, 97, - 97, 97, 467,32767, 190, 190,32767, 190, 108, 96, - 96, 96, 96, 190, 190, 96, 100, 98, 190, 190, - 32767,32767,32767, 190, 96,32767, 98, 98,32767,32767, - 190, 190, 206, 204, 98,32767, 519, 520, 204, 98, - 208, 208, 228, 228, 446, 285, 98, 96, 98, 98, - 190, 285, 285,32767, 98, 446, 285, 446, 285, 192, - 285, 285, 285, 446, 285,32767, 98, 285, 190, 96, - 96, 285,32767,32767,32767, 457,32767,32767,32767,32767, + 32767,32767,32767, 567,32767, 507,32767,32767,32767,32767, + 399, 7, 74, 41, 42, 50, 56, 485, 486, 487, + 488, 482, 483, 489, 484,32767, 490, 532,32767,32767, + 508, 559,32767,32767,32767,32767,32767,32767, 136,32767, + 32767,32767,32767,32767,32767,32767,32767,32767,32767, 494, + 32767, 134,32767,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767, 507,32767,32767,32767, 286, 288,32767, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 487,32767, 504, 517, 393, 394, 396, 502, 418, 419, - 420, 421, 422, 423, 424, 426, 549,32767, 461,32767, - 32767,32767,32767, 303, 559,32767, 559,32767,32767,32767, + 32767,32767,32767,32767, 507,32767,32767,32767, 274, 276, 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767, 560,32767, 500,32767,32767,32767, - 32767, 392, 7, 74, 41, 42, 50, 56, 478, 479, - 480, 481, 475, 476, 482, 477,32767, 483, 525,32767, - 32767, 501, 552,32767,32767,32767,32767,32767,32767, 135, - 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 487,32767, 133,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767, 500,32767,32767,32767, 280, 282,32767, - 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767,32767, 500,32767,32767,32767, 268, 270, - 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767,32767, 265,32767,32767, 343,32767,32767,32767, - 32767, 323,32767,32767,32767,32767,32767,32767,32767,32767, - 32767,32767, 148, 148, 3, 3, 306, 148, 148, 148, - 306, 148, 306, 306, 148, 148, 148, 148, 148, 148, - 180, 243, 246, 228, 228, 148, 315, 148 + 32767,32767,32767,32767, 271,32767,32767, 350,32767,32767, + 32767,32767, 330,32767,32767,32767,32767,32767,32767,32767, + 32767,32767,32767, 149, 149, 3, 3, 312, 149, 149, + 149, 312, 149, 312, 312, 312, 149, 149, 149, 149, + 149, 149, 181, 249, 252, 234, 234, 149, 322, 149 ); protected $goto = array( - 190, 190, 650, 1020, 979, 399, 624, 798, 1019, 658, - 393, 297, 298, 318, 546, 303, 398, 319, 400, 603, - 362, 366, 531, 569, 573, 161, 161, 161, 161, 187, - 187, 171, 173, 209, 191, 204, 187, 187, 187, 187, - 187, 188, 188, 188, 188, 188, 188, 182, 183, 184, - 185, 186, 206, 204, 207, 504, 505, 389, 506, 508, - 509, 510, 511, 512, 513, 514, 515, 1046, 162, 163, - 164, 189, 165, 166, 167, 160, 168, 169, 170, 172, - 203, 205, 208, 230, 233, 236, 238, 249, 250, 251, - 252, 253, 254, 255, 256, 257, 258, 259, 266, 267, - 300, 301, 302, 394, 395, 396, 551, 210, 211, 212, - 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, - 223, 224, 174, 225, 175, 192, 193, 194, 231, 182, - 183, 184, 185, 186, 206, 1046, 195, 176, 177, 178, - 196, 192, 179, 232, 197, 159, 198, 226, 180, 199, - 227, 228, 181, 229, 200, 201, 202, 312, 312, 312, - 312, 801, 577, 591, 594, 595, 596, 597, 615, 616, - 617, 660, 799, 329, 530, 521, 590, 590, 568, 794, - 794, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, - 1175, 858, 779, 859, 806, 775, 854, 849, 850, 863, - 905, 807, 851, 804, 852, 853, 805, 295, 295, 295, - 295, 832, 857, 607, 607, 364, 521, 773, 530, 969, - 966, 967, 996, 997, 539, 540, 957, 964, 965, 371, - 549, 588, 621, 779, 570, 779, 1244, 1244, 1193, 1193, - 543, 584, 585, 1193, 1193, 1193, 1193, 1193, 1193, 1193, - 1193, 1193, 1193, 326, 1244, 1144, 1144, 1144, 961, 1140, - 1233, 469, 961, 961, 926, 961, 961, 961, 961, 961, - 961, 1225, 1225, 1225, 1225, 1144, 470, 360, 471, 21, - 1144, 1144, 1144, 1144, 477, 794, 1144, 1144, 1144, 332, - 437, 437, 567, 1012, 618, 661, 632, 633, 542, 332, - 332, 437, 623, 647, 647, 870, 653, 1010, 1094, 871, - 447, 1218, 1219, 814, 332, 332, 1141, 332, 826, 1260, - 5, 813, 6, 518, 518, 518, 789, 320, 1191, 1191, - 523, 791, 332, 1191, 1191, 1191, 1191, 1191, 1191, 1191, - 1191, 1191, 1191, 426, 405, 1142, 1201, 1202, 899, 899, - 899, 899, 370, 536, 426, 893, 900, 897, 380, 657, - 583, 507, 507, 308, 291, 1204, 507, 507, 507, 507, - 507, 507, 507, 507, 507, 507, 1243, 1243, 516, 516, - 516, 516, 1220, 1221, 819, 875, 1034, 572, 547, 582, - 643, 522, 534, 587, 1243, 816, 948, 522, 945, 534, - 685, 985, 363, 330, 331, 818, 828, 627, 924, 1246, - 392, 1137, 579, 812, 418, 418, 418, 448, 523, 550, - 442, 443, 989, 1029, 824, 1136, 910, 1251, 1252, 451, - 600, 537, 1215, 1215, 1215, 682, 602, 604, 0, 622, - 0, 0, 640, 644, 940, 648, 656, 936, 0, 0, - 797, 0, 822, 1227, 1227, 1227, 1227, 929, 903, 903, - 901, 903, 681, 0, 270, 519, 519, 0, 0, 520, - 938, 933, 0, 827, 815, 984, 0, 0, 988, 0, - 1211, 0, 0, 0, 1139, 0, 0, 908, 418, 418, - 418, 418, 418, 418, 418, 418, 418, 418, 418, 0, - 418, 0, 378, 379, 0, 0, 0, 630, 0, 631, - 898, 382, 383, 384, 0, 641, 987, 0, 385, 1213, - 1213, 987, 324, 1125, 884, 0, 0, 1126, 1129, 885, - 1130, 0, 1027, 831, 0, 0, 0, 0, 0, 0, + 191, 191, 661, 403, 634, 453, 1237, 1238, 397, 300, + 301, 321, 555, 306, 402, 322, 404, 613, 1038, 1039, + 669, 315, 315, 315, 315, 162, 162, 162, 162, 188, + 188, 172, 174, 211, 192, 206, 188, 188, 188, 188, + 188, 189, 189, 189, 189, 189, 189, 183, 184, 185, + 186, 187, 208, 206, 209, 513, 514, 393, 515, 517, + 518, 519, 520, 521, 522, 523, 524, 1065, 163, 164, + 165, 190, 166, 167, 168, 161, 169, 170, 171, 173, + 205, 207, 210, 232, 235, 238, 240, 251, 252, 253, + 254, 255, 256, 257, 259, 260, 261, 262, 269, 270, + 303, 304, 305, 398, 399, 400, 560, 212, 213, 214, + 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, + 225, 226, 175, 227, 176, 193, 194, 195, 233, 183, + 184, 185, 186, 187, 208, 1065, 196, 177, 178, 179, + 197, 193, 180, 234, 198, 160, 199, 228, 181, 200, + 229, 230, 182, 231, 201, 202, 203, 204, 814, 586, + 600, 603, 604, 605, 606, 625, 626, 627, 671, 811, + 599, 599, 539, 530, 577, 1194, 1194, 1194, 1194, 1194, + 1194, 1194, 1194, 1194, 1194, 280, 280, 280, 280, 997, + 332, 819, 812, 867, 862, 863, 876, 845, 820, 864, + 817, 865, 866, 818, 597, 631, 1144, 897, 788, 870, + 1145, 1148, 898, 1149, 367, 530, 871, 539, 872, 1018, + 1014, 1015, 792, 548, 549, 617, 617, 786, 374, 558, + 1159, 987, 984, 985, 579, 915, 383, 668, 1212, 1212, + 923, 593, 594, 1212, 1212, 1212, 1212, 1212, 1212, 1212, + 1212, 1212, 1212, 904, 975, 982, 983, 1163, 1163, 1163, + 979, 552, 792, 476, 792, 979, 979, 979, 979, 979, + 979, 979, 979, 979, 329, 396, 422, 588, 5, 1163, + 6, 422, 422, 14, 1163, 1163, 1163, 1163, 1160, 1252, + 1163, 1163, 1163, 1244, 1244, 1244, 1244, 944, 802, 363, + 335, 546, 551, 311, 295, 694, 612, 614, 883, 632, + 335, 335, 884, 651, 655, 958, 659, 667, 954, 1161, + 1220, 1221, 1239, 1240, 335, 335, 633, 335, 1113, 1279, + 365, 369, 540, 578, 582, 323, 1262, 1262, 1210, 1210, + 532, 804, 335, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + 1210, 1210, 1210, 1262, 409, 422, 422, 422, 422, 422, + 422, 422, 422, 422, 422, 422, 832, 422, 1265, 373, + 525, 525, 525, 525, 545, 1223, 829, 516, 516, 581, + 966, 592, 516, 516, 516, 516, 516, 516, 516, 516, + 516, 516, 609, 610, 381, 382, 807, 807, 1156, 640, + 654, 641, 1003, 385, 386, 387, 628, 652, 642, 643, + 644, 388, 697, 531, 543, 454, 327, 1263, 1263, 531, + 841, 543, 442, 442, 366, 333, 334, 556, 591, 532, + 1234, 1234, 1234, 442, 1263, 527, 527, 527, 1007, 1048, + 267, 559, 447, 448, 449, 528, 528, 837, 928, 0, + 1270, 1271, 458, 1246, 1246, 1246, 1246, 430, 477, 0, + 478, 0, 917, 917, 917, 917, 485, 827, 430, 911, + 918, 810, 839, 0, 0, 826, 0, 835, 0, 1230, + 0, 0, 0, 947, 921, 921, 919, 921, 693, 486, + 529, 956, 951, 840, 828, 1002, 0, 0, 1006, 1158, + 888, 1053, 0, 807, 0, 0, 0, 0, 926, 596, + 0, 0, 0, 0, 963, 1005, 0, 0, 1232, 1232, + 1005, 0, 831, 0, 637, 942, 0, 0, 0, 0, + 825, 576, 1031, 916, 672, 658, 658, 0, 664, 1029, + 0, 0, 0, 1155, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 1046, 844, 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, 943, 943 + 961, 961 ); protected $gotoCheck = array( - 41, 41, 71, 128, 111, 64, 64, 25, 128, 8, - 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, - 57, 57, 57, 57, 57, 41, 41, 41, 41, 41, + 41, 41, 71, 64, 64, 160, 160, 160, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, 130, 130, + 8, 22, 22, 22, 22, 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, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, @@ -743,90 +748,90 @@ class Php7 extends \PhpParser\ParserAbstract 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, 41, 41, 41, 41, 41, - 41, 41, 41, 41, 41, 41, 41, 22, 22, 22, - 22, 14, 77, 77, 77, 77, 77, 77, 77, 77, - 77, 77, 26, 88, 74, 74, 99, 99, 114, 21, - 21, 99, 99, 99, 99, 99, 99, 99, 99, 99, - 99, 63, 11, 63, 14, 6, 14, 14, 14, 14, - 48, 14, 14, 14, 14, 14, 14, 23, 23, 23, - 23, 44, 14, 107, 107, 74, 74, 5, 74, 107, - 107, 107, 14, 14, 74, 74, 105, 105, 105, 74, - 74, 54, 54, 11, 74, 11, 165, 165, 152, 152, - 154, 74, 74, 152, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 161, 165, 71, 71, 71, 71, 19, - 163, 74, 71, 71, 94, 71, 71, 71, 71, 71, - 71, 8, 8, 8, 8, 71, 139, 60, 139, 74, - 71, 71, 71, 71, 139, 21, 71, 71, 71, 13, - 133, 133, 7, 7, 82, 7, 82, 82, 95, 13, - 13, 133, 62, 7, 7, 71, 7, 7, 135, 71, - 158, 158, 158, 34, 13, 13, 19, 13, 34, 13, - 45, 34, 45, 18, 18, 18, 19, 28, 153, 153, - 13, 17, 13, 153, 153, 153, 153, 153, 153, 153, - 153, 153, 153, 18, 103, 19, 19, 19, 18, 18, - 18, 18, 27, 8, 18, 18, 18, 84, 84, 84, - 8, 155, 155, 151, 151, 13, 155, 155, 155, 155, - 155, 155, 155, 155, 155, 155, 164, 164, 98, 98, - 98, 98, 160, 160, 38, 16, 16, 98, 2, 2, - 13, 8, 8, 16, 164, 36, 101, 8, 16, 8, - 90, 113, 8, 88, 88, 16, 40, 16, 16, 164, - 12, 144, 12, 16, 22, 22, 22, 141, 13, 8, - 8, 8, 116, 131, 8, 16, 87, 8, 8, 80, - 81, 47, 114, 114, 114, 47, 47, 47, -1, 47, - -1, -1, 47, 47, 47, 47, 47, 47, -1, -1, - 24, -1, 8, 114, 114, 114, 114, 24, 24, 24, - 24, 24, 24, -1, 23, 23, 23, -1, -1, 24, - 24, 24, -1, 15, 15, 15, -1, -1, 15, -1, - 114, -1, -1, -1, 13, -1, -1, 15, 22, 22, - 22, 22, 22, 22, 22, 22, 22, 22, 22, -1, - 22, -1, 78, 78, -1, -1, -1, 78, -1, 78, - 15, 78, 78, 78, -1, 78, 114, -1, 78, 114, - 114, 114, 78, 76, 76, -1, -1, 76, 76, 76, - 76, -1, 15, 15, -1, -1, -1, -1, -1, -1, + 41, 41, 41, 41, 41, 41, 41, 41, 14, 77, + 77, 77, 77, 77, 77, 77, 77, 77, 77, 25, + 102, 102, 74, 74, 116, 102, 102, 102, 102, 102, + 102, 102, 102, 102, 102, 23, 23, 23, 23, 113, + 91, 14, 26, 14, 14, 14, 14, 44, 14, 14, + 14, 14, 14, 14, 54, 54, 76, 76, 6, 14, + 76, 76, 76, 76, 74, 74, 63, 74, 63, 14, + 14, 14, 11, 74, 74, 109, 109, 5, 74, 74, + 19, 109, 109, 109, 74, 87, 87, 87, 154, 154, + 48, 74, 74, 154, 154, 154, 154, 154, 154, 154, + 154, 154, 154, 85, 85, 85, 85, 71, 71, 71, + 71, 156, 11, 74, 11, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 163, 12, 22, 12, 45, 71, + 45, 22, 22, 74, 71, 71, 71, 71, 19, 165, + 71, 71, 71, 8, 8, 8, 8, 97, 19, 60, + 13, 47, 98, 153, 153, 47, 47, 47, 71, 47, + 13, 13, 71, 47, 47, 47, 47, 47, 47, 19, + 19, 19, 162, 162, 13, 13, 62, 13, 137, 13, + 57, 57, 57, 57, 57, 28, 166, 166, 155, 155, + 13, 17, 13, 155, 155, 155, 155, 155, 155, 155, + 155, 155, 155, 166, 106, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 38, 22, 166, 27, + 101, 101, 101, 101, 8, 13, 36, 157, 157, 101, + 104, 8, 157, 157, 157, 157, 157, 157, 157, 157, + 157, 157, 81, 81, 78, 78, 21, 21, 146, 78, + 13, 78, 115, 78, 78, 78, 82, 78, 82, 82, + 82, 78, 93, 8, 8, 143, 78, 167, 167, 8, + 40, 8, 135, 135, 8, 91, 91, 2, 2, 13, + 116, 116, 116, 135, 167, 18, 18, 18, 118, 133, + 23, 8, 8, 8, 8, 23, 23, 8, 90, -1, + 8, 8, 80, 116, 116, 116, 116, 18, 141, -1, + 141, -1, 18, 18, 18, 18, 141, 34, 18, 18, + 18, 24, 34, -1, -1, 34, -1, 8, -1, 116, + -1, -1, -1, 24, 24, 24, 24, 24, 24, 8, + 24, 24, 24, 15, 15, 15, -1, -1, 15, 13, + 16, 16, -1, 21, -1, -1, -1, -1, 15, 16, + -1, -1, -1, -1, 16, 116, -1, -1, 116, 116, + 116, -1, 16, -1, 16, 16, -1, -1, -1, -1, + 16, 7, 7, 15, 7, 7, 7, -1, 7, 7, + -1, -1, -1, 16, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 15, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 98, 98 + 101, 101 ); protected $gotoBase = array( - 0, 0, -276, 0, 0, 197, 186, 285, -11, 0, - 0, -87, 90, 9, -164, 53, -51, 39, 62, -100, - 0, -133, 154, 204, 446, 3, 168, 32, 48, 0, - 0, 0, 0, 0, -34, 0, 73, 0, 77, 0, - -2, -1, 0, 0, 192, -365, 0, -232, 183, 0, - 0, 0, 0, 0, 193, 0, 0, -23, 0, 0, - 237, 0, 67, 178, -229, 0, 0, 0, 0, 0, - 0, -6, 0, 0, -199, 0, 145, -173, 41, 0, - -19, -21, -376, 0, 70, 0, 0, 16, -280, 0, - 23, 0, 0, 0, 233, 257, 0, 0, 352, -58, - 0, 50, 0, 75, 0, -45, 0, -55, 0, 0, - 0, 2, 0, 51, 171, 0, 13, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, -262, 0, - 0, 12, 0, 260, 0, 45, 0, 0, 0, -189, - 0, 10, 0, 0, 7, 0, 0, 0, 0, 0, - 0, 58, 4, 94, 213, 127, 0, 0, 27, 0, - 34, 225, 0, 231, 86, -54, 0, 0 + 0, 0, -248, 0, 0, 214, 199, 524, 7, 0, + 0, -61, -48, 16, -170, 69, 59, 45, 172, -132, + 0, 81, 18, 182, 467, 165, 188, 46, 52, 0, + 0, 0, 0, 0, 117, 0, 51, 0, 56, 0, + 8, -1, 0, 0, 185, -419, 0, -373, 218, 0, + 0, 0, 0, 0, 166, 0, 0, 287, 0, 0, + 259, 0, 89, 198, -233, 0, 0, 0, 0, 0, + 0, -6, 0, 0, -204, 0, -175, -179, -74, 0, + -2, -65, -275, 0, 0, -20, 0, -56, 0, 0, + 34, -270, 0, 32, 0, 0, 0, 266, 261, 0, + 0, 344, -66, 0, 31, 0, 82, 0, 0, -46, + 0, 0, 0, 187, 0, 49, 167, 0, 25, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -249, 0, 0, 24, 0, 392, 0, 63, 0, 0, + 0, -14, 0, 4, 0, 0, -10, 0, 0, 0, + 0, 0, 0, -5, 2, 102, 234, 141, 0, 0, + -282, 0, -29, 246, 0, 260, 42, 123, 0, 0 ); protected $gotoDefault = array( - -32768, 482, 689, 4, 690, 763, 771, 566, 498, 659, - 325, 592, 390, 1209, 856, 1033, 548, 790, 1153, 1161, - 427, 793, 313, 327, 838, 839, 840, 367, 352, 358, - 365, 613, 593, 464, 825, 421, 817, 456, 820, 420, - 829, 158, 387, 480, 833, 3, 835, 525, 866, 353, - 843, 354, 636, 845, 533, 847, 848, 361, 368, 369, - 1038, 541, 589, 860, 237, 535, 861, 351, 862, 869, - 356, 359, 645, 436, 475, 381, 1014, 576, 610, 432, - 450, 599, 598, 586, 895, 457, 434, 909, 328, 917, - 687, 1045, 605, 459, 925, 606, 932, 935, 499, 500, - 449, 947, 268, 460, 974, 628, 629, 959, 608, 972, - 444, 978, 422, 986, 1197, 425, 990, 260, 993, 269, - 386, 401, 998, 999, 8, 1004, 651, 652, 10, 265, - 479, 1028, 646, 419, 1044, 406, 1113, 1115, 527, 461, - 1133, 1132, 639, 476, 1138, 1200, 416, 501, 445, 299, - 502, 290, 316, 296, 517, 277, 317, 503, 446, 1206, - 1214, 314, 29, 1234, 1245, 323, 545, 581 + -32768, 491, 701, 4, 702, 776, 784, 575, 507, 670, + 328, 601, 394, 1228, 869, 1052, 557, 803, 1172, 1180, + 431, 806, 316, 330, 851, 852, 853, 370, 355, 361, + 368, 623, 602, 471, 838, 425, 830, 463, 833, 424, + 842, 159, 391, 489, 846, 3, 848, 534, 879, 356, + 856, 357, 647, 858, 542, 860, 861, 364, 371, 372, + 1057, 550, 598, 873, 239, 544, 874, 354, 875, 882, + 359, 362, 656, 441, 483, 384, 1033, 585, 620, 437, + 457, 608, 607, 595, 456, 638, 389, 913, 464, 439, + 927, 331, 935, 699, 1064, 615, 466, 943, 616, 950, + 953, 508, 509, 455, 965, 271, 467, 992, 639, 977, + 618, 990, 450, 996, 426, 1004, 1216, 429, 1008, 258, + 1011, 272, 390, 405, 1016, 1017, 8, 1023, 662, 663, + 10, 268, 488, 1047, 657, 423, 1063, 410, 1132, 1134, + 536, 468, 1152, 1151, 650, 484, 1157, 1219, 420, 510, + 451, 302, 511, 294, 319, 299, 526, 281, 320, 512, + 452, 1225, 1233, 317, 29, 1253, 1264, 326, 554, 590 ); protected $ruleToNonTerminal = array( @@ -837,35 +842,35 @@ class Php7 extends \PhpParser\ParserAbstract 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 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, 10, 11, - 11, 12, 12, 13, 14, 14, 15, 15, 16, 16, - 17, 17, 20, 20, 21, 22, 22, 23, 23, 4, + 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, + 6, 6, 6, 7, 7, 8, 9, 10, 10, 10, + 11, 11, 12, 12, 13, 14, 14, 15, 15, 16, + 16, 17, 17, 20, 20, 21, 22, 22, 23, 23, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 28, 28, 29, 29, 31, 33, 33, 27, 35, 35, - 32, 37, 37, 34, 34, 36, 36, 38, 38, 30, - 39, 39, 40, 42, 43, 43, 44, 45, 45, 47, - 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, + 4, 28, 28, 29, 29, 31, 33, 33, 27, 35, + 35, 32, 37, 37, 34, 34, 36, 36, 38, 38, + 30, 39, 39, 40, 42, 43, 43, 44, 45, 45, + 47, 46, 46, 46, 46, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, - 48, 48, 48, 48, 48, 48, 48, 48, 24, 24, - 67, 67, 70, 70, 69, 68, 68, 61, 73, 73, - 74, 74, 75, 75, 76, 76, 25, 25, 26, 26, - 26, 79, 79, 79, 80, 80, 83, 83, 81, 81, - 84, 85, 85, 55, 55, 63, 63, 66, 66, 66, - 65, 86, 86, 87, 56, 56, 56, 56, 88, 88, - 89, 89, 90, 90, 91, 92, 92, 93, 93, 94, - 94, 53, 53, 49, 49, 96, 51, 51, 97, 50, - 50, 52, 52, 62, 62, 62, 62, 77, 77, 100, - 100, 102, 102, 102, 102, 101, 101, 101, 104, 104, - 104, 105, 105, 107, 107, 107, 106, 106, 108, 108, - 109, 109, 109, 103, 103, 78, 78, 78, 19, 19, - 110, 110, 111, 111, 111, 111, 58, 112, 112, 113, - 59, 115, 115, 116, 116, 117, 117, 82, 118, 118, - 118, 118, 118, 123, 123, 124, 124, 125, 125, 125, - 125, 125, 126, 127, 127, 122, 122, 119, 119, 121, - 121, 129, 129, 128, 128, 128, 128, 128, 128, 120, - 130, 130, 132, 131, 131, 60, 95, 133, 133, 54, - 54, 41, 41, 41, 41, 41, 41, 41, 41, 41, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 24, + 24, 67, 67, 70, 70, 69, 68, 68, 61, 73, + 73, 74, 74, 75, 75, 76, 76, 25, 25, 26, + 26, 26, 26, 84, 84, 86, 86, 79, 79, 79, + 80, 80, 83, 83, 81, 81, 87, 88, 88, 55, + 55, 63, 63, 66, 66, 66, 65, 89, 89, 90, + 56, 56, 56, 56, 91, 91, 92, 92, 93, 93, + 94, 95, 95, 96, 96, 97, 97, 53, 53, 49, + 49, 99, 51, 51, 100, 50, 50, 52, 52, 62, + 62, 62, 62, 77, 77, 103, 103, 105, 105, 105, + 105, 104, 104, 104, 107, 107, 107, 85, 85, 109, + 109, 109, 108, 108, 110, 110, 111, 111, 111, 106, + 106, 78, 78, 78, 19, 19, 112, 112, 113, 113, + 113, 113, 58, 114, 114, 115, 59, 117, 117, 118, + 118, 119, 119, 82, 120, 120, 120, 120, 120, 120, + 125, 125, 126, 126, 127, 127, 127, 127, 127, 128, + 129, 129, 124, 124, 121, 121, 123, 123, 131, 131, + 130, 130, 130, 130, 130, 130, 122, 132, 132, 134, + 133, 133, 60, 98, 135, 135, 54, 54, 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, 41, 41, 41, 41, 41, 41, 41, @@ -874,20 +879,20 @@ class Php7 extends \PhpParser\ParserAbstract 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, 41, 41, 41, 41, 41, - 41, 41, 41, 140, 134, 134, 139, 139, 142, 143, - 143, 144, 145, 145, 145, 18, 18, 71, 71, 71, - 71, 135, 135, 135, 135, 147, 147, 136, 136, 138, - 138, 138, 141, 141, 152, 152, 152, 152, 152, 152, - 152, 152, 152, 153, 153, 99, 155, 155, 155, 155, - 137, 137, 137, 137, 137, 137, 137, 137, 57, 57, - 150, 150, 150, 150, 156, 156, 146, 146, 146, 157, - 157, 157, 157, 157, 157, 72, 72, 64, 64, 64, - 64, 114, 114, 114, 114, 160, 159, 149, 149, 149, - 149, 149, 149, 149, 148, 148, 148, 158, 158, 158, - 158, 98, 154, 162, 162, 161, 161, 163, 163, 163, - 163, 163, 163, 163, 163, 151, 151, 151, 151, 165, - 166, 164, 164, 164, 164, 164, 164, 164, 164, 167, - 167, 167, 167 + 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, + 142, 136, 136, 141, 141, 144, 145, 145, 146, 147, + 147, 147, 18, 18, 71, 71, 71, 71, 137, 137, + 137, 137, 149, 149, 138, 138, 140, 140, 140, 143, + 143, 154, 154, 154, 154, 154, 154, 154, 154, 154, + 155, 155, 102, 157, 157, 157, 157, 139, 139, 139, + 139, 139, 139, 139, 139, 57, 57, 152, 152, 152, + 152, 158, 158, 148, 148, 148, 159, 159, 159, 159, + 159, 159, 72, 72, 64, 64, 64, 64, 116, 116, + 116, 116, 162, 161, 151, 151, 151, 151, 151, 151, + 151, 150, 150, 150, 160, 160, 160, 160, 101, 156, + 164, 164, 163, 163, 165, 165, 165, 165, 165, 165, + 165, 165, 153, 153, 153, 153, 167, 168, 166, 166, + 166, 166, 166, 166, 166, 166, 169, 169, 169, 169 ); protected $ruleToLength = array( @@ -900,55 +905,55 @@ 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, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, - 1, 2, 1, 3, 4, 1, 2, 0, 1, 1, - 1, 1, 1, 3, 5, 4, 3, 4, 2, 3, - 1, 1, 7, 6, 2, 3, 1, 2, 3, 1, - 2, 3, 1, 1, 3, 1, 3, 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, 2, 1, 1, 1, - 0, 2, 1, 3, 8, 0, 4, 2, 1, 3, - 0, 1, 0, 1, 3, 1, 8, 9, 8, 7, - 6, 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, 7, 0, 2, 1, 3, 3, - 4, 1, 4, 0, 2, 5, 0, 2, 6, 0, - 2, 0, 3, 1, 2, 1, 1, 2, 0, 1, - 3, 0, 1, 1, 1, 6, 8, 6, 1, 2, - 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, - 1, 2, 1, 0, 1, 0, 2, 2, 2, 4, - 1, 3, 1, 2, 2, 3, 2, 3, 1, 1, - 2, 3, 1, 1, 3, 2, 0, 1, 5, 5, - 10, 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, 2, 3, 1, 0, - 1, 1, 3, 3, 3, 4, 1, 1, 2, 3, + 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, + 1, 1, 2, 1, 3, 4, 1, 2, 0, 1, + 1, 1, 1, 1, 3, 5, 4, 3, 4, 2, + 3, 1, 1, 7, 6, 2, 3, 1, 2, 3, + 1, 2, 3, 1, 1, 3, 1, 3, 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, 2, 1, 1, + 1, 0, 2, 1, 3, 8, 0, 4, 2, 1, + 3, 0, 1, 0, 1, 3, 1, 8, 9, 8, + 7, 6, 8, 0, 2, 0, 2, 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, + 7, 0, 2, 1, 3, 3, 4, 1, 4, 0, + 2, 5, 0, 2, 6, 0, 2, 0, 3, 1, + 2, 1, 1, 2, 0, 1, 3, 0, 1, 1, + 1, 6, 8, 6, 1, 2, 1, 1, 1, 1, + 1, 1, 3, 3, 3, 3, 1, 2, 1, 0, + 1, 0, 2, 2, 2, 4, 1, 3, 1, 2, + 2, 3, 2, 3, 1, 1, 2, 3, 1, 1, + 3, 2, 0, 1, 5, 5, 10, 3, 5, 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, 2, 3, 1, 0, 1, 1, 3, + 3, 3, 4, 1, 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, - 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, 2, 8, 9, 8, 9, 9, - 10, 9, 10, 8, 3, 2, 0, 4, 2, 1, - 3, 2, 2, 2, 4, 1, 1, 1, 1, 1, - 1, 1, 1, 3, 1, 1, 1, 0, 3, 0, - 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 3, 3, 3, 4, 1, 1, 3, - 1, 1, 1, 1, 1, 3, 2, 3, 0, 1, - 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, - 4, 4, 1, 4, 4, 0, 1, 1, 1, 3, - 3, 1, 4, 2, 2, 1, 3, 1, 4, 4, - 3, 3, 3, 3, 1, 3, 1, 1, 3, 1, - 1, 4, 1, 1, 1, 3, 1, 1, 2, 1, - 3, 4, 3, 2, 0, 2, 2, 1, 2, 1, - 1, 1, 4, 3, 3, 3, 3, 6, 3, 1, - 1, 2, 1 + 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, 2, 8, 9, 8, 9, 9, 10, 9, 10, + 8, 3, 2, 0, 4, 2, 1, 3, 2, 2, + 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, + 3, 1, 1, 1, 0, 3, 0, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 3, 3, 3, 4, 1, 1, 3, 1, 1, 1, + 1, 1, 3, 2, 3, 0, 1, 1, 3, 1, + 1, 1, 1, 1, 3, 1, 1, 4, 4, 1, + 4, 4, 0, 1, 1, 1, 3, 3, 1, 4, + 2, 2, 1, 3, 1, 4, 4, 3, 3, 3, + 3, 1, 3, 1, 1, 3, 1, 1, 4, 1, + 1, 1, 3, 1, 1, 2, 1, 3, 4, 3, + 2, 0, 2, 2, 1, 2, 1, 1, 1, 4, + 3, 3, 3, 3, 6, 3, 1, 1, 2, 1 ); protected function initReduceCallbacks() { @@ -1201,7 +1206,7 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = $this->semStack[$stackPos]; }, 82 => function ($stackPos) { - $this->semValue = new Node\Identifier($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos]; }, 83 => function ($stackPos) { $this->semValue = new Node\Identifier($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); @@ -1213,7 +1218,7 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = new Node\Identifier($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 86 => function ($stackPos) { - $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Node\Identifier($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 87 => function ($stackPos) { $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); @@ -1228,16 +1233,16 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 91 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 92 => function ($stackPos) { - $this->semValue = new Name(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 93 => function ($stackPos) { - $this->semValue = new Expr\Variable(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Name(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 94 => function ($stackPos) { - /* nothing */ + $this->semValue = new Expr\Variable(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 95 => function ($stackPos) { /* nothing */ @@ -1246,40 +1251,40 @@ class Php7 extends \PhpParser\ParserAbstract /* nothing */ }, 97 => function ($stackPos) { - $this->emitError(new Error('A trailing comma is not allowed here', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes)); + /* nothing */ }, 98 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; + $this->emitError(new Error('A trailing comma is not allowed here', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes)); }, 99 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos]; }, 100 => function ($stackPos) { - $this->semValue = new Node\Attribute($this->semStack[$stackPos-(1-1)], [], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos]; }, 101 => function ($stackPos) { - $this->semValue = new Node\Attribute($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Node\Attribute($this->semStack[$stackPos-(1-1)], [], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 102 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = new Node\Attribute($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 103 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 104 => function ($stackPos) { - $this->semValue = new Node\AttributeGroup($this->semStack[$stackPos-(4-2)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); - }, - 105 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, + 104 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 105 => function ($stackPos) { + $this->semValue = new Node\AttributeGroup($this->semStack[$stackPos-(4-2)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, 106 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 107 => function ($stackPos) { - $this->semValue = []; + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 108 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = []; }, 109 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; @@ -1291,128 +1296,128 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 112 => function ($stackPos) { - $this->semValue = new Stmt\HaltCompiler($this->lexer->handleHaltCompiler(), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 113 => function ($stackPos) { + $this->semValue = new Stmt\HaltCompiler($this->lexer->handleHaltCompiler(), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 114 => 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); }, - 114 => function ($stackPos) { + 115 => 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); }, - 115 => function ($stackPos) { + 116 => 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); }, - 116 => function ($stackPos) { + 117 => function ($stackPos) { $this->semValue = new Stmt\Use_($this->semStack[$stackPos-(3-2)], Stmt\Use_::TYPE_NORMAL, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 117 => function ($stackPos) { + 118 => function ($stackPos) { $this->semValue = new Stmt\Use_($this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-2)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 118 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, 119 => function ($stackPos) { - $this->semValue = new Stmt\Const_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 120 => function ($stackPos) { - $this->semValue = Stmt\Use_::TYPE_FUNCTION; + $this->semValue = new Stmt\Const_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 121 => function ($stackPos) { - $this->semValue = Stmt\Use_::TYPE_CONSTANT; + $this->semValue = Stmt\Use_::TYPE_FUNCTION; }, 122 => function ($stackPos) { - $this->semValue = new Stmt\GroupUse($this->semStack[$stackPos-(7-3)], $this->semStack[$stackPos-(7-6)], $this->semStack[$stackPos-(7-2)], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); + $this->semValue = Stmt\Use_::TYPE_CONSTANT; }, 123 => function ($stackPos) { - $this->semValue = new Stmt\GroupUse($this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-5)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + $this->semValue = new Stmt\GroupUse($this->semStack[$stackPos-(7-3)], $this->semStack[$stackPos-(7-6)], $this->semStack[$stackPos-(7-2)], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); }, 124 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = new Stmt\GroupUse($this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-5)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); }, 125 => 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)]; }, 126 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 127 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 128 => 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)]; }, 129 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 130 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 131 => 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)]; }, 132 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 133 => 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)); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 134 => 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)); - }, - 135 => 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)); }, - 136 => function ($stackPos) { + 135 => 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)); }, + 136 => 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)); + }, 137 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; $this->semValue->type = Stmt\Use_::TYPE_NORMAL; + $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)); }, 138 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; $this->semValue->type = $this->semStack[$stackPos-(2-1)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; $this->semValue->type = Stmt\Use_::TYPE_NORMAL; }, 139 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = $this->semStack[$stackPos-(2-2)]; $this->semValue->type = $this->semStack[$stackPos-(2-1)]; }, 140 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 141 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 142 => function ($stackPos) { - $this->semValue = new Node\Const_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); - }, - 143 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 144 => function ($stackPos) { + 141 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, - 145 => function ($stackPos) { + 142 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, - 146 => function ($stackPos) { + 143 => function ($stackPos) { $this->semValue = new Node\Const_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, + 144 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 145 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 146 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, 147 => 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)]; }; + $this->semValue = new Node\Const_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 148 => function ($stackPos) { - $this->semValue = array(); + 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)]; }; }, 149 => function ($stackPos) { - $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop($this->createCommentNopAttributes($startAttributes['comments'])); } else { $nop = null; }; - if ($nop !== null) { $this->semStack[$stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = array(); }, 150 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop($this->createCommentNopAttributes($startAttributes['comments'])); } else { $nop = null; }; + if ($nop !== null) { $this->semStack[$stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 151 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; @@ -1421,9 +1426,12 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 153 => function ($stackPos) { - throw new Error('__HALT_COMPILER() can only be used from the outermost scope', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 154 => function ($stackPos) { + throw new Error('__HALT_COMPILER() can only be used from the outermost scope', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 155 => 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', []))); }; @@ -1433,46 +1441,46 @@ class Php7 extends \PhpParser\ParserAbstract } }, - 155 => function ($stackPos) { + 156 => 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); }, - 156 => function ($stackPos) { + 157 => 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); }, - 157 => function ($stackPos) { + 158 => function ($stackPos) { $this->semValue = new Stmt\While_($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 158 => function ($stackPos) { + 159 => 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); }, - 159 => function ($stackPos) { + 160 => 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); }, - 160 => function ($stackPos) { + 161 => function ($stackPos) { $this->semValue = new Stmt\Switch_($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 161 => function ($stackPos) { + 162 => function ($stackPos) { $this->semValue = new Stmt\Break_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 162 => function ($stackPos) { + 163 => function ($stackPos) { $this->semValue = new Stmt\Continue_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 163 => function ($stackPos) { + 164 => function ($stackPos) { $this->semValue = new Stmt\Return_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 164 => function ($stackPos) { + 165 => function ($stackPos) { $this->semValue = new Stmt\Global_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 165 => function ($stackPos) { + 166 => function ($stackPos) { $this->semValue = new Stmt\Static_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 166 => function ($stackPos) { + 167 => function ($stackPos) { $this->semValue = new Stmt\Echo_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 167 => function ($stackPos) { + 168 => function ($stackPos) { $this->semValue = new Stmt\InlineHTML($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 168 => function ($stackPos) { + 169 => function ($stackPos) { $e = $this->semStack[$stackPos-(2-1)]; if ($e instanceof Expr\Throw_) { @@ -1484,1013 +1492,1011 @@ class Php7 extends \PhpParser\ParserAbstract } }, - 169 => function ($stackPos) { + 170 => function ($stackPos) { $this->semValue = new Stmt\Unset_($this->semStack[$stackPos-(5-3)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 170 => function ($stackPos) { + 171 => 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); }, - 171 => function ($stackPos) { + 172 => 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); }, - 172 => function ($stackPos) { + 173 => 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); }, - 173 => function ($stackPos) { + 174 => function ($stackPos) { $this->semValue = new Stmt\Declare_($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-5)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, - 174 => function ($stackPos) { + 175 => 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); }, - 175 => function ($stackPos) { + 176 => function ($stackPos) { $this->semValue = new Stmt\Goto_($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 176 => function ($stackPos) { + 177 => function ($stackPos) { $this->semValue = new Stmt\Label($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 177 => function ($stackPos) { + 178 => function ($stackPos) { $this->semValue = array(); /* means: no statement */ }, - 178 => function ($stackPos) { + 179 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 179 => function ($stackPos) { + 180 => 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 */ }, - 180 => function ($stackPos) { + 181 => function ($stackPos) { $this->semValue = array(); }, - 181 => function ($stackPos) { + 182 => function ($stackPos) { $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, - 182 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, 183 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 184 => 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); - }, - 185 => function ($stackPos) { - $this->semValue = null; - }, - 186 => function ($stackPos) { - $this->semValue = new Stmt\Finally_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); - }, - 187 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 188 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 189 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, + 185 => 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); + }, + 186 => function ($stackPos) { + $this->semValue = null; + }, + 187 => function ($stackPos) { + $this->semValue = new Stmt\Finally_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 188 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 189 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, 190 => function ($stackPos) { - $this->semValue = false; + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 191 => function ($stackPos) { - $this->semValue = true; - }, - 192 => function ($stackPos) { $this->semValue = false; }, - 193 => function ($stackPos) { + 192 => function ($stackPos) { $this->semValue = true; }, + 193 => function ($stackPos) { + $this->semValue = false; + }, 194 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = true; }, 195 => function ($stackPos) { - $this->semValue = []; + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 196 => 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)], 'attrGroups' => []], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); + $this->semValue = []; }, 197 => function ($stackPos) { - $this->semValue = new Stmt\Function_($this->semStack[$stackPos-(9-4)], ['byRef' => $this->semStack[$stackPos-(9-3)], 'params' => $this->semStack[$stackPos-(9-6)], 'returnType' => $this->semStack[$stackPos-(9-8)], 'stmts' => $this->semStack[$stackPos-(9-9)], 'attrGroups' => $this->semStack[$stackPos-(9-1)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); + $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)], 'attrGroups' => []], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, 198 => function ($stackPos) { + $this->semValue = new Stmt\Function_($this->semStack[$stackPos-(9-4)], ['byRef' => $this->semStack[$stackPos-(9-3)], 'params' => $this->semStack[$stackPos-(9-6)], 'returnType' => $this->semStack[$stackPos-(9-8)], 'stmts' => $this->semStack[$stackPos-(9-9)], 'attrGroups' => $this->semStack[$stackPos-(9-1)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); + }, + 199 => function ($stackPos) { $this->semValue = new Stmt\Class_($this->semStack[$stackPos-(8-3)], ['type' => $this->semStack[$stackPos-(8-2)], 'extends' => $this->semStack[$stackPos-(8-4)], 'implements' => $this->semStack[$stackPos-(8-5)], 'stmts' => $this->semStack[$stackPos-(8-7)], 'attrGroups' => $this->semStack[$stackPos-(8-1)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); $this->checkClass($this->semValue, $stackPos-(8-3)); }, - 199 => function ($stackPos) { + 200 => function ($stackPos) { $this->semValue = new Stmt\Interface_($this->semStack[$stackPos-(7-3)], ['extends' => $this->semStack[$stackPos-(7-4)], 'stmts' => $this->semStack[$stackPos-(7-6)], 'attrGroups' => $this->semStack[$stackPos-(7-1)]], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); $this->checkInterface($this->semValue, $stackPos-(7-3)); }, - 200 => function ($stackPos) { + 201 => function ($stackPos) { $this->semValue = new Stmt\Trait_($this->semStack[$stackPos-(6-3)], ['stmts' => $this->semStack[$stackPos-(6-5)], 'attrGroups' => $this->semStack[$stackPos-(6-1)]], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); }, - 201 => function ($stackPos) { - $this->semValue = 0; - }, 202 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; + $this->semValue = new Stmt\Enum_($this->semStack[$stackPos-(8-3)], ['scalarType' => $this->semStack[$stackPos-(8-4)], 'implements' => $this->semStack[$stackPos-(8-5)], 'stmts' => $this->semStack[$stackPos-(8-7)], 'attrGroups' => $this->semStack[$stackPos-(8-1)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); + $this->checkEnum($this->semValue, $stackPos-(8-3)); }, 203 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_FINAL; + $this->semValue = null; }, 204 => function ($stackPos) { - $this->semValue = null; + $this->semValue = $this->semStack[$stackPos-(2-2)]; }, 205 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; + $this->semValue = null; }, 206 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = $this->semStack[$stackPos-(2-2)]; }, 207 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; - }, - 208 => function ($stackPos) { - $this->semValue = array(); - }, - 209 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; - }, - 210 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 211 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 212 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 213 => function ($stackPos) { - $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); - }, - 214 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; - }, - 215 => function ($stackPos) { - $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); - }, - 216 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; - }, - 217 => function ($stackPos) { - $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); - }, - 218 => function ($stackPos) { - $this->semValue = null; - }, - 219 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; - }, - 220 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 221 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 222 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 223 => function ($stackPos) { - $this->semValue = new Stmt\DeclareDeclare($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); - }, - 224 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; - }, - 225 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-3)]; - }, - 226 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; - }, - 227 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(5-3)]; - }, - 228 => function ($stackPos) { - $this->semValue = array(); - }, - 229 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 230 => function ($stackPos) { - $this->semValue = new Stmt\Case_($this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); - }, - 231 => function ($stackPos) { - $this->semValue = new Stmt\Case_(null, $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); - }, - 232 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; - }, - 233 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; - }, - 234 => function ($stackPos) { - $this->semValue = new Expr\Match_($this->semStack[$stackPos-(7-3)], $this->semStack[$stackPos-(7-6)], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); - }, - 235 => function ($stackPos) { - $this->semValue = []; - }, - 236 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 237 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 238 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 239 => function ($stackPos) { - $this->semValue = new Node\MatchArm($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); - }, - 240 => function ($stackPos) { - $this->semValue = new Node\MatchArm(null, $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); - }, - 241 => function ($stackPos) { - $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); - }, - 242 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; - }, - 243 => function ($stackPos) { - $this->semValue = array(); - }, - 244 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 245 => 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); - }, - 246 => function ($stackPos) { - $this->semValue = array(); - }, - 247 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 248 => function ($stackPos) { - $this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); - }, - 249 => function ($stackPos) { - $this->semValue = null; - }, - 250 => 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); - }, - 251 => function ($stackPos) { - $this->semValue = null; - }, - 252 => function ($stackPos) { - $this->semValue = new Stmt\Else_($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); - }, - 253 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)], false); - }, - 254 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(2-2)], true); - }, - 255 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)], false); - }, - 256 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)], false); - }, - 257 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 258 => function ($stackPos) { - $this->semValue = array(); - }, - 259 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 260 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 261 => function ($stackPos) { $this->semValue = 0; }, + 208 => function ($stackPos) { + $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; + }, + 209 => function ($stackPos) { + $this->semValue = Stmt\Class_::MODIFIER_FINAL; + }, + 210 => function ($stackPos) { + $this->semValue = null; + }, + 211 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-2)]; + }, + 212 => function ($stackPos) { + $this->semValue = array(); + }, + 213 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-2)]; + }, + 214 => function ($stackPos) { + $this->semValue = array(); + }, + 215 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-2)]; + }, + 216 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 217 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 218 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 219 => function ($stackPos) { + $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); + }, + 220 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(4-2)]; + }, + 221 => function ($stackPos) { + $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); + }, + 222 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(4-2)]; + }, + 223 => function ($stackPos) { + $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); + }, + 224 => function ($stackPos) { + $this->semValue = null; + }, + 225 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(4-2)]; + }, + 226 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 227 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 228 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 229 => function ($stackPos) { + $this->semValue = new Stmt\DeclareDeclare($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 230 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(3-2)]; + }, + 231 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(4-3)]; + }, + 232 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(4-2)]; + }, + 233 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(5-3)]; + }, + 234 => function ($stackPos) { + $this->semValue = array(); + }, + 235 => function ($stackPos) { + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 236 => function ($stackPos) { + $this->semValue = new Stmt\Case_($this->semStack[$stackPos-(4-2)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 237 => function ($stackPos) { + $this->semValue = new Stmt\Case_(null, $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 238 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos]; + }, + 239 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos]; + }, + 240 => function ($stackPos) { + $this->semValue = new Expr\Match_($this->semStack[$stackPos-(7-3)], $this->semStack[$stackPos-(7-6)], $this->startAttributeStack[$stackPos-(7-1)] + $this->endAttributes); + }, + 241 => function ($stackPos) { + $this->semValue = []; + }, + 242 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 243 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 244 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 245 => function ($stackPos) { + $this->semValue = new Node\MatchArm($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 246 => function ($stackPos) { + $this->semValue = new Node\MatchArm(null, $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 247 => function ($stackPos) { + $this->semValue = is_array($this->semStack[$stackPos-(1-1)]) ? $this->semStack[$stackPos-(1-1)] : array($this->semStack[$stackPos-(1-1)]); + }, + 248 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(4-2)]; + }, + 249 => function ($stackPos) { + $this->semValue = array(); + }, + 250 => function ($stackPos) { + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 251 => 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); + }, + 252 => function ($stackPos) { + $this->semValue = array(); + }, + 253 => function ($stackPos) { + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 254 => function ($stackPos) { + $this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + }, + 255 => function ($stackPos) { + $this->semValue = null; + }, + 256 => 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); + }, + 257 => function ($stackPos) { + $this->semValue = null; + }, + 258 => function ($stackPos) { + $this->semValue = new Stmt\Else_($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 259 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)], false); + }, + 260 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(2-2)], true); + }, + 261 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)], false); + }, 262 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_PUBLIC; + $this->semValue = array($this->semStack[$stackPos-(1-1)], false); }, 263 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_PROTECTED; + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 264 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_PRIVATE; + $this->semValue = array(); }, 265 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 266 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 267 => function ($stackPos) { + $this->semValue = 0; + }, + 268 => function ($stackPos) { + $this->semValue = Stmt\Class_::MODIFIER_PUBLIC; + }, + 269 => function ($stackPos) { + $this->semValue = Stmt\Class_::MODIFIER_PROTECTED; + }, + 270 => function ($stackPos) { + $this->semValue = Stmt\Class_::MODIFIER_PRIVATE; + }, + 271 => function ($stackPos) { $this->semValue = new Node\Param($this->semStack[$stackPos-(6-6)], null, $this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-4)], $this->semStack[$stackPos-(6-5)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes, $this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-1)]); $this->checkParam($this->semValue); }, - 266 => function ($stackPos) { + 272 => function ($stackPos) { $this->semValue = new Node\Param($this->semStack[$stackPos-(8-6)], $this->semStack[$stackPos-(8-8)], $this->semStack[$stackPos-(8-3)], $this->semStack[$stackPos-(8-4)], $this->semStack[$stackPos-(8-5)], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes, $this->semStack[$stackPos-(8-2)], $this->semStack[$stackPos-(8-1)]); $this->checkParam($this->semValue); }, - 267 => function ($stackPos) { + 273 => function ($stackPos) { $this->semValue = new Node\Param(new Expr\Error($this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes), null, $this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-4)], $this->semStack[$stackPos-(6-5)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes, $this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-1)]); }, - 268 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 269 => function ($stackPos) { - $this->semValue = new Node\NullableType($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); - }, - 270 => function ($stackPos) { - $this->semValue = new Node\UnionType($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 271 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 272 => function ($stackPos) { - $this->semValue = new Node\Name('static', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 273 => function ($stackPos) { - $this->semValue = $this->handleBuiltinTypes($this->semStack[$stackPos-(1-1)]); - }, 274 => function ($stackPos) { - $this->semValue = new Node\Identifier('array', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 275 => function ($stackPos) { - $this->semValue = new Node\Identifier('callable', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 276 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); - }, - 277 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 278 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); - }, - 279 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 280 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 281 => function ($stackPos) { $this->semValue = new Node\NullableType($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 282 => function ($stackPos) { + 276 => function ($stackPos) { $this->semValue = new Node\UnionType($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 283 => function ($stackPos) { - $this->semValue = null; - }, - 284 => function ($stackPos) { + 277 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 285 => function ($stackPos) { - $this->semValue = null; + 278 => function ($stackPos) { + $this->semValue = new Node\Name('static', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 286 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-2)]; + 279 => function ($stackPos) { + $this->semValue = $this->handleBuiltinTypes($this->semStack[$stackPos-(1-1)]); }, - 287 => function ($stackPos) { - $this->semValue = null; + 280 => function ($stackPos) { + $this->semValue = new Node\Identifier('array', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 288 => function ($stackPos) { - $this->semValue = array(); + 281 => function ($stackPos) { + $this->semValue = new Node\Identifier('callable', $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 289 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-2)]; + 282 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); }, - 290 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 291 => function ($stackPos) { + 283 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, + 284 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); + }, + 285 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 286 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 287 => function ($stackPos) { + $this->semValue = new Node\NullableType($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 288 => function ($stackPos) { + $this->semValue = new Node\UnionType($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 289 => function ($stackPos) { + $this->semValue = null; + }, + 290 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 291 => function ($stackPos) { + $this->semValue = null; + }, 292 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(1-1)], false, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(2-2)]; }, 293 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], true, false, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = null; }, 294 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], false, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = array(); }, 295 => function ($stackPos) { - $this->semValue = new Node\Arg($this->semStack[$stackPos-(3-3)], false, false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes, $this->semStack[$stackPos-(3-1)]); + $this->semValue = $this->semStack[$stackPos-(4-2)]; }, 296 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 297 => function ($stackPos) { $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 298 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = new Node\Arg($this->semStack[$stackPos-(1-1)], false, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 299 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], true, false, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 300 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = new Node\Arg($this->semStack[$stackPos-(2-2)], false, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 301 => 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-(3-3)], false, false, $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes, $this->semStack[$stackPos-(3-1)]); }, 302 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 303 => 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)]; }, 304 => 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)]); }, 305 => 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 = $this->semStack[$stackPos-(1-1)]; }, 306 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 307 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 308 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 309 => function ($stackPos) { + $this->semValue = new Stmt\StaticVar($this->semStack[$stackPos-(1-1)], null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 310 => function ($stackPos) { + $this->semValue = new Stmt\StaticVar($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 311 => 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)]; } + }, + 312 => function ($stackPos) { + $this->semValue = array(); + }, + 313 => function ($stackPos) { $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop($this->createCommentNopAttributes($startAttributes['comments'])); } else { $nop = null; }; if ($nop !== null) { $this->semStack[$stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 308 => function ($stackPos) { + 314 => function ($stackPos) { $this->semValue = new Stmt\Property($this->semStack[$stackPos-(5-2)], $this->semStack[$stackPos-(5-4)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes, $this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-1)]); $this->checkProperty($this->semValue, $stackPos-(5-2)); }, - 309 => function ($stackPos) { + 315 => function ($stackPos) { $this->semValue = new Stmt\ClassConst($this->semStack[$stackPos-(5-4)], $this->semStack[$stackPos-(5-2)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes, $this->semStack[$stackPos-(5-1)]); $this->checkClassConst($this->semValue, $stackPos-(5-2)); }, - 310 => function ($stackPos) { + 316 => function ($stackPos) { $this->semValue = new Stmt\ClassMethod($this->semStack[$stackPos-(10-5)], ['type' => $this->semStack[$stackPos-(10-2)], 'byRef' => $this->semStack[$stackPos-(10-4)], 'params' => $this->semStack[$stackPos-(10-7)], 'returnType' => $this->semStack[$stackPos-(10-9)], 'stmts' => $this->semStack[$stackPos-(10-10)], 'attrGroups' => $this->semStack[$stackPos-(10-1)]], $this->startAttributeStack[$stackPos-(10-1)] + $this->endAttributes); $this->checkClassMethod($this->semValue, $stackPos-(10-2)); }, - 311 => function ($stackPos) { + 317 => function ($stackPos) { $this->semValue = new Stmt\TraitUse($this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 312 => function ($stackPos) { - $this->semValue = null; /* will be skipped */ - }, - 313 => function ($stackPos) { - $this->semValue = array(); - }, - 314 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; - }, - 315 => function ($stackPos) { - $this->semValue = array(); - }, - 316 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 317 => 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); - }, 318 => 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); + $this->semValue = new Stmt\EnumCase($this->semStack[$stackPos-(5-3)], $this->semStack[$stackPos-(5-4)], $this->semStack[$stackPos-(5-1)], $this->startAttributeStack[$stackPos-(5-1)] + $this->endAttributes); }, 319 => 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); + $this->semValue = null; /* will be skipped */ }, 320 => 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); + $this->semValue = array(); }, 321 => 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); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 322 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); + $this->semValue = array(); }, 323 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 324 => function ($stackPos) { - $this->semValue = array(null, $this->semStack[$stackPos-(1-1)]); + $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); }, 325 => function ($stackPos) { - $this->semValue = null; + $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); }, 326 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $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); }, 327 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $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); }, 328 => function ($stackPos) { - $this->semValue = 0; + $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); }, 329 => function ($stackPos) { - $this->semValue = 0; + $this->semValue = array($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)]); }, 330 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 331 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = array(null, $this->semStack[$stackPos-(1-1)]); }, 332 => 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)]; + $this->semValue = null; }, 333 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_PUBLIC; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 334 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_PROTECTED; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 335 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_PRIVATE; + $this->semValue = 0; }, 336 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_STATIC; + $this->semValue = 0; }, 337 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 338 => function ($stackPos) { - $this->semValue = Stmt\Class_::MODIFIER_FINAL; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 339 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $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)]; }, 340 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); + $this->semValue = Stmt\Class_::MODIFIER_PUBLIC; }, 341 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + $this->semValue = Stmt\Class_::MODIFIER_PROTECTED; }, 342 => function ($stackPos) { - $this->semValue = new Node\VarLikeIdentifier(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = Stmt\Class_::MODIFIER_PRIVATE; }, 343 => function ($stackPos) { - $this->semValue = new Stmt\PropertyProperty($this->semStack[$stackPos-(1-1)], null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = Stmt\Class_::MODIFIER_STATIC; }, 344 => function ($stackPos) { - $this->semValue = new Stmt\PropertyProperty($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT; }, 345 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; + $this->semValue = Stmt\Class_::MODIFIER_FINAL; }, 346 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 347 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 348 => function ($stackPos) { $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, + 348 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, 349 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = new Node\VarLikeIdentifier(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 350 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Stmt\PropertyProperty($this->semStack[$stackPos-(1-1)], null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 351 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Stmt\PropertyProperty($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 352 => function ($stackPos) { - $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 353 => function ($stackPos) { - $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 354 => function ($stackPos) { - $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; }, 355 => function ($stackPos) { - $this->semValue = new Expr\AssignRef($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 356 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = array(); }, 357 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 358 => function ($stackPos) { - $this->semValue = new Expr\Clone_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 359 => 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); + $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 360 => 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); + $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 361 => 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); + $this->semValue = new Expr\Assign($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 362 => 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); + $this->semValue = new Expr\AssignRef($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 363 => 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); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 364 => 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); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 365 => 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); + $this->semValue = new Expr\Clone_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 366 => 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); + $this->semValue = new Expr\AssignOp\Plus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 367 => 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); + $this->semValue = new Expr\AssignOp\Minus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 368 => 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); + $this->semValue = new Expr\AssignOp\Mul($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 369 => 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); + $this->semValue = new Expr\AssignOp\Div($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 370 => 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); + $this->semValue = new Expr\AssignOp\Concat($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 371 => 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); + $this->semValue = new Expr\AssignOp\Mod($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 372 => function ($stackPos) { - $this->semValue = new Expr\PostInc($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\AssignOp\BitwiseAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 373 => function ($stackPos) { - $this->semValue = new Expr\PreInc($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\AssignOp\BitwiseOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 374 => function ($stackPos) { - $this->semValue = new Expr\PostDec($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\AssignOp\BitwiseXor($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 375 => function ($stackPos) { - $this->semValue = new Expr\PreDec($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\AssignOp\ShiftLeft($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 376 => 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); + $this->semValue = new Expr\AssignOp\ShiftRight($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 377 => 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); + $this->semValue = new Expr\AssignOp\Pow($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 378 => 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); + $this->semValue = new Expr\AssignOp\Coalesce($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 379 => 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); + $this->semValue = new Expr\PostInc($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 380 => 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); + $this->semValue = new Expr\PreInc($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 381 => 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); + $this->semValue = new Expr\PostDec($this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 382 => 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); + $this->semValue = new Expr\PreDec($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 383 => 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); + $this->semValue = new Expr\BinaryOp\BooleanOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 384 => 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); + $this->semValue = new Expr\BinaryOp\BooleanAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 385 => 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); + $this->semValue = new Expr\BinaryOp\LogicalOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 386 => 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); + $this->semValue = new Expr\BinaryOp\LogicalAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 387 => 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); + $this->semValue = new Expr\BinaryOp\LogicalXor($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 388 => 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); + $this->semValue = new Expr\BinaryOp\BitwiseOr($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 389 => 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); + $this->semValue = new Expr\BinaryOp\BitwiseAnd($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 390 => 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); + $this->semValue = new Expr\BinaryOp\BitwiseXor($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 391 => 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); + $this->semValue = new Expr\BinaryOp\Concat($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 392 => 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); + $this->semValue = new Expr\BinaryOp\Plus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 393 => function ($stackPos) { - $this->semValue = new Expr\UnaryPlus($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Minus($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 394 => function ($stackPos) { - $this->semValue = new Expr\UnaryMinus($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Mul($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 395 => function ($stackPos) { - $this->semValue = new Expr\BooleanNot($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Div($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 396 => function ($stackPos) { - $this->semValue = new Expr\BitwiseNot($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Mod($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 397 => 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); + $this->semValue = new Expr\BinaryOp\ShiftLeft($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 398 => 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); + $this->semValue = new Expr\BinaryOp\ShiftRight($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 399 => 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); + $this->semValue = new Expr\BinaryOp\Pow($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 400 => 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); + $this->semValue = new Expr\UnaryPlus($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 401 => 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); + $this->semValue = new Expr\UnaryMinus($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 402 => 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); + $this->semValue = new Expr\BooleanNot($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 403 => 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); + $this->semValue = new Expr\BitwiseNot($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 404 => 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); + $this->semValue = new Expr\BinaryOp\Identical($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 405 => 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); + $this->semValue = new Expr\BinaryOp\NotIdentical($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 406 => function ($stackPos) { - $this->semValue = new Expr\Instanceof_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Equal($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 407 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = new Expr\BinaryOp\NotEqual($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 408 => 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); + $this->semValue = new Expr\BinaryOp\Spaceship($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 409 => 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); + $this->semValue = new Expr\BinaryOp\Smaller($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 410 => 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); + $this->semValue = new Expr\BinaryOp\SmallerOrEqual($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 411 => function ($stackPos) { - $this->semValue = new Expr\Isset_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Greater($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 412 => function ($stackPos) { - $this->semValue = new Expr\Empty_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\GreaterOrEqual($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 413 => function ($stackPos) { - $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\Instanceof_($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 414 => function ($stackPos) { - $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE_ONCE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 415 => function ($stackPos) { - $this->semValue = new Expr\Eval_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $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); }, 416 => function ($stackPos) { - $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\Ternary($this->semStack[$stackPos-(4-1)], null, $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 417 => function ($stackPos) { - $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE_ONCE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\BinaryOp\Coalesce($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 418 => function ($stackPos) { - $this->semValue = new Expr\Cast\Int_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\Isset_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 419 => function ($stackPos) { + $this->semValue = new Expr\Empty_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 420 => function ($stackPos) { + $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 421 => function ($stackPos) { + $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE_ONCE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 422 => function ($stackPos) { + $this->semValue = new Expr\Eval_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 423 => function ($stackPos) { + $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 424 => function ($stackPos) { + $this->semValue = new Expr\Include_($this->semStack[$stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE_ONCE, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 425 => function ($stackPos) { + $this->semValue = new Expr\Cast\Int_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 426 => 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); }, - 420 => function ($stackPos) { + 427 => function ($stackPos) { $this->semValue = new Expr\Cast\String_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 421 => function ($stackPos) { + 428 => function ($stackPos) { $this->semValue = new Expr\Cast\Array_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 422 => function ($stackPos) { + 429 => function ($stackPos) { $this->semValue = new Expr\Cast\Object_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 423 => function ($stackPos) { + 430 => function ($stackPos) { $this->semValue = new Expr\Cast\Bool_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 424 => function ($stackPos) { + 431 => function ($stackPos) { $this->semValue = new Expr\Cast\Unset_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 425 => function ($stackPos) { + 432 => 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); }, - 426 => function ($stackPos) { + 433 => function ($stackPos) { $this->semValue = new Expr\ErrorSuppress($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 427 => function ($stackPos) { + 434 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 428 => function ($stackPos) { + 435 => function ($stackPos) { $this->semValue = new Expr\ShellExec($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 429 => function ($stackPos) { + 436 => function ($stackPos) { $this->semValue = new Expr\Print_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 430 => function ($stackPos) { + 437 => function ($stackPos) { $this->semValue = new Expr\Yield_(null, null, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, - 431 => function ($stackPos) { + 438 => function ($stackPos) { $this->semValue = new Expr\Yield_($this->semStack[$stackPos-(2-2)], null, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 432 => function ($stackPos) { + 439 => function ($stackPos) { $this->semValue = new Expr\Yield_($this->semStack[$stackPos-(4-4)], $this->semStack[$stackPos-(4-2)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 433 => function ($stackPos) { + 440 => function ($stackPos) { $this->semValue = new Expr\YieldFrom($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 434 => function ($stackPos) { + 441 => function ($stackPos) { $this->semValue = new Expr\Throw_($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 435 => function ($stackPos) { + 442 => 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)], 'attrGroups' => []], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, - 436 => function ($stackPos) { + 443 => 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)], 'attrGroups' => []], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 437 => function ($stackPos) { + 444 => 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)], 'attrGroups' => []], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes); }, - 438 => function ($stackPos) { + 445 => 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)], 'attrGroups' => []], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 439 => function ($stackPos) { + 446 => function ($stackPos) { $this->semValue = new Expr\ArrowFunction(['static' => false, 'byRef' => $this->semStack[$stackPos-(9-3)], 'params' => $this->semStack[$stackPos-(9-5)], 'returnType' => $this->semStack[$stackPos-(9-7)], 'expr' => $this->semStack[$stackPos-(9-9)], 'attrGroups' => $this->semStack[$stackPos-(9-1)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 440 => function ($stackPos) { + 447 => function ($stackPos) { $this->semValue = new Expr\ArrowFunction(['static' => true, 'byRef' => $this->semStack[$stackPos-(10-4)], 'params' => $this->semStack[$stackPos-(10-6)], 'returnType' => $this->semStack[$stackPos-(10-8)], 'expr' => $this->semStack[$stackPos-(10-10)], 'attrGroups' => $this->semStack[$stackPos-(10-1)]], $this->startAttributeStack[$stackPos-(10-1)] + $this->endAttributes); }, - 441 => function ($stackPos) { + 448 => function ($stackPos) { $this->semValue = new Expr\Closure(['static' => false, '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)], 'attrGroups' => $this->semStack[$stackPos-(9-1)]], $this->startAttributeStack[$stackPos-(9-1)] + $this->endAttributes); }, - 442 => function ($stackPos) { + 449 => function ($stackPos) { $this->semValue = new Expr\Closure(['static' => true, 'byRef' => $this->semStack[$stackPos-(10-4)], 'params' => $this->semStack[$stackPos-(10-6)], 'uses' => $this->semStack[$stackPos-(10-8)], 'returnType' => $this->semStack[$stackPos-(10-9)], 'stmts' => $this->semStack[$stackPos-(10-10)], 'attrGroups' => $this->semStack[$stackPos-(10-1)]], $this->startAttributeStack[$stackPos-(10-1)] + $this->endAttributes); }, - 443 => function ($stackPos) { + 450 => function ($stackPos) { $this->semValue = array(new Stmt\Class_(null, ['type' => 0, 'extends' => $this->semStack[$stackPos-(8-4)], 'implements' => $this->semStack[$stackPos-(8-5)], 'stmts' => $this->semStack[$stackPos-(8-7)], 'attrGroups' => $this->semStack[$stackPos-(8-1)]], $this->startAttributeStack[$stackPos-(8-1)] + $this->endAttributes), $this->semStack[$stackPos-(8-3)]); $this->checkClass($this->semValue[0], -1); }, - 444 => function ($stackPos) { + 451 => function ($stackPos) { $this->semValue = new Expr\New_($this->semStack[$stackPos-(3-2)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 445 => function ($stackPos) { + 452 => function ($stackPos) { list($class, $ctorArgs) = $this->semStack[$stackPos-(2-2)]; $this->semValue = new Expr\New_($class, $ctorArgs, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, - 446 => function ($stackPos) { - $this->semValue = array(); - }, - 447 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(4-3)]; - }, - 448 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 449 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 450 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 451 => function ($stackPos) { - $this->semValue = new Expr\ClosureUse($this->semStack[$stackPos-(2-2)], $this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); - }, - 452 => function ($stackPos) { - $this->semValue = new Expr\FuncCall($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); - }, 453 => function ($stackPos) { - $this->semValue = new Expr\FuncCall($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = array(); }, 454 => 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); + $this->semValue = $this->semStack[$stackPos-(4-3)]; }, 455 => function ($stackPos) { - $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(2-1)]; }, 456 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = array($this->semStack[$stackPos-(1-1)]); }, 457 => function ($stackPos) { - $this->semValue = new Name($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)]; }, 458 => function ($stackPos) { - $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Expr\ClosureUse($this->semStack[$stackPos-(2-2)], $this->semStack[$stackPos-(2-1)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 459 => function ($stackPos) { - $this->semValue = new Name\FullyQualified(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Expr\FuncCall($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 460 => function ($stackPos) { - $this->semValue = new Name\Relative(substr($this->semStack[$stackPos-(1-1)], 10), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Expr\FuncCall($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); }, 461 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $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); }, 462 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 463 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 464 => function ($stackPos) { - $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; + $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 465 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Name($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 466 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Name\FullyQualified(substr($this->semStack[$stackPos-(1-1)], 1), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 467 => function ($stackPos) { - $this->semValue = null; + $this->semValue = new Name\Relative(substr($this->semStack[$stackPos-(1-1)], 10), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 468 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 469 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 470 => function ($stackPos) { - $this->semValue = array(new Scalar\EncapsedStringPart(Scalar\String_::parseEscapeSequences($this->semStack[$stackPos-(1-1)], '`'), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes)); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 471 => 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)]; + $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; }, 472 => function ($stackPos) { - $this->semValue = array(); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 473 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 474 => function ($stackPos) { - $this->semValue = new Expr\ConstFetch($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = null; }, 475 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Line($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 476 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\File($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array(); }, 477 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Dir($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array(new Scalar\EncapsedStringPart(Scalar\String_::parseEscapeSequences($this->semStack[$stackPos-(1-1)], '`'), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes)); }, 478 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Class_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + 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)]; }, 479 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Trait_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = array(); }, 480 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Method($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 481 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Function_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Expr\ConstFetch($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 482 => function ($stackPos) { - $this->semValue = new Scalar\MagicConst\Namespace_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + $this->semValue = new Scalar\MagicConst\Line($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 483 => function ($stackPos) { - $this->semValue = new Expr\ClassConstFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $this->semValue = new Scalar\MagicConst\File($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 484 => 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; + $this->semValue = new Scalar\MagicConst\Dir($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 485 => function ($stackPos) { + $this->semValue = new Scalar\MagicConst\Class_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 486 => function ($stackPos) { + $this->semValue = new Scalar\MagicConst\Trait_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 487 => function ($stackPos) { + $this->semValue = new Scalar\MagicConst\Method($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 488 => function ($stackPos) { + $this->semValue = new Scalar\MagicConst\Function_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 489 => function ($stackPos) { + $this->semValue = new Scalar\MagicConst\Namespace_($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 490 => function ($stackPos) { + $this->semValue = new Expr\ClassConstFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 491 => 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; + }, + 492 => 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); }, - 486 => function ($stackPos) { + 493 => 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); }, - 487 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 488 => 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); - }, - 489 => 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); - }, - 490 => function ($stackPos) { - $this->semValue = $this->parseLNumber($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 491 => function ($stackPos) { - $this->semValue = new Scalar\DNumber(Scalar\DNumber::parse($this->semStack[$stackPos-(1-1)]), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 492 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 493 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, 494 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 495 => 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); + $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); }, 496 => 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); + $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); }, 497 => 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); + $this->semValue = $this->parseLNumber($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 498 => function ($stackPos) { - $this->semValue = null; + $this->semValue = new Scalar\DNumber(Scalar\DNumber::parse($this->semStack[$stackPos-(1-1)]), $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); }, 499 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; @@ -2499,100 +2505,100 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 501 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 502 => 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); }, 503 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $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); }, 504 => 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); }, 505 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = null; }, 506 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 507 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 508 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 509 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 510 => 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)]; }, 511 => 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)]; }, 512 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 513 => 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 = $this->semStack[$stackPos-(1-1)]; }, 514 => function ($stackPos) { - $this->semValue = new Expr\NullsafeMethodCall($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = $this->semStack[$stackPos-(3-2)]; }, 515 => function ($stackPos) { - $this->semValue = null; + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 516 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 517 => 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); }, 518 => 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); }, 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\NullsafePropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $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); }, 521 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; + $this->semValue = new Expr\NullsafeMethodCall($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->semStack[$stackPos-(4-4)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 522 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + $this->semValue = null; }, 523 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); - }, - 524 => function ($stackPos) { - $this->semValue = new Expr\Variable(new Expr\Error($this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes), $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); $this->errorState = 2; - }, - 525 => function ($stackPos) { - $var = $this->semStack[$stackPos-(1-1)]->name; $this->semValue = \is_string($var) ? new Node\VarLikeIdentifier($var, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes) : $var; - }, - 526 => function ($stackPos) { - $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); - }, - 527 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 528 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + 524 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 529 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + 525 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 530 => function ($stackPos) { + 526 => function ($stackPos) { $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 531 => function ($stackPos) { + 527 => function ($stackPos) { $this->semValue = new Expr\NullsafePropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, + 528 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 529 => function ($stackPos) { + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 530 => function ($stackPos) { + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 531 => function ($stackPos) { + $this->semValue = new Expr\Variable(new Expr\Error($this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes), $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); $this->errorState = 2; + }, 532 => function ($stackPos) { - $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + $var = $this->semStack[$stackPos-(1-1)]->name; $this->semValue = \is_string($var) ? new Node\VarLikeIdentifier($var, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes) : $var; }, 533 => function ($stackPos) { $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); @@ -2601,117 +2607,138 @@ class Php7 extends \PhpParser\ParserAbstract $this->semValue = $this->semStack[$stackPos-(1-1)]; }, 535 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; - }, - 536 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 537 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 538 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(3-2)]; - }, - 539 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 540 => function ($stackPos) { - $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; - }, - 541 => function ($stackPos) { - $this->semValue = new Expr\List_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); - }, - 542 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; $end = count($this->semValue)-1; if ($this->semValue[$end] === null) array_pop($this->semValue); - }, - 543 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos]; - }, - 544 => function ($stackPos) { - /* do nothing -- prevent default action of $$=$this->semStack[$1]. See $551. */ - }, - 545 => function ($stackPos) { - $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; - }, - 546 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 547 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 548 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); - }, - 549 => function ($stackPos) { - $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 550 => 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); - }, - 551 => 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); - }, - 552 => 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); - }, - 553 => 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); - }, - 554 => function ($stackPos) { - $this->semValue = null; - }, - 555 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 556 => function ($stackPos) { - $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; - }, - 557 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(1-1)]); - }, - 558 => function ($stackPos) { - $this->semValue = array($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)]); - }, - 559 => function ($stackPos) { - $this->semValue = new Scalar\EncapsedStringPart($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 560 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); - }, - 561 => function ($stackPos) { - $this->semValue = $this->semStack[$stackPos-(1-1)]; - }, - 562 => function ($stackPos) { $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, - 563 => function ($stackPos) { + 536 => function ($stackPos) { + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 537 => function ($stackPos) { $this->semValue = new Expr\PropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 564 => function ($stackPos) { + 538 => function ($stackPos) { $this->semValue = new Expr\NullsafePropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 565 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + 539 => function ($stackPos) { + $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 566 => function ($stackPos) { - $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + 540 => function ($stackPos) { + $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, - 567 => function ($stackPos) { - $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-4)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + 541 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; }, - 568 => function ($stackPos) { + 542 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(3-2)]; }, + 543 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 544 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 545 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(3-2)]; + }, + 546 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, + 547 => function ($stackPos) { + $this->semValue = new Expr\Error($this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); $this->errorState = 2; + }, + 548 => function ($stackPos) { + $this->semValue = new Expr\List_($this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); + }, + 549 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; $end = count($this->semValue)-1; if ($this->semValue[$end] === null) array_pop($this->semValue); + }, + 550 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos]; + }, + 551 => function ($stackPos) { + /* do nothing -- prevent default action of $$=$this->semStack[$1]. See $551. */ + }, + 552 => function ($stackPos) { + $this->semStack[$stackPos-(3-1)][] = $this->semStack[$stackPos-(3-3)]; $this->semValue = $this->semStack[$stackPos-(3-1)]; + }, + 553 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 554 => function ($stackPos) { + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 555 => function ($stackPos) { + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(2-2)], null, true, $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 556 => function ($stackPos) { + $this->semValue = new Expr\ArrayItem($this->semStack[$stackPos-(1-1)], null, false, $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 557 => 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); + }, + 558 => 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); + }, + 559 => 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); + }, + 560 => 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); + }, + 561 => function ($stackPos) { + $this->semValue = null; + }, + 562 => function ($stackPos) { + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 563 => function ($stackPos) { + $this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)]; + }, + 564 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(1-1)]); + }, + 565 => function ($stackPos) { + $this->semValue = array($this->semStack[$stackPos-(2-1)], $this->semStack[$stackPos-(2-2)]); + }, + 566 => function ($stackPos) { + $this->semValue = new Scalar\EncapsedStringPart($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 567 => function ($stackPos) { + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 568 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(1-1)]; + }, 569 => 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-(4-1)], $this->semStack[$stackPos-(4-3)], $this->startAttributeStack[$stackPos-(4-1)] + $this->endAttributes); }, 570 => function ($stackPos) { - $this->semValue = $this->parseNumString($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-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); }, 571 => function ($stackPos) { - $this->semValue = $this->parseNumString('-' . $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + $this->semValue = new Expr\NullsafePropertyFetch($this->semStack[$stackPos-(3-1)], $this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); }, 572 => function ($stackPos) { + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 573 => function ($stackPos) { + $this->semValue = new Expr\Variable($this->semStack[$stackPos-(3-2)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); + }, + 574 => function ($stackPos) { + $this->semValue = new Expr\ArrayDimFetch($this->semStack[$stackPos-(6-2)], $this->semStack[$stackPos-(6-4)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); + }, + 575 => function ($stackPos) { + $this->semValue = $this->semStack[$stackPos-(3-2)]; + }, + 576 => function ($stackPos) { + $this->semValue = new Scalar\String_($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 577 => function ($stackPos) { + $this->semValue = $this->parseNumString($this->semStack[$stackPos-(1-1)], $this->startAttributeStack[$stackPos-(1-1)] + $this->endAttributes); + }, + 578 => function ($stackPos) { + $this->semValue = $this->parseNumString('-' . $this->semStack[$stackPos-(2-2)], $this->startAttributeStack[$stackPos-(2-1)] + $this->endAttributes); + }, + 579 => function ($stackPos) { $this->semValue = $this->semStack[$stackPos-(1-1)]; }, ]; diff --git a/lib/PhpParser/Parser/Tokens.php b/lib/PhpParser/Parser/Tokens.php index 07cab21..ed5ead2 100644 --- a/lib/PhpParser/Parser/Tokens.php +++ b/lib/PhpParser/Parser/Tokens.php @@ -114,32 +114,32 @@ final class Tokens const T_CLASS = 362; const T_TRAIT = 363; const T_INTERFACE = 364; - const T_EXTENDS = 365; - const T_IMPLEMENTS = 366; - const T_OBJECT_OPERATOR = 367; - const T_NULLSAFE_OBJECT_OPERATOR = 368; - const T_LIST = 369; - const T_ARRAY = 370; - const T_CALLABLE = 371; - const T_CLASS_C = 372; - const T_TRAIT_C = 373; - const T_METHOD_C = 374; - const T_FUNC_C = 375; - const T_LINE = 376; - const T_FILE = 377; - const T_START_HEREDOC = 378; - const T_END_HEREDOC = 379; - const T_DOLLAR_OPEN_CURLY_BRACES = 380; - const T_CURLY_OPEN = 381; - const T_PAAMAYIM_NEKUDOTAYIM = 382; - const T_NAMESPACE = 383; - const T_NS_C = 384; - const T_DIR = 385; - const T_NS_SEPARATOR = 386; - const T_ELLIPSIS = 387; - const T_NAME_FULLY_QUALIFIED = 388; - const T_NAME_QUALIFIED = 389; - const T_NAME_RELATIVE = 390; - const T_ATTRIBUTE = 391; - const T_ENUM = 392; + const T_ENUM = 365; + const T_EXTENDS = 366; + const T_IMPLEMENTS = 367; + const T_OBJECT_OPERATOR = 368; + const T_NULLSAFE_OBJECT_OPERATOR = 369; + const T_LIST = 370; + const T_ARRAY = 371; + const T_CALLABLE = 372; + const T_CLASS_C = 373; + const T_TRAIT_C = 374; + const T_METHOD_C = 375; + const T_FUNC_C = 376; + const T_LINE = 377; + const T_FILE = 378; + const T_START_HEREDOC = 379; + const T_END_HEREDOC = 380; + const T_DOLLAR_OPEN_CURLY_BRACES = 381; + const T_CURLY_OPEN = 382; + const T_PAAMAYIM_NEKUDOTAYIM = 383; + const T_NAMESPACE = 384; + const T_NS_C = 385; + const T_DIR = 386; + const T_NS_SEPARATOR = 387; + const T_ELLIPSIS = 388; + const T_NAME_FULLY_QUALIFIED = 389; + const T_NAME_QUALIFIED = 390; + const T_NAME_RELATIVE = 391; + const T_ATTRIBUTE = 392; } diff --git a/lib/PhpParser/ParserAbstract.php b/lib/PhpParser/ParserAbstract.php index b7a9d1b..0600b98 100644 --- a/lib/PhpParser/ParserAbstract.php +++ b/lib/PhpParser/ParserAbstract.php @@ -16,6 +16,7 @@ use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassConst; use PhpParser\Node\Stmt\ClassMethod; +use PhpParser\Node\Stmt\Enum_; use PhpParser\Node\Stmt\Interface_; use PhpParser\Node\Stmt\Namespace_; use PhpParser\Node\Stmt\Property; @@ -912,22 +913,17 @@ abstract class ParserAbstract implements Parser } } - protected function checkClass(Class_ $node, $namePos) { - if (null !== $node->name && $node->name->isSpecialClassName()) { + private function checkClassName($name, $namePos) { + if (null !== $name && $name->isSpecialClassName()) { $this->emitError(new Error( - sprintf('Cannot use \'%s\' as class name as it is reserved', $node->name), + sprintf('Cannot use \'%s\' as class name as it is reserved', $name), $this->getAttributesAt($namePos) )); } + } - if ($node->extends && $node->extends->isSpecialClassName()) { - $this->emitError(new Error( - sprintf('Cannot use \'%s\' as class name as it is reserved', $node->extends), - $node->extends->getAttributes() - )); - } - - foreach ($node->implements as $interface) { + private function checkImplementedInterfaces(array $interfaces) { + foreach ($interfaces as $interface) { if ($interface->isSpecialClassName()) { $this->emitError(new Error( sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface), @@ -937,22 +933,27 @@ abstract class ParserAbstract implements Parser } } - protected function checkInterface(Interface_ $node, $namePos) { - if (null !== $node->name && $node->name->isSpecialClassName()) { + protected function checkClass(Class_ $node, $namePos) { + $this->checkClassName($node->name, $namePos); + + if ($node->extends && $node->extends->isSpecialClassName()) { $this->emitError(new Error( - sprintf('Cannot use \'%s\' as class name as it is reserved', $node->name), - $this->getAttributesAt($namePos) + sprintf('Cannot use \'%s\' as class name as it is reserved', $node->extends), + $node->extends->getAttributes() )); } - foreach ($node->extends as $interface) { - if ($interface->isSpecialClassName()) { - $this->emitError(new Error( - sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface), - $interface->getAttributes() - )); - } - } + $this->checkImplementedInterfaces($node->implements); + } + + protected function checkInterface(Interface_ $node, $namePos) { + $this->checkClassName($node->name, $namePos); + $this->checkImplementedInterfaces($node->extends); + } + + protected function checkEnum(Enum_ $node, $namePos) { + $this->checkClassName($node->name, $namePos); + $this->checkImplementedInterfaces($node->implements); } protected function checkClassMethod(ClassMethod $node, $modifierPos) { diff --git a/lib/PhpParser/PrettyPrinter/Standard.php b/lib/PhpParser/PrettyPrinter/Standard.php index 636129d..5453b30 100644 --- a/lib/PhpParser/PrettyPrinter/Standard.php +++ b/lib/PhpParser/PrettyPrinter/Standard.php @@ -727,6 +727,13 @@ class Standard extends PrettyPrinterAbstract . $this->nl . '{' . $this->pStmts($node->stmts) . $this->nl . '}'; } + protected function pStmt_Enum(Stmt\Enum_ $node) { + return $this->pAttrGroups($node->attrGroups) + . 'enum ' . $node->name + . (!empty($node->implements) ? ' implements ' . $this->pCommaSeparated($node->implements) : '') + . $this->nl . '{' . $this->pStmts($node->stmts) . $this->nl . '}'; + } + protected function pStmt_Class(Stmt\Class_ $node) { return $this->pClassCommon($node, ' ' . $node->name); } @@ -737,6 +744,13 @@ class Standard extends PrettyPrinterAbstract . $this->nl . '{' . $this->pStmts($node->stmts) . $this->nl . '}'; } + protected function pStmt_EnumCase(Stmt\EnumCase $node) { + return $this->pAttrGroups($node->attrGroups) + . 'case ' . $node->name + . ($node->expr ? ' = ' . $this->p($node->expr) : '') + . ';'; + } + protected function pStmt_TraitUse(Stmt\TraitUse $node) { return 'use ' . $this->pCommaSeparated($node->traits) . (empty($node->adaptations) diff --git a/lib/PhpParser/PrettyPrinterAbstract.php b/lib/PhpParser/PrettyPrinterAbstract.php index 804026e..f453db0 100644 --- a/lib/PhpParser/PrettyPrinterAbstract.php +++ b/lib/PhpParser/PrettyPrinterAbstract.php @@ -1242,7 +1242,7 @@ abstract class PrettyPrinterAbstract /** * Lazily initializes the removal map. * - * The removal map is used to determine which additional tokens should be returned when a + * The removal map is used to determine which additional tokens should be removed when a * certain node is replaced by null. */ protected function initializeRemovalMap() { @@ -1269,6 +1269,8 @@ abstract class PrettyPrinterAbstract 'Stmt_Catch->var' => $stripLeft, 'Stmt_ClassMethod->returnType' => $stripColon, 'Stmt_Class->extends' => ['left' => \T_EXTENDS], + 'Stmt_Enum->scalarType' => $stripColon, + 'Stmt_EnumCase->expr' => $stripEquals, 'Expr_PrintableNewAnonClass->extends' => ['left' => \T_EXTENDS], 'Stmt_Continue->num' => $stripBoth, 'Stmt_Foreach->keyVar' => $stripDoubleArrow, @@ -1307,6 +1309,8 @@ abstract class PrettyPrinterAbstract 'Stmt_Catch->var' => [null, false, ' ', null], 'Stmt_ClassMethod->returnType' => [')', false, ' : ', null], 'Stmt_Class->extends' => [null, false, ' extends ', null], + 'Stmt_Enum->scalarType' => [null, false, ' : ', null], + 'Stmt_EnumCase->expr' => [null, false, ' = ', null], 'Expr_PrintableNewAnonClass->extends' => [null, ' extends ', null], 'Stmt_Continue->num' => [\T_CONTINUE, false, ' ', null], 'Stmt_Foreach->keyVar' => [\T_AS, false, null, ' => '], @@ -1356,6 +1360,7 @@ abstract class PrettyPrinterAbstract 'Stmt_ClassConst->consts' => ', ', 'Stmt_ClassMethod->params' => ', ', 'Stmt_Class->implements' => ', ', + 'Stmt_Enum->implements' => ', ', 'Expr_PrintableNewAnonClass->implements' => ', ', 'Stmt_Const->consts' => ', ', 'Stmt_Declare->declares' => ', ', @@ -1382,6 +1387,7 @@ abstract class PrettyPrinterAbstract 'Stmt_Case->stmts' => "\n", 'Stmt_Catch->stmts' => "\n", 'Stmt_Class->stmts' => "\n", + 'Stmt_Enum->stmts' => "\n", 'Expr_PrintableNewAnonClass->stmts' => "\n", 'Stmt_Interface->stmts' => "\n", 'Stmt_Trait->stmts' => "\n", @@ -1397,6 +1403,8 @@ abstract class PrettyPrinterAbstract 'Stmt_If->stmts' => "\n", 'Stmt_Namespace->stmts' => "\n", 'Stmt_Class->attrGroups' => "\n", + 'Stmt_Enum->attrGroups' => "\n", + 'Stmt_EnumCase->attrGroups' => "\n", 'Stmt_Interface->attrGroups' => "\n", 'Stmt_Trait->attrGroups' => "\n", 'Stmt_Function->attrGroups' => "\n", @@ -1435,6 +1443,7 @@ abstract class PrettyPrinterAbstract 'Expr_PrintableNewAnonClass->implements' => [null, ' implements ', ''], 'Expr_StaticCall->args' => ['(', '', ''], 'Stmt_Class->implements' => [null, ' implements ', ''], + 'Stmt_Enum->implements' => [null, ' implements ', ''], 'Stmt_ClassMethod->params' => ['(', '', ''], 'Stmt_Interface->extends' => [null, ' extends ', ''], 'Stmt_Function->params' => ['(', '', ''], diff --git a/test/code/formatPreservation/enum.test b/test/code/formatPreservation/enum.test new file mode 100644 index 0000000..c6abcbf --- /dev/null +++ b/test/code/formatPreservation/enum.test @@ -0,0 +1,100 @@ +Enum formatting preservation +----- +scalarType = null; +----- +stmts[0]->expr = null; +----- +scalarType = new Node\Identifier('int'); +----- +scalarType = new Node\Identifier('int'); +----- +stmts[0]->expr = new Scalar\LNumber(1); +----- +stmts[] = new Node\Stmt\EnumCase('C'); +----- +implements[] = new Node\Name('Z'); +----- +implements[] = new Node\Name('Y'); +----- +