mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-30 04:29:15 +01:00
Fix wrong node signature in grammar
This commit is contained in:
parent
b80f326b6a
commit
74f05f5459
@ -924,8 +924,8 @@ state 9
|
||||
. error
|
||||
|
||||
state 10
|
||||
(233) expr : T_FUNCTION optional_ref '(' parameter_list ')' lexical_vars '{' inner_statement_list . '}'
|
||||
(24) inner_statement_list : inner_statement_list . inner_statement
|
||||
(233) expr : T_FUNCTION optional_ref '(' parameter_list ')' lexical_vars '{' inner_statement_list . '}'
|
||||
|
||||
T_INCLUDE shift 56
|
||||
T_INCLUDE_ONCE shift 57
|
||||
@ -1227,8 +1227,8 @@ state 12
|
||||
. error
|
||||
|
||||
state 13
|
||||
(136) method_body : '{' inner_statement_list . '}'
|
||||
(24) inner_statement_list : inner_statement_list . inner_statement
|
||||
(136) method_body : '{' inner_statement_list . '}'
|
||||
|
||||
T_INCLUDE shift 56
|
||||
T_INCLUDE_ONCE shift 57
|
||||
@ -10246,6 +10246,7 @@ state 134
|
||||
. error
|
||||
|
||||
state 135
|
||||
(92) case_list : case_list T_CASE expr . case_separator inner_statement_list
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10273,7 +10274,6 @@ state 135
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(92) case_list : case_list T_CASE expr . case_separator inner_statement_list
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10307,6 +10307,7 @@ state 135
|
||||
. error
|
||||
|
||||
state 136
|
||||
(47) statement : expr . ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10334,7 +10335,6 @@ state 136
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(47) statement : expr . ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10366,6 +10366,7 @@ state 136
|
||||
. error
|
||||
|
||||
state 137
|
||||
(38) statement : T_BREAK expr . ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10393,7 +10394,6 @@ state 137
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(38) statement : T_BREAK expr . ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10425,6 +10425,7 @@ state 137
|
||||
. error
|
||||
|
||||
state 138
|
||||
(40) statement : T_CONTINUE expr . ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10452,7 +10453,6 @@ state 138
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(40) statement : T_CONTINUE expr . ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10484,6 +10484,7 @@ state 138
|
||||
. error
|
||||
|
||||
state 139
|
||||
(42) statement : T_RETURN expr . ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10511,7 +10512,6 @@ state 139
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(42) statement : T_RETURN expr . ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10543,6 +10543,7 @@ state 139
|
||||
. error
|
||||
|
||||
state 140
|
||||
(55) statement : T_THROW expr . ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10570,7 +10571,6 @@ state 140
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(55) statement : T_THROW expr . ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10779,6 +10779,8 @@ state 143
|
||||
. error
|
||||
|
||||
state 144
|
||||
(31) statement : T_IF '(' expr . ')' statement elseif_list else_single
|
||||
(32) statement : T_IF '(' expr . ')' ':' inner_statement_list new_elseif_list new_else_single T_ENDIF ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10806,8 +10808,6 @@ state 144
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(31) statement : T_IF '(' expr . ')' statement elseif_list else_single
|
||||
(32) statement : T_IF '(' expr . ')' ':' inner_statement_list new_elseif_list new_else_single T_ENDIF ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10839,6 +10839,7 @@ state 144
|
||||
. error
|
||||
|
||||
state 145
|
||||
(33) statement : T_WHILE '(' expr . ')' while_statement
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10866,7 +10867,6 @@ state 145
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(33) statement : T_WHILE '(' expr . ')' while_statement
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10898,6 +10898,9 @@ state 145
|
||||
. error
|
||||
|
||||
state 146
|
||||
(49) statement : T_FOREACH '(' expr . T_AS variable ')' foreach_statement
|
||||
(50) statement : T_FOREACH '(' expr . T_AS '&' variable ')' foreach_statement
|
||||
(51) statement : T_FOREACH '(' expr . T_AS variable T_DOUBLE_ARROW optional_ref variable ')' foreach_statement
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10925,9 +10928,6 @@ state 146
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(49) statement : T_FOREACH '(' expr . T_AS variable ')' foreach_statement
|
||||
(50) statement : T_FOREACH '(' expr . T_AS '&' variable ')' foreach_statement
|
||||
(51) statement : T_FOREACH '(' expr . T_AS variable T_DOUBLE_ARROW optional_ref variable ')' foreach_statement
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -10959,6 +10959,7 @@ state 146
|
||||
. error
|
||||
|
||||
state 147
|
||||
(36) statement : T_SWITCH '(' expr . ')' switch_case_list
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -10986,7 +10987,6 @@ state 147
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(36) statement : T_SWITCH '(' expr . ')' switch_case_list
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -11610,6 +11610,7 @@ state 157
|
||||
. error
|
||||
|
||||
state 158
|
||||
(34) statement : T_DO statement T_WHILE '(' expr . ')' ';'
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -11637,7 +11638,6 @@ state 158
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(34) statement : T_DO statement T_WHILE '(' expr . ')' ';'
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -11907,6 +11907,7 @@ state 162
|
||||
. error
|
||||
|
||||
state 163
|
||||
(99) elseif_list : elseif_list T_ELSEIF '(' expr . ')' statement
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -11934,7 +11935,6 @@ state 163
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(99) elseif_list : elseif_list T_ELSEIF '(' expr . ')' statement
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -11966,6 +11966,7 @@ state 163
|
||||
. error
|
||||
|
||||
state 164
|
||||
(101) new_elseif_list : new_elseif_list T_ELSEIF '(' expr . ')' ':' inner_statement_list
|
||||
(181) expr : expr . T_BOOLEAN_OR expr
|
||||
(182) expr : expr . T_BOOLEAN_AND expr
|
||||
(183) expr : expr . T_LOGICAL_OR expr
|
||||
@ -11993,7 +11994,6 @@ state 164
|
||||
(209) expr : expr . T_INSTANCEOF class_name_reference
|
||||
(211) expr : expr . '?' expr ':' expr
|
||||
(212) expr : expr . '?' ':' expr
|
||||
(101) new_elseif_list : new_elseif_list T_ELSEIF '(' expr . ')' ':' inner_statement_list
|
||||
|
||||
T_LOGICAL_OR shift 83
|
||||
T_LOGICAL_XOR shift 84
|
||||
@ -14905,8 +14905,8 @@ state 226
|
||||
. reduce (208)
|
||||
|
||||
state 227
|
||||
(130) class_statement_list : class_statement_list . class_statement
|
||||
(67) class_declaration_statement : T_INTERFACE T_STRING interface_extends_list '{' class_statement_list . '}'
|
||||
(130) class_statement_list : class_statement_list . class_statement
|
||||
(139) method_modifiers : .
|
||||
|
||||
T_CONST shift 483
|
||||
@ -14927,8 +14927,8 @@ state 227
|
||||
. reduce (139)
|
||||
|
||||
state 228
|
||||
(130) class_statement_list : class_statement_list . class_statement
|
||||
(66) class_declaration_statement : class_entry_type T_STRING extends_from implements_list '{' class_statement_list . '}'
|
||||
(130) class_statement_list : class_statement_list . class_statement
|
||||
(139) method_modifiers : .
|
||||
|
||||
T_CONST shift 483
|
||||
@ -15972,10 +15972,10 @@ state 277
|
||||
. error
|
||||
|
||||
state 278
|
||||
(246) name : T_NAMESPACE . T_NS_SEPARATOR namespace_name
|
||||
(11) top_statement : T_NAMESPACE . namespace_name ';'
|
||||
(12) top_statement : T_NAMESPACE . namespace_name '{' top_statement_list '}'
|
||||
(13) top_statement : T_NAMESPACE . '{' top_statement_list '}'
|
||||
(246) name : T_NAMESPACE . T_NS_SEPARATOR namespace_name
|
||||
|
||||
T_STRING shift 568 and reduce (5)
|
||||
T_NS_SEPARATOR shift 340
|
||||
@ -16164,10 +16164,10 @@ state 294
|
||||
. error
|
||||
|
||||
state 295
|
||||
(302) object_access : variable . T_OBJECT_OPERATOR object_property '(' function_call_argument_list ')'
|
||||
(303) object_access_arrayable : variable . T_OBJECT_OPERATOR object_property
|
||||
(49) statement : T_FOREACH '(' expr T_AS variable . ')' foreach_statement
|
||||
(51) statement : T_FOREACH '(' expr T_AS variable . T_DOUBLE_ARROW optional_ref variable ')' foreach_statement
|
||||
(302) object_access : variable . T_OBJECT_OPERATOR object_property '(' function_call_argument_list ')'
|
||||
(303) object_access_arrayable : variable . T_OBJECT_OPERATOR object_property
|
||||
|
||||
T_OBJECT_OPERATOR shift 264
|
||||
T_DOUBLE_ARROW shift 359
|
||||
@ -16325,16 +16325,16 @@ state 311
|
||||
. reduce (311)
|
||||
|
||||
state 312
|
||||
(155) expr_list : expr_list . ',' expr
|
||||
(45) statement : T_ECHO expr_list . ';'
|
||||
(155) expr_list : expr_list . ',' expr
|
||||
|
||||
',' shift 122
|
||||
';' shift 605 and reduce (45)
|
||||
. error
|
||||
|
||||
state 313
|
||||
(233) expr : T_FUNCTION optional_ref . '(' parameter_list ')' lexical_vars '{' inner_statement_list '}'
|
||||
(65) function_declaration_statement : T_FUNCTION optional_ref . T_STRING '(' parameter_list ')' '{' inner_statement_list '}'
|
||||
(233) expr : T_FUNCTION optional_ref . '(' parameter_list ')' lexical_vars '{' inner_statement_list '}'
|
||||
|
||||
T_STRING shift 413
|
||||
'(' shift 256
|
||||
@ -16349,17 +16349,17 @@ state 314
|
||||
. error
|
||||
|
||||
state 315
|
||||
(121) global_var_list : global_var_list . ',' global_var
|
||||
(43) statement : T_GLOBAL global_var_list . ';'
|
||||
(121) global_var_list : global_var_list . ',' global_var
|
||||
|
||||
',' shift 303
|
||||
';' shift 612 and reduce (43)
|
||||
. error
|
||||
|
||||
state 316
|
||||
(44) statement : T_STATIC static_var_list . ';'
|
||||
(126) static_var_list : static_var_list . ',' T_VARIABLE
|
||||
(127) static_var_list : static_var_list . ',' T_VARIABLE '=' static_scalar
|
||||
(44) statement : T_STATIC static_var_list . ';'
|
||||
|
||||
',' shift 417
|
||||
';' shift 613 and reduce (44)
|
||||
@ -16428,8 +16428,8 @@ state 323
|
||||
. error
|
||||
|
||||
state 324
|
||||
(213) expr : T_ISSET '(' variables_list . ')'
|
||||
(62) variables_list : variables_list . ',' variable
|
||||
(213) expr : T_ISSET '(' variables_list . ')'
|
||||
|
||||
',' shift 246
|
||||
')' shift 648 and reduce (213)
|
||||
@ -16507,9 +16507,9 @@ state 332
|
||||
. error
|
||||
|
||||
state 333
|
||||
(50) statement : T_FOREACH '(' expr T_AS '&' variable . ')' foreach_statement
|
||||
(302) object_access : variable . T_OBJECT_OPERATOR object_property '(' function_call_argument_list ')'
|
||||
(303) object_access_arrayable : variable . T_OBJECT_OPERATOR object_property
|
||||
(50) statement : T_FOREACH '(' expr T_AS '&' variable . ')' foreach_statement
|
||||
|
||||
T_OBJECT_OPERATOR shift 264
|
||||
')' shift 22
|
||||
@ -16533,9 +16533,9 @@ state 335
|
||||
. error
|
||||
|
||||
state 336
|
||||
(51) statement : T_FOREACH '(' expr T_AS variable T_DOUBLE_ARROW optional_ref variable . ')' foreach_statement
|
||||
(302) object_access : variable . T_OBJECT_OPERATOR object_property '(' function_call_argument_list ')'
|
||||
(303) object_access_arrayable : variable . T_OBJECT_OPERATOR object_property
|
||||
(51) statement : T_FOREACH '(' expr T_AS variable T_DOUBLE_ARROW optional_ref variable . ')' foreach_statement
|
||||
|
||||
T_OBJECT_OPERATOR shift 264
|
||||
')' shift 24
|
||||
@ -16600,8 +16600,8 @@ state 343
|
||||
. reduce (257)
|
||||
|
||||
state 344
|
||||
(233) expr : T_FUNCTION . optional_ref '(' parameter_list ')' lexical_vars '{' inner_statement_list '}'
|
||||
(65) function_declaration_statement : T_FUNCTION . optional_ref T_STRING '(' parameter_list ')' '{' inner_statement_list '}'
|
||||
(233) expr : T_FUNCTION . optional_ref '(' parameter_list ')' lexical_vars '{' inner_statement_list '}'
|
||||
(63) optional_ref : .
|
||||
|
||||
'&' shift 589 and reduce (64)
|
||||
@ -16609,8 +16609,8 @@ state 344
|
||||
. reduce (63)
|
||||
|
||||
state 345
|
||||
(243) class_name : T_STATIC .
|
||||
(44) statement : T_STATIC . static_var_list ';'
|
||||
(243) class_name : T_STATIC .
|
||||
|
||||
T_VARIABLE shift 402
|
||||
static_var_list goto 316
|
||||
@ -17151,9 +17151,9 @@ state 417
|
||||
. error
|
||||
|
||||
state 418
|
||||
(61) variables_list : variable .
|
||||
(302) object_access : variable . T_OBJECT_OPERATOR object_property '(' function_call_argument_list ')'
|
||||
(303) object_access_arrayable : variable . T_OBJECT_OPERATOR object_property
|
||||
(61) variables_list : variable .
|
||||
|
||||
T_OBJECT_OPERATOR shift 264
|
||||
. reduce (61)
|
||||
@ -17423,9 +17423,9 @@ state 447
|
||||
. error
|
||||
|
||||
state 448
|
||||
(106) parameter_list : non_empty_parameter_list .
|
||||
(110) non_empty_parameter_list : non_empty_parameter_list . ',' optional_class_type optional_ref T_VARIABLE
|
||||
(111) non_empty_parameter_list : non_empty_parameter_list . ',' optional_class_type optional_ref T_VARIABLE '=' static_scalar
|
||||
(106) parameter_list : non_empty_parameter_list .
|
||||
|
||||
',' shift 262
|
||||
. reduce (106)
|
||||
@ -17567,9 +17567,9 @@ state 469
|
||||
. error
|
||||
|
||||
state 470
|
||||
(62) variables_list : variables_list ',' variable .
|
||||
(302) object_access : variable . T_OBJECT_OPERATOR object_property '(' function_call_argument_list ')'
|
||||
(303) object_access_arrayable : variable . T_OBJECT_OPERATOR object_property
|
||||
(62) variables_list : variables_list ',' variable .
|
||||
|
||||
T_OBJECT_OPERATOR shift 264
|
||||
. reduce (62)
|
||||
|
@ -775,7 +775,7 @@ encaps_var:
|
||||
;
|
||||
|
||||
encaps_var_offset:
|
||||
T_STRING { $$ = new Node_Scalar_String(array('value' => $1)); }
|
||||
T_STRING { $$ = new Node_Scalar_String(array('value' => $1, 'isBinary' => false, 'type' => Node_Scalar_String::SINGLE_QUOTED)); }
|
||||
| T_NUM_STRING { $$ = new Node_Scalar_LNumber(array('value' => (int) $1)); }
|
||||
| T_VARIABLE { $$ = new Node_Variable(array('name' => substr($1, 1))); }
|
||||
;
|
||||
|
@ -775,7 +775,7 @@ encaps_var:
|
||||
;
|
||||
|
||||
encaps_var_offset:
|
||||
T_STRING { $$ = Scalar_String[value: $1]; }
|
||||
T_STRING { $$ = Scalar_String[value: $1, isBinary: false, type: Scalar_String::SINGLE_QUOTED]; }
|
||||
| T_NUM_STRING { $$ = Scalar_LNumber[value: parseLNumber($1)]; }
|
||||
| T_VARIABLE { $$ = Variable[name: parseVar($1)]; }
|
||||
;
|
||||
|
@ -2445,7 +2445,7 @@ class Parser
|
||||
}
|
||||
|
||||
private function yyn352() {
|
||||
$this->yyval = new Node_Scalar_String(array('value' => $this->yyastk[$this->yysp-(1-1)]));
|
||||
$this->yyval = new Node_Scalar_String(array('value' => $this->yyastk[$this->yysp-(1-1)], 'isBinary' => false, 'type' => Node_Scalar_String::SINGLE_QUOTED));
|
||||
}
|
||||
|
||||
private function yyn353() {
|
||||
|
@ -2847,7 +2847,7 @@ class ParserDebug
|
||||
}
|
||||
|
||||
private function yyn352() {
|
||||
$this->yyval = new Node_Scalar_String(array('value' => $this->yyastk[$this->yysp-(1-1)]));
|
||||
$this->yyval = new Node_Scalar_String(array('value' => $this->yyastk[$this->yysp-(1-1)], 'isBinary' => false, 'type' => Node_Scalar_String::SINGLE_QUOTED));
|
||||
}
|
||||
|
||||
private function yyn353() {
|
||||
|
Loading…
Reference in New Issue
Block a user