branch: externals/phps-mode commit 6fdc0c4c18abae8aec005b7a5dd69dc416dc43e1 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Started on updating parser SDT for 8.2 --- phps-mode-parser-sdt.el | 1145 ++++++++++++++++++++++++----------------------- 1 file changed, 580 insertions(+), 565 deletions(-) diff --git a/phps-mode-parser-sdt.el b/phps-mode-parser-sdt.el index 37b6466295..9acd24d187 100644 --- a/phps-mode-parser-sdt.el +++ b/phps-mode-parser-sdt.el @@ -187,399 +187,406 @@ ;; Production 176: ((unset_variables) (unset_variable)) ;; Production 177: ((unset_variables) (unset_variables "," unset_variable)) ;; Production 178: ((unset_variable) (variable)) -;; Production 179: ((function_declaration_statement) (function returns_ref T_STRING backup_doc_comment "(" parameter_list ")" return_type backup_fn_flags "{" inner_statement_list "}" backup_fn_flags)) -;; Production 180: ((is_reference) (%empty)) -;; Production 181: ((is_reference) (T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG)) -;; Production 182: ((is_variadic) (%empty)) -;; Production 183: ((is_variadic) (T_ELLIPSIS)) -;; Production 184: ((class_declaration_statement) (class_modifiers T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) -;; Production 185: ((class_declaration_statement) (T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) -;; Production 186: ((class_modifiers) (class_modifier)) -;; Production 187: ((class_modifiers) (class_modifiers class_modifier)) -;; Production 188: ((class_modifier) (T_ABSTRACT)) -;; Production 189: ((class_modifier) (T_FINAL)) -;; Production 190: ((trait_declaration_statement) (T_TRAIT T_STRING backup_doc_comment "{" class_statement_list "}")) -;; Production 191: ((interface_declaration_statement) (T_INTERFACE T_STRING interface_extends_list backup_doc_comment "{" class_statement_list "}")) -;; Production 192: ((enum_declaration_statement) (T_ENUM T_STRING enum_backing_type implements_list backup_doc_comment "{" class_statement_list "}")) -;; Production 193: ((enum_backing_type) (%empty)) -;; Production 194: ((enum_backing_type) (":" type_expr)) -;; Production 195: ((enum_case) (T_CASE backup_doc_comment identifier enum_case_expr ";")) -;; Production 196: ((enum_case_expr) (%empty)) -;; Production 197: ((enum_case_expr) ("=" expr)) -;; Production 198: ((extends_from) (%empty)) -;; Production 199: ((extends_from) (T_EXTENDS class_name)) -;; Production 200: ((interface_extends_list) (%empty)) -;; Production 201: ((interface_extends_list) (T_EXTENDS class_name_list)) -;; Production 202: ((implements_list) (%empty)) -;; Production 203: ((implements_list) (T_IMPLEMENTS class_name_list)) -;; Production 204: ((foreach_variable) (variable)) -;; Production 205: ((foreach_variable) (ampersand variable)) -;; Production 206: ((foreach_variable) (T_LIST "(" array_pair_list ")")) -;; Production 207: ((foreach_variable) ("[" array_pair_list "]")) -;; Production 208: ((for_statement) (statement)) -;; Production 209: ((for_statement) (":" inner_statement_list T_ENDFOR ";")) -;; Production 210: ((foreach_statement) (statement)) -;; Production 211: ((foreach_statement) (":" inner_statement_list T_ENDFOREACH ";")) -;; Production 212: ((declare_statement) (statement)) -;; Production 213: ((declare_statement) (":" inner_statement_list T_ENDDECLARE ";")) -;; Production 214: ((switch_case_list) ("{" case_list "}")) -;; Production 215: ((switch_case_list) ("{" ";" case_list "}")) -;; Production 216: ((switch_case_list) (":" case_list T_ENDSWITCH ";")) -;; Production 217: ((switch_case_list) (":" ";" case_list T_ENDSWITCH ";")) -;; Production 218: ((case_list) (%empty)) -;; Production 219: ((case_list) (case_list T_CASE expr case_separator inner_statement_list)) -;; Production 220: ((case_list) (case_list T_DEFAULT case_separator inner_statement_list)) -;; Production 221: ((case_separator) (":")) -;; Production 222: ((case_separator) (";")) -;; Production 223: ((match) (T_MATCH "(" expr ")" "{" match_arm_list "}")) -;; Production 224: ((match_arm_list) (%empty)) -;; Production 225: ((match_arm_list) (non_empty_match_arm_list possible_comma)) -;; Production 226: ((non_empty_match_arm_list) (match_arm)) -;; Production 227: ((non_empty_match_arm_list) (non_empty_match_arm_list "," match_arm)) -;; Production 228: ((match_arm) (match_arm_cond_list possible_comma T_DOUBLE_ARROW expr)) -;; Production 229: ((match_arm) (T_DEFAULT possible_comma T_DOUBLE_ARROW expr)) -;; Production 230: ((match_arm_cond_list) (expr)) -;; Production 231: ((match_arm_cond_list) (match_arm_cond_list "," expr)) -;; Production 232: ((while_statement) (statement)) -;; Production 233: ((while_statement) (":" inner_statement_list T_ENDWHILE ";")) -;; Production 234: ((if_stmt_without_else) (T_IF "(" expr ")" statement)) -;; Production 235: ((if_stmt_without_else) (if_stmt_without_else T_ELSEIF "(" expr ")" statement)) -;; Production 236: ((if_stmt) (if_stmt_without_else)) -;; Production 237: ((if_stmt) (if_stmt_without_else T_ELSE statement)) -;; Production 238: ((alt_if_stmt_without_else) (T_IF "(" expr ")" ":" inner_statement_list)) -;; Production 239: ((alt_if_stmt_without_else) (alt_if_stmt_without_else T_ELSEIF "(" expr ")" ":" inner_statement_list)) -;; Production 240: ((alt_if_stmt) (alt_if_stmt_without_else T_ENDIF ";")) -;; Production 241: ((alt_if_stmt) (alt_if_stmt_without_else T_ELSE ":" inner_statement_list T_ENDIF ";")) -;; Production 242: ((parameter_list) (non_empty_parameter_list possible_comma)) -;; Production 243: ((parameter_list) (%empty)) -;; Production 244: ((non_empty_parameter_list) (attributed_parameter)) -;; Production 245: ((non_empty_parameter_list) (non_empty_parameter_list "," attributed_parameter)) -;; Production 246: ((attributed_parameter) (attributes parameter)) -;; Production 247: ((attributed_parameter) (parameter)) -;; Production 248: ((optional_property_modifiers) (%empty)) -;; Production 249: ((optional_property_modifiers) (optional_property_modifiers property_modifier)) -;; Production 250: ((property_modifier) (T_PUBLIC)) -;; Production 251: ((property_modifier) (T_PROTECTED)) -;; Production 252: ((property_modifier) (T_PRIVATE)) -;; Production 253: ((property_modifier) (T_READONLY)) -;; Production 254: ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment)) -;; Production 255: ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment "=" expr)) -;; Production 256: ((optional_type_without_static) (%empty)) -;; Production 257: ((optional_type_without_static) (type_expr_without_static)) -;; Production 258: ((type_expr) (type)) -;; Production 259: ((type_expr) ("?" type)) -;; Production 260: ((type_expr) (union_type)) -;; Production 261: ((type_expr) (intersection_type)) -;; Production 262: ((type) (type_without_static)) -;; Production 263: ((type) (T_STATIC)) -;; Production 264: ((union_type) (type "|" type)) -;; Production 265: ((union_type) (union_type "|" type)) -;; Production 266: ((intersection_type) (type T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type)) -;; Production 267: ((intersection_type) (intersection_type T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type)) -;; Production 268: ((type_expr_without_static) (type_without_static)) -;; Production 269: ((type_expr_without_static) ("?" type_without_static)) -;; Production 270: ((type_expr_without_static) (union_type_without_static)) -;; Production 271: ((type_expr_without_static) (intersection_type_without_static)) -;; Production 272: ((type_without_static) (T_ARRAY)) -;; Production 273: ((type_without_static) (T_CALLABLE)) -;; Production 274: ((type_without_static) (name)) -;; Production 275: ((union_type_without_static) (type_without_static "|" type_without_static)) -;; Production 276: ((union_type_without_static) (union_type_without_static "|" type_without_static)) -;; Production 277: ((intersection_type_without_static) (type_without_static T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type_without_static)) -;; Production 278: ((intersection_type_without_static) (intersection_type_without_static T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type_without_static)) -;; Production 279: ((return_type) (%empty)) -;; Production 280: ((return_type) (":" type_expr)) -;; Production 281: ((argument_list) ("(" ")")) -;; Production 282: ((argument_list) ("(" non_empty_argument_list possible_comma ")")) -;; Production 283: ((argument_list) ("(" T_ELLIPSIS ")")) -;; Production 284: ((non_empty_argument_list) (argument)) -;; Production 285: ((non_empty_argument_list) (non_empty_argument_list "," argument)) -;; Production 286: ((argument) (expr)) -;; Production 287: ((argument) (identifier ":" expr)) -;; Production 288: ((argument) (T_ELLIPSIS expr)) -;; Production 289: ((global_var_list) (global_var_list "," global_var)) -;; Production 290: ((global_var_list) (global_var)) -;; Production 291: ((global_var) (simple_variable)) -;; Production 292: ((static_var_list) (static_var_list "," static_var)) -;; Production 293: ((static_var_list) (static_var)) -;; Production 294: ((static_var) (T_VARIABLE)) -;; Production 295: ((static_var) (T_VARIABLE "=" expr)) -;; Production 296: ((class_statement_list) (class_statement_list class_statement)) -;; Production 297: ((class_statement_list) (%empty)) -;; Production 298: ((attributed_class_statement) (variable_modifiers optional_type_without_static property_list ";")) -;; Production 299: ((attributed_class_statement) (method_modifiers T_CONST class_const_list ";")) -;; Production 300: ((attributed_class_statement) (method_modifiers function returns_ref identifier backup_doc_comment "(" parameter_list ")" return_type backup_fn_flags method_body backup_fn_flags)) -;; Production 301: ((attributed_class_statement) (enum_case)) -;; Production 302: ((class_statement) (attributed_class_statement)) -;; Production 303: ((class_statement) (attributes attributed_class_statement)) -;; Production 304: ((class_statement) (T_USE class_name_list trait_adaptations)) -;; Production 305: ((class_name_list) (class_name)) -;; Production 306: ((class_name_list) (class_name_list "," class_name)) -;; Production 307: ((trait_adaptations) (";")) -;; Production 308: ((trait_adaptations) ("{" "}")) -;; Production 309: ((trait_adaptations) ("{" trait_adaptation_list "}")) -;; Production 310: ((trait_adaptation_list) (trait_adaptation)) -;; Production 311: ((trait_adaptation_list) (trait_adaptation_list trait_adaptation)) -;; Production 312: ((trait_adaptation) (trait_precedence ";")) -;; Production 313: ((trait_adaptation) (trait_alias ";")) -;; Production 314: ((trait_precedence) (absolute_trait_method_reference T_INSTEADOF class_name_list)) -;; Production 315: ((trait_alias) (trait_method_reference T_AS T_STRING)) -;; Production 316: ((trait_alias) (trait_method_reference T_AS reserved_non_modifiers)) -;; Production 317: ((trait_alias) (trait_method_reference T_AS member_modifier identifier)) -;; Production 318: ((trait_alias) (trait_method_reference T_AS member_modifier)) -;; Production 319: ((trait_method_reference) (identifier)) -;; Production 320: ((trait_method_reference) (absolute_trait_method_reference)) -;; Production 321: ((absolute_trait_method_reference) (class_name T_PAAMAYIM_NEKUDOTAYIM identifier)) -;; Production 322: ((method_body) (";")) -;; Production 323: ((method_body) ("{" inner_statement_list "}")) -;; Production 324: ((variable_modifiers) (non_empty_member_modifiers)) -;; Production 325: ((variable_modifiers) (T_VAR)) -;; Production 326: ((method_modifiers) (%empty)) -;; Production 327: ((method_modifiers) (non_empty_member_modifiers)) -;; Production 328: ((non_empty_member_modifiers) (member_modifier)) -;; Production 329: ((non_empty_member_modifiers) (non_empty_member_modifiers member_modifier)) -;; Production 330: ((member_modifier) (T_PUBLIC)) -;; Production 331: ((member_modifier) (T_PROTECTED)) -;; Production 332: ((member_modifier) (T_PRIVATE)) -;; Production 333: ((member_modifier) (T_STATIC)) -;; Production 334: ((member_modifier) (T_ABSTRACT)) -;; Production 335: ((member_modifier) (T_FINAL)) -;; Production 336: ((member_modifier) (T_READONLY)) -;; Production 337: ((property_list) (property_list "," property)) -;; Production 338: ((property_list) (property)) -;; Production 339: ((property) (T_VARIABLE backup_doc_comment)) -;; Production 340: ((property) (T_VARIABLE "=" expr backup_doc_comment)) -;; Production 341: ((class_const_list) (class_const_list "," class_const_decl)) -;; Production 342: ((class_const_list) (class_const_decl)) -;; Production 343: ((class_const_decl) (identifier "=" expr backup_doc_comment)) -;; Production 344: ((const_decl) (T_STRING "=" expr backup_doc_comment)) -;; Production 345: ((echo_expr_list) (echo_expr_list "," echo_expr)) -;; Production 346: ((echo_expr_list) (echo_expr)) -;; Production 347: ((echo_expr) (expr)) -;; Production 348: ((for_exprs) (%empty)) -;; Production 349: ((for_exprs) (non_empty_for_exprs)) -;; Production 350: ((non_empty_for_exprs) (non_empty_for_exprs "," expr)) -;; Production 351: ((non_empty_for_exprs) (expr)) -;; Production 352: ((anonymous_class) (T_CLASS ctor_arguments extends_from implements_list backup_doc_comment "{" class_statement_list "}")) -;; Production 353: ((new_expr) (T_NEW class_name_reference ctor_arguments)) -;; Production 354: ((new_expr) (T_NEW anonymous_class)) -;; Production 355: ((new_expr) (T_NEW attributes anonymous_class)) -;; Production 356: ((expr) (variable)) -;; Production 357: ((expr) (T_LIST "(" array_pair_list ")" "=" expr)) -;; Production 358: ((expr) ("[" array_pair_list "]" "=" expr)) -;; Production 359: ((expr) (variable "=" expr)) -;; Production 360: ((expr) (variable "=" ampersand variable)) -;; Production 361: ((expr) (T_CLONE expr)) -;; Production 362: ((expr) (variable T_PLUS_EQUAL expr)) -;; Production 363: ((expr) (variable T_MINUS_EQUAL expr)) -;; Production 364: ((expr) (variable T_MUL_EQUAL expr)) -;; Production 365: ((expr) (variable T_POW_EQUAL expr)) -;; Production 366: ((expr) (variable T_DIV_EQUAL expr)) -;; Production 367: ((expr) (variable T_CONCAT_EQUAL expr)) -;; Production 368: ((expr) (variable T_MOD_EQUAL expr)) -;; Production 369: ((expr) (variable T_AND_EQUAL expr)) -;; Production 370: ((expr) (variable T_OR_EQUAL expr)) -;; Production 371: ((expr) (variable T_XOR_EQUAL expr)) -;; Production 372: ((expr) (variable T_SL_EQUAL expr)) -;; Production 373: ((expr) (variable T_SR_EQUAL expr)) -;; Production 374: ((expr) (variable T_COALESCE_EQUAL expr)) -;; Production 375: ((expr) (variable T_INC)) -;; Production 376: ((expr) (T_INC variable)) -;; Production 377: ((expr) (variable T_DEC)) -;; Production 378: ((expr) (T_DEC variable)) -;; Production 379: ((expr) (expr T_BOOLEAN_OR expr)) -;; Production 380: ((expr) (expr T_BOOLEAN_AND expr)) -;; Production 381: ((expr) (expr T_LOGICAL_OR expr)) -;; Production 382: ((expr) (expr T_LOGICAL_AND expr)) -;; Production 383: ((expr) (expr T_LOGICAL_XOR expr)) -;; Production 384: ((expr) (expr "|" expr)) -;; Production 385: ((expr) (expr T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG expr)) -;; Production 386: ((expr) (expr T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG expr)) -;; Production 387: ((expr) (expr "^" expr)) -;; Production 388: ((expr) (expr "." expr)) -;; Production 389: ((expr) (expr "+" expr)) -;; Production 390: ((expr) (expr "-" expr)) -;; Production 391: ((expr) (expr "*" expr)) -;; Production 392: ((expr) (expr T_POW expr)) -;; Production 393: ((expr) (expr "/" expr)) -;; Production 394: ((expr) (expr "%" expr)) -;; Production 395: ((expr) (expr T_SL expr)) -;; Production 396: ((expr) (expr T_SR expr)) -;; Production 397: ((expr) ("+" expr)) -;; Production 398: ((expr) ("-" expr)) -;; Production 399: ((expr) ("!" expr)) -;; Production 400: ((expr) ("~" expr)) -;; Production 401: ((expr) (expr T_IS_IDENTICAL expr)) -;; Production 402: ((expr) (expr T_IS_NOT_IDENTICAL expr)) -;; Production 403: ((expr) (expr T_IS_EQUAL expr)) -;; Production 404: ((expr) (expr T_IS_NOT_EQUAL expr)) -;; Production 405: ((expr) (expr "<" expr)) -;; Production 406: ((expr) (expr T_IS_SMALLER_OR_EQUAL expr)) -;; Production 407: ((expr) (expr ">" expr)) -;; Production 408: ((expr) (expr T_IS_GREATER_OR_EQUAL expr)) -;; Production 409: ((expr) (expr T_SPACESHIP expr)) -;; Production 410: ((expr) (expr T_INSTANCEOF class_name_reference)) -;; Production 411: ((expr) ("(" expr ")")) -;; Production 412: ((expr) (new_expr)) -;; Production 413: ((expr) (expr "?" expr ":" expr)) -;; Production 414: ((expr) (expr "?" ":" expr)) -;; Production 415: ((expr) (expr T_COALESCE expr)) -;; Production 416: ((expr) (internal_functions_in_yacc)) -;; Production 417: ((expr) (T_INT_CAST expr)) -;; Production 418: ((expr) (T_DOUBLE_CAST expr)) -;; Production 419: ((expr) (T_STRING_CAST expr)) -;; Production 420: ((expr) (T_ARRAY_CAST expr)) -;; Production 421: ((expr) (T_OBJECT_CAST expr)) -;; Production 422: ((expr) (T_BOOL_CAST expr)) -;; Production 423: ((expr) (T_UNSET_CAST expr)) -;; Production 424: ((expr) (T_EXIT exit_expr)) -;; Production 425: ((expr) ("@" expr)) -;; Production 426: ((expr) (scalar)) -;; Production 427: ((expr) ("`" backticks_expr "`")) -;; Production 428: ((expr) (T_PRINT expr)) -;; Production 429: ((expr) (T_YIELD)) -;; Production 430: ((expr) (T_YIELD expr)) -;; Production 431: ((expr) (T_YIELD expr T_DOUBLE_ARROW expr)) -;; Production 432: ((expr) (T_YIELD_FROM expr)) -;; Production 433: ((expr) (T_THROW expr)) -;; Production 434: ((expr) (inline_function)) -;; Production 435: ((expr) (attributes inline_function)) -;; Production 436: ((expr) (T_STATIC inline_function)) -;; Production 437: ((expr) (attributes T_STATIC inline_function)) -;; Production 438: ((expr) (match)) -;; Production 439: ((inline_function) (function returns_ref backup_doc_comment "(" parameter_list ")" lexical_vars return_type backup_fn_flags "{" inner_statement_list "}" backup_fn_flags)) -;; Production 440: ((inline_function) (fn returns_ref backup_doc_comment "(" parameter_list ")" return_type T_DOUBLE_ARROW backup_fn_flags backup_lex_pos expr backup_fn_flags)) -;; Production 441: ((fn) (T_FN)) -;; Production 442: ((function) (T_FUNCTION)) -;; Production 443: ((backup_doc_comment) (%empty)) -;; Production 444: ((backup_fn_flags) (%empty)) -;; Production 445: ((backup_lex_pos) (%empty)) -;; Production 446: ((returns_ref) (%empty)) -;; Production 447: ((returns_ref) (ampersand)) -;; Production 448: ((lexical_vars) (%empty)) -;; Production 449: ((lexical_vars) (T_USE "(" lexical_var_list possible_comma ")")) -;; Production 450: ((lexical_var_list) (lexical_var_list "," lexical_var)) -;; Production 451: ((lexical_var_list) (lexical_var)) -;; Production 452: ((lexical_var) (T_VARIABLE)) -;; Production 453: ((lexical_var) (ampersand T_VARIABLE)) -;; Production 454: ((function_call) (name argument_list)) -;; Production 455: ((function_call) (class_name T_PAAMAYIM_NEKUDOTAYIM member_name argument_list)) -;; Production 456: ((function_call) (variable_class_name T_PAAMAYIM_NEKUDOTAYIM member_name argument_list)) -;; Production 457: ((function_call) (callable_expr argument_list)) -;; Production 458: ((class_name) (T_STATIC)) -;; Production 459: ((class_name) (name)) -;; Production 460: ((class_name_reference) (class_name)) -;; Production 461: ((class_name_reference) (new_variable)) -;; Production 462: ((class_name_reference) ("(" expr ")")) -;; Production 463: ((exit_expr) (%empty)) -;; Production 464: ((exit_expr) ("(" optional_expr ")")) -;; Production 465: ((backticks_expr) (%empty)) -;; Production 466: ((backticks_expr) (T_ENCAPSED_AND_WHITESPACE)) -;; Production 467: ((backticks_expr) (encaps_list)) -;; Production 468: ((ctor_arguments) (%empty)) -;; Production 469: ((ctor_arguments) (argument_list)) -;; Production 470: ((dereferenceable_scalar) (T_ARRAY "(" array_pair_list ")")) -;; Production 471: ((dereferenceable_scalar) ("[" array_pair_list "]")) -;; Production 472: ((dereferenceable_scalar) (T_CONSTANT_ENCAPSED_STRING)) -;; Production 473: ((dereferenceable_scalar) ("\"" encaps_list "\"")) -;; Production 474: ((scalar) (T_LNUMBER)) -;; Production 475: ((scalar) (T_DNUMBER)) -;; Production 476: ((scalar) (T_START_HEREDOC T_ENCAPSED_AND_WHITESPACE T_END_HEREDOC)) -;; Production 477: ((scalar) (T_START_HEREDOC T_END_HEREDOC)) -;; Production 478: ((scalar) (T_START_HEREDOC encaps_list T_END_HEREDOC)) -;; Production 479: ((scalar) (dereferenceable_scalar)) -;; Production 480: ((scalar) (constant)) -;; Production 481: ((scalar) (class_constant)) -;; Production 482: ((constant) (name)) -;; Production 483: ((constant) (T_LINE)) -;; Production 484: ((constant) (T_FILE)) -;; Production 485: ((constant) (T_DIR)) -;; Production 486: ((constant) (T_TRAIT_C)) -;; Production 487: ((constant) (T_METHOD_C)) -;; Production 488: ((constant) (T_FUNC_C)) -;; Production 489: ((constant) (T_NS_C)) -;; Production 490: ((constant) (T_CLASS_C)) -;; Production 491: ((class_constant) (class_name T_PAAMAYIM_NEKUDOTAYIM identifier)) -;; Production 492: ((class_constant) (variable_class_name T_PAAMAYIM_NEKUDOTAYIM identifier)) -;; Production 493: ((optional_expr) (%empty)) -;; Production 494: ((optional_expr) (expr)) -;; Production 495: ((variable_class_name) (fully_dereferenceable)) -;; Production 496: ((fully_dereferenceable) (variable)) -;; Production 497: ((fully_dereferenceable) ("(" expr ")")) -;; Production 498: ((fully_dereferenceable) (dereferenceable_scalar)) -;; Production 499: ((fully_dereferenceable) (class_constant)) -;; Production 500: ((array_object_dereferenceable) (fully_dereferenceable)) -;; Production 501: ((array_object_dereferenceable) (constant)) -;; Production 502: ((callable_expr) (callable_variable)) -;; Production 503: ((callable_expr) ("(" expr ")")) -;; Production 504: ((callable_expr) (dereferenceable_scalar)) -;; Production 505: ((callable_variable) (simple_variable)) -;; Production 506: ((callable_variable) (array_object_dereferenceable "[" optional_expr "]")) -;; Production 507: ((callable_variable) (array_object_dereferenceable "{" expr "}")) -;; Production 508: ((callable_variable) (array_object_dereferenceable T_OBJECT_OPERATOR property_name argument_list)) -;; Production 509: ((callable_variable) (array_object_dereferenceable T_NULLSAFE_OBJECT_OPERATOR property_name argument_list)) -;; Production 510: ((callable_variable) (function_call)) -;; Production 511: ((variable) (callable_variable)) -;; Production 512: ((variable) (static_member)) -;; Production 513: ((variable) (array_object_dereferenceable T_OBJECT_OPERATOR property_name)) -;; Production 514: ((variable) (array_object_dereferenceable T_NULLSAFE_OBJECT_OPERATOR property_name)) -;; Production 515: ((simple_variable) (T_VARIABLE)) -;; Production 516: ((simple_variable) ("$" "{" expr "}")) -;; Production 517: ((simple_variable) ("$" simple_variable)) -;; Production 518: ((static_member) (class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable)) -;; Production 519: ((static_member) (variable_class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable)) -;; Production 520: ((new_variable) (simple_variable)) -;; Production 521: ((new_variable) (new_variable "[" optional_expr "]")) -;; Production 522: ((new_variable) (new_variable "{" expr "}")) -;; Production 523: ((new_variable) (new_variable T_OBJECT_OPERATOR property_name)) -;; Production 524: ((new_variable) (new_variable T_NULLSAFE_OBJECT_OPERATOR property_name)) -;; Production 525: ((new_variable) (class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable)) -;; Production 526: ((new_variable) (new_variable T_PAAMAYIM_NEKUDOTAYIM simple_variable)) -;; Production 527: ((member_name) (identifier)) -;; Production 528: ((member_name) ("{" expr "}")) -;; Production 529: ((member_name) (simple_variable)) -;; Production 530: ((property_name) (T_STRING)) -;; Production 531: ((property_name) ("{" expr "}")) -;; Production 532: ((property_name) (simple_variable)) -;; Production 533: ((array_pair_list) (non_empty_array_pair_list)) -;; Production 534: ((possible_array_pair) (%empty)) -;; Production 535: ((possible_array_pair) (array_pair)) -;; Production 536: ((non_empty_array_pair_list) (non_empty_array_pair_list "," possible_array_pair)) -;; Production 537: ((non_empty_array_pair_list) (possible_array_pair)) -;; Production 538: ((array_pair) (expr T_DOUBLE_ARROW expr)) -;; Production 539: ((array_pair) (expr)) -;; Production 540: ((array_pair) (expr T_DOUBLE_ARROW ampersand variable)) -;; Production 541: ((array_pair) (ampersand variable)) -;; Production 542: ((array_pair) (T_ELLIPSIS expr)) -;; Production 543: ((array_pair) (expr T_DOUBLE_ARROW T_LIST "(" array_pair_list ")")) -;; Production 544: ((array_pair) (T_LIST "(" array_pair_list ")")) -;; Production 545: ((encaps_list) (encaps_list encaps_var)) -;; Production 546: ((encaps_list) (encaps_list T_ENCAPSED_AND_WHITESPACE)) -;; Production 547: ((encaps_list) (encaps_var)) -;; Production 548: ((encaps_list) (T_ENCAPSED_AND_WHITESPACE encaps_var)) -;; Production 549: ((encaps_var) (T_VARIABLE)) -;; Production 550: ((encaps_var) (T_VARIABLE "[" encaps_var_offset "]")) -;; Production 551: ((encaps_var) (T_VARIABLE T_OBJECT_OPERATOR T_STRING)) -;; Production 552: ((encaps_var) (T_VARIABLE T_NULLSAFE_OBJECT_OPERATOR T_STRING)) -;; Production 553: ((encaps_var) (T_DOLLAR_OPEN_CURLY_BRACES expr "}")) -;; Production 554: ((encaps_var) (T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME "}")) -;; Production 555: ((encaps_var) (T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME "[" expr "]" "}")) -;; Production 556: ((encaps_var) (T_CURLY_OPEN variable "}")) -;; Production 557: ((encaps_var_offset) (T_STRING)) -;; Production 558: ((encaps_var_offset) (T_NUM_STRING)) -;; Production 559: ((encaps_var_offset) ("-" T_NUM_STRING)) -;; Production 560: ((encaps_var_offset) (T_VARIABLE)) -;; Production 561: ((internal_functions_in_yacc) (T_ISSET "(" isset_variables possible_comma ")")) -;; Production 562: ((internal_functions_in_yacc) (T_EMPTY "(" expr ")")) -;; Production 563: ((internal_functions_in_yacc) (T_INCLUDE expr)) -;; Production 564: ((internal_functions_in_yacc) (T_INCLUDE_ONCE expr)) -;; Production 565: ((internal_functions_in_yacc) (T_EVAL "(" expr ")")) -;; Production 566: ((internal_functions_in_yacc) (T_REQUIRE expr)) -;; Production 567: ((internal_functions_in_yacc) (T_REQUIRE_ONCE expr)) -;; Production 568: ((isset_variables) (isset_variable)) -;; Production 569: ((isset_variables) (isset_variables "," isset_variable)) -;; Production 570: ((isset_variable) (expr)) - +;; Production 179: ((function_name) (T_STRING)) +;; Production 180: ((function_name) (T_READONLY)) +;; Production 181: ((function_declaration_statement) (function returns_ref function_name backup_doc_comment "(" parameter_list ")" return_type backup_fn_flags "{" inner_statement_list "}" backup_fn_flags)) +;; Production 182: ((is_reference) (%empty)) +;; Production 183: ((is_reference) (T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG)) +;; Production 184: ((is_variadic) (%empty)) +;; Production 185: ((is_variadic) (T_ELLIPSIS)) +;; Production 186: ((class_declaration_statement) (class_modifiers T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) +;; Production 187: ((class_declaration_statement) (T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) +;; Production 188: ((class_modifiers) (class_modifier)) +;; Production 189: ((class_modifiers) (class_modifiers class_modifier)) +;; Production 190: ((class_modifier) (T_ABSTRACT)) +;; Production 191: ((class_modifier) (T_FINAL)) +;; Production 192: ((class_modifier) (T_READONLY)) +;; Production 193: ((trait_declaration_statement) (T_TRAIT T_STRING backup_doc_comment "{" class_statement_list "}")) +;; Production 194: ((interface_declaration_statement) (T_INTERFACE T_STRING interface_extends_list backup_doc_comment "{" class_statement_list "}")) +;; Production 195: ((enum_declaration_statement) (T_ENUM T_STRING enum_backing_type implements_list backup_doc_comment "{" class_statement_list "}")) +;; Production 196: ((enum_backing_type) (%empty)) +;; Production 197: ((enum_backing_type) (":" type_expr)) +;; Production 198: ((enum_case) (T_CASE backup_doc_comment identifier enum_case_expr ";")) +;; Production 199: ((enum_case_expr) (%empty)) +;; Production 200: ((enum_case_expr) ("=" expr)) +;; Production 201: ((extends_from) (%empty)) +;; Production 202: ((extends_from) (T_EXTENDS class_name)) +;; Production 203: ((interface_extends_list) (%empty)) +;; Production 204: ((interface_extends_list) (T_EXTENDS class_name_list)) +;; Production 205: ((implements_list) (%empty)) +;; Production 206: ((implements_list) (T_IMPLEMENTS class_name_list)) +;; Production 207: ((foreach_variable) (variable)) +;; Production 208: ((foreach_variable) (ampersand variable)) +;; Production 209: ((foreach_variable) (T_LIST "(" array_pair_list ")")) +;; Production 210: ((foreach_variable) ("[" array_pair_list "]")) +;; Production 211: ((for_statement) (statement)) +;; Production 212: ((for_statement) (":" inner_statement_list T_ENDFOR ";")) +;; Production 213: ((foreach_statement) (statement)) +;; Production 214: ((foreach_statement) (":" inner_statement_list T_ENDFOREACH ";")) +;; Production 215: ((declare_statement) (statement)) +;; Production 216: ((declare_statement) (":" inner_statement_list T_ENDDECLARE ";")) +;; Production 217: ((switch_case_list) ("{" case_list "}")) +;; Production 218: ((switch_case_list) ("{" ";" case_list "}")) +;; Production 219: ((switch_case_list) (":" case_list T_ENDSWITCH ";")) +;; Production 220: ((switch_case_list) (":" ";" case_list T_ENDSWITCH ";")) +;; Production 221: ((case_list) (%empty)) +;; Production 222: ((case_list) (case_list T_CASE expr case_separator inner_statement_list)) +;; Production 223: ((case_list) (case_list T_DEFAULT case_separator inner_statement_list)) +;; Production 224: ((case_separator) (":")) +;; Production 225: ((case_separator) (";")) +;; Production 226: ((match) (T_MATCH "(" expr ")" "{" match_arm_list "}")) +;; Production 227: ((match_arm_list) (%empty)) +;; Production 228: ((match_arm_list) (non_empty_match_arm_list possible_comma)) +;; Production 229: ((non_empty_match_arm_list) (match_arm)) +;; Production 230: ((non_empty_match_arm_list) (non_empty_match_arm_list "," match_arm)) +;; Production 231: ((match_arm) (match_arm_cond_list possible_comma T_DOUBLE_ARROW expr)) +;; Production 232: ((match_arm) (T_DEFAULT possible_comma T_DOUBLE_ARROW expr)) +;; Production 233: ((match_arm_cond_list) (expr)) +;; Production 234: ((match_arm_cond_list) (match_arm_cond_list "," expr)) +;; Production 235: ((while_statement) (statement)) +;; Production 236: ((while_statement) (":" inner_statement_list T_ENDWHILE ";")) +;; Production 237: ((if_stmt_without_else) (T_IF "(" expr ")" statement)) +;; Production 238: ((if_stmt_without_else) (if_stmt_without_else T_ELSEIF "(" expr ")" statement)) +;; Production 239: ((if_stmt) (if_stmt_without_else)) +;; Production 240: ((if_stmt) (if_stmt_without_else T_ELSE statement)) +;; Production 241: ((alt_if_stmt_without_else) (T_IF "(" expr ")" ":" inner_statement_list)) +;; Production 242: ((alt_if_stmt_without_else) (alt_if_stmt_without_else T_ELSEIF "(" expr ")" ":" inner_statement_list)) +;; Production 243: ((alt_if_stmt) (alt_if_stmt_without_else T_ENDIF ";")) +;; Production 244: ((alt_if_stmt) (alt_if_stmt_without_else T_ELSE ":" inner_statement_list T_ENDIF ";")) +;; Production 245: ((parameter_list) (non_empty_parameter_list possible_comma)) +;; Production 246: ((parameter_list) (%empty)) +;; Production 247: ((non_empty_parameter_list) (attributed_parameter)) +;; Production 248: ((non_empty_parameter_list) (non_empty_parameter_list "," attributed_parameter)) +;; Production 249: ((attributed_parameter) (attributes parameter)) +;; Production 250: ((attributed_parameter) (parameter)) +;; Production 251: ((optional_property_modifiers) (%empty)) +;; Production 252: ((optional_property_modifiers) (optional_property_modifiers property_modifier)) +;; Production 253: ((property_modifier) (T_PUBLIC)) +;; Production 254: ((property_modifier) (T_PROTECTED)) +;; Production 255: ((property_modifier) (T_PRIVATE)) +;; Production 256: ((property_modifier) (T_READONLY)) +;; Production 257: ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment)) +;; Production 258: ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment "=" expr)) +;; Production 259: ((optional_type_without_static) (%empty)) +;; Production 260: ((optional_type_without_static) (type_expr_without_static)) +;; Production 261: ((type_expr) (type)) +;; Production 262: ((type_expr) ("?" type)) +;; Production 263: ((type_expr) (union_type)) +;; Production 264: ((type_expr) (intersection_type)) +;; Production 265: ((type) (type_without_static)) +;; Production 266: ((type) (T_STATIC)) +;; Production 267: ((union_type_element) (type)) +;; Production 268: ((union_type_element) ("(" intersection_type ")")) +;; Production 269: ((union_type) (union_type_element "|" union_type_element)) +;; Production 270: ((union_type) (union_type "|" union_type_element)) +;; Production 271: ((intersection_type) (type T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type)) +;; Production 272: ((intersection_type) (intersection_type T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type)) +;; Production 273: ((type_expr_without_static) (type_without_static)) +;; Production 274: ((type_expr_without_static) ("?" type_without_static)) +;; Production 275: ((type_expr_without_static) (union_type_without_static)) +;; Production 276: ((type_expr_without_static) (intersection_type_without_static)) +;; Production 277: ((type_without_static) (T_ARRAY)) +;; Production 278: ((type_without_static) (T_CALLABLE)) +;; Production 279: ((type_without_static) (name)) +;; Production 280: ((union_type_without_static_element) (type_without_static)) +;; Production 281: ((union_type_without_static_element) ("(" intersection_type_without_static ")")) +;; Production 282: ((union_type_without_static) (union_type_without_static_element "|" union_type_without_static_element)) +;; Production 283: ((union_type_without_static) (union_type_without_static "|" union_type_without_static_element)) +;; Production 284: ((intersection_type_without_static) (type_without_static T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type_without_static)) +;; Production 285: ((intersection_type_without_static) (intersection_type_without_static T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG type_without_static)) +;; Production 286: ((return_type) (%empty)) +;; Production 287: ((return_type) (":" type_expr)) +;; Production 288: ((argument_list) ("(" ")")) +;; Production 289: ((argument_list) ("(" non_empty_argument_list possible_comma ")")) +;; Production 290: ((argument_list) ("(" T_ELLIPSIS ")")) +;; Production 291: ((non_empty_argument_list) (argument)) +;; Production 292: ((non_empty_argument_list) (non_empty_argument_list "," argument)) +;; Production 293: ((argument) (expr)) +;; Production 294: ((argument) (identifier ":" expr)) +;; Production 295: ((argument) (T_ELLIPSIS expr)) +;; Production 296: ((global_var_list) (global_var_list "," global_var)) +;; Production 297: ((global_var_list) (global_var)) +;; Production 298: ((global_var) (simple_variable)) +;; Production 299: ((static_var_list) (static_var_list "," static_var)) +;; Production 300: ((static_var_list) (static_var)) +;; Production 301: ((static_var) (T_VARIABLE)) +;; Production 302: ((static_var) (T_VARIABLE "=" expr)) +;; Production 303: ((class_statement_list) (class_statement_list class_statement)) +;; Production 304: ((class_statement_list) (%empty)) +;; Production 305: ((attributed_class_statement) (variable_modifiers optional_type_without_static property_list ";")) +;; Production 306: ((attributed_class_statement) (method_modifiers T_CONST class_const_list ";")) +;; Production 307: ((attributed_class_statement) (method_modifiers function returns_ref identifier backup_doc_comment "(" parameter_list ")" return_type backup_fn_flags method_body backup_fn_flags)) +;; Production 308: ((attributed_class_statement) (enum_case)) +;; Production 309: ((class_statement) (attributed_class_statement)) +;; Production 310: ((class_statement) (attributes attributed_class_statement)) +;; Production 311: ((class_statement) (T_USE class_name_list trait_adaptations)) +;; Production 312: ((class_name_list) (class_name)) +;; Production 313: ((class_name_list) (class_name_list "," class_name)) +;; Production 314: ((trait_adaptations) (";")) +;; Production 315: ((trait_adaptations) ("{" "}")) +;; Production 316: ((trait_adaptations) ("{" trait_adaptation_list "}")) +;; Production 317: ((trait_adaptation_list) (trait_adaptation)) +;; Production 318: ((trait_adaptation_list) (trait_adaptation_list trait_adaptation)) +;; Production 319: ((trait_adaptation) (trait_precedence ";")) +;; Production 320: ((trait_adaptation) (trait_alias ";")) +;; Production 321: ((trait_precedence) (absolute_trait_method_reference T_INSTEADOF class_name_list)) +;; Production 322: ((trait_alias) (trait_method_reference T_AS T_STRING)) +;; Production 323: ((trait_alias) (trait_method_reference T_AS reserved_non_modifiers)) +;; Production 324: ((trait_alias) (trait_method_reference T_AS member_modifier identifier)) +;; Production 325: ((trait_alias) (trait_method_reference T_AS member_modifier)) +;; Production 326: ((trait_method_reference) (identifier)) +;; Production 327: ((trait_method_reference) (absolute_trait_method_reference)) +;; Production 328: ((absolute_trait_method_reference) (class_name T_PAAMAYIM_NEKUDOTAYIM identifier)) +;; Production 329: ((method_body) (";")) +;; Production 330: ((method_body) ("{" inner_statement_list "}")) +;; Production 331: ((variable_modifiers) (non_empty_member_modifiers)) +;; Production 332: ((variable_modifiers) (T_VAR)) +;; Production 333: ((method_modifiers) (%empty)) +;; Production 334: ((method_modifiers) (non_empty_member_modifiers)) +;; Production 335: ((non_empty_member_modifiers) (member_modifier)) +;; Production 336: ((non_empty_member_modifiers) (non_empty_member_modifiers member_modifier)) +;; Production 337: ((member_modifier) (T_PUBLIC)) +;; Production 338: ((member_modifier) (T_PROTECTED)) +;; Production 339: ((member_modifier) (T_PRIVATE)) +;; Production 340: ((member_modifier) (T_STATIC)) +;; Production 341: ((member_modifier) (T_ABSTRACT)) +;; Production 342: ((member_modifier) (T_FINAL)) +;; Production 343: ((member_modifier) (T_READONLY)) +;; Production 344: ((property_list) (property_list "," property)) +;; Production 345: ((property_list) (property)) +;; Production 346: ((property) (T_VARIABLE backup_doc_comment)) +;; Production 347: ((property) (T_VARIABLE "=" expr backup_doc_comment)) +;; Production 348: ((class_const_list) (class_const_list "," class_const_decl)) +;; Production 349: ((class_const_list) (class_const_decl)) +;; Production 350: ((class_const_decl) (identifier "=" expr backup_doc_comment)) +;; Production 351: ((const_decl) (T_STRING "=" expr backup_doc_comment)) +;; Production 352: ((echo_expr_list) (echo_expr_list "," echo_expr)) +;; Production 353: ((echo_expr_list) (echo_expr)) +;; Production 354: ((echo_expr) (expr)) +;; Production 355: ((for_exprs) (%empty)) +;; Production 356: ((for_exprs) (non_empty_for_exprs)) +;; Production 357: ((non_empty_for_exprs) (non_empty_for_exprs "," expr)) +;; Production 358: ((non_empty_for_exprs) (expr)) +;; Production 359: ((anonymous_class) (T_CLASS ctor_arguments extends_from implements_list backup_doc_comment "{" class_statement_list "}")) +;; Production 360: ((new_expr) (T_NEW class_name_reference ctor_arguments)) +;; Production 361: ((new_expr) (T_NEW anonymous_class)) +;; Production 362: ((new_expr) (T_NEW attributes anonymous_class)) +;; Production 363: ((expr) (variable)) +;; Production 364: ((expr) (T_LIST "(" array_pair_list ")" "=" expr)) +;; Production 365: ((expr) ("[" array_pair_list "]" "=" expr)) +;; Production 366: ((expr) (variable "=" expr)) +;; Production 367: ((expr) (variable "=" ampersand variable)) +;; Production 368: ((expr) (T_CLONE expr)) +;; Production 369: ((expr) (variable T_PLUS_EQUAL expr)) +;; Production 370: ((expr) (variable T_MINUS_EQUAL expr)) +;; Production 371: ((expr) (variable T_MUL_EQUAL expr)) +;; Production 372: ((expr) (variable T_POW_EQUAL expr)) +;; Production 373: ((expr) (variable T_DIV_EQUAL expr)) +;; Production 374: ((expr) (variable T_CONCAT_EQUAL expr)) +;; Production 375: ((expr) (variable T_MOD_EQUAL expr)) +;; Production 376: ((expr) (variable T_AND_EQUAL expr)) +;; Production 377: ((expr) (variable T_OR_EQUAL expr)) +;; Production 378: ((expr) (variable T_XOR_EQUAL expr)) +;; Production 379: ((expr) (variable T_SL_EQUAL expr)) +;; Production 380: ((expr) (variable T_SR_EQUAL expr)) +;; Production 381: ((expr) (variable T_COALESCE_EQUAL expr)) +;; Production 382: ((expr) (variable T_INC)) +;; Production 383: ((expr) (T_INC variable)) +;; Production 384: ((expr) (variable T_DEC)) +;; Production 385: ((expr) (T_DEC variable)) +;; Production 386: ((expr) (expr T_BOOLEAN_OR expr)) +;; Production 387: ((expr) (expr T_BOOLEAN_AND expr)) +;; Production 388: ((expr) (expr T_LOGICAL_OR expr)) +;; Production 389: ((expr) (expr T_LOGICAL_AND expr)) +;; Production 390: ((expr) (expr T_LOGICAL_XOR expr)) +;; Production 391: ((expr) (expr "|" expr)) +;; Production 392: ((expr) (expr T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG expr)) +;; Production 393: ((expr) (expr T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG expr)) +;; Production 394: ((expr) (expr "^" expr)) +;; Production 395: ((expr) (expr "." expr)) +;; Production 396: ((expr) (expr "+" expr)) +;; Production 397: ((expr) (expr "-" expr)) +;; Production 398: ((expr) (expr "*" expr)) +;; Production 399: ((expr) (expr T_POW expr)) +;; Production 400: ((expr) (expr "/" expr)) +;; Production 401: ((expr) (expr "%" expr)) +;; Production 402: ((expr) (expr T_SL expr)) +;; Production 403: ((expr) (expr T_SR expr)) +;; Production 404: ((expr) ("+" expr)) +;; Production 405: ((expr) ("-" expr)) +;; Production 406: ((expr) ("!" expr)) +;; Production 407: ((expr) ("~" expr)) +;; Production 408: ((expr) (expr T_IS_IDENTICAL expr)) +;; Production 409: ((expr) (expr T_IS_NOT_IDENTICAL expr)) +;; Production 410: ((expr) (expr T_IS_EQUAL expr)) +;; Production 411: ((expr) (expr T_IS_NOT_EQUAL expr)) +;; Production 412: ((expr) (expr "<" expr)) +;; Production 413: ((expr) (expr T_IS_SMALLER_OR_EQUAL expr)) +;; Production 414: ((expr) (expr ">" expr)) +;; Production 415: ((expr) (expr T_IS_GREATER_OR_EQUAL expr)) +;; Production 416: ((expr) (expr T_SPACESHIP expr)) +;; Production 417: ((expr) (expr T_INSTANCEOF class_name_reference)) +;; Production 418: ((expr) ("(" expr ")")) +;; Production 419: ((expr) (new_expr)) +;; Production 420: ((expr) (expr "?" expr ":" expr)) +;; Production 421: ((expr) (expr "?" ":" expr)) +;; Production 422: ((expr) (expr T_COALESCE expr)) +;; Production 423: ((expr) (internal_functions_in_yacc)) +;; Production 424: ((expr) (T_INT_CAST expr)) +;; Production 425: ((expr) (T_DOUBLE_CAST expr)) +;; Production 426: ((expr) (T_STRING_CAST expr)) +;; Production 427: ((expr) (T_ARRAY_CAST expr)) +;; Production 428: ((expr) (T_OBJECT_CAST expr)) +;; Production 429: ((expr) (T_BOOL_CAST expr)) +;; Production 430: ((expr) (T_UNSET_CAST expr)) +;; Production 431: ((expr) (T_EXIT exit_expr)) +;; Production 432: ((expr) ("@" expr)) +;; Production 433: ((expr) (scalar)) +;; Production 434: ((expr) ("`" backticks_expr "`")) +;; Production 435: ((expr) (T_PRINT expr)) +;; Production 436: ((expr) (T_YIELD)) +;; Production 437: ((expr) (T_YIELD expr)) +;; Production 438: ((expr) (T_YIELD expr T_DOUBLE_ARROW expr)) +;; Production 439: ((expr) (T_YIELD_FROM expr)) +;; Production 440: ((expr) (T_THROW expr)) +;; Production 441: ((expr) (inline_function)) +;; Production 442: ((expr) (attributes inline_function)) +;; Production 443: ((expr) (T_STATIC inline_function)) +;; Production 444: ((expr) (attributes T_STATIC inline_function)) +;; Production 445: ((expr) (match)) +;; Production 446: ((inline_function) (function returns_ref backup_doc_comment "(" parameter_list ")" lexical_vars return_type backup_fn_flags "{" inner_statement_list "}" backup_fn_flags)) +;; Production 447: ((inline_function) (fn returns_ref backup_doc_comment "(" parameter_list ")" return_type T_DOUBLE_ARROW backup_fn_flags backup_lex_pos expr backup_fn_flags)) +;; Production 448: ((fn) (T_FN)) +;; Production 449: ((function) (T_FUNCTION)) +;; Production 450: ((backup_doc_comment) (%empty)) +;; Production 451: ((backup_fn_flags) (%empty)) +;; Production 452: ((backup_lex_pos) (%empty)) +;; Production 453: ((returns_ref) (%empty)) +;; Production 454: ((returns_ref) (ampersand)) +;; Production 455: ((lexical_vars) (%empty)) +;; Production 456: ((lexical_vars) (T_USE "(" lexical_var_list possible_comma ")")) +;; Production 457: ((lexical_var_list) (lexical_var_list "," lexical_var)) +;; Production 458: ((lexical_var_list) (lexical_var)) +;; Production 459: ((lexical_var) (T_VARIABLE)) +;; Production 460: ((lexical_var) (ampersand T_VARIABLE)) +;; Production 461: ((function_call) (name argument_list)) +;; Production 462: ((function_call) (T_READONLY argument_list)) +;; Production 463: ((function_call) (class_name T_PAAMAYIM_NEKUDOTAYIM member_name argument_list)) +;; Production 464: ((function_call) (variable_class_name T_PAAMAYIM_NEKUDOTAYIM member_name argument_list)) +;; Production 465: ((function_call) (callable_expr argument_list)) +;; Production 466: ((class_name) (T_STATIC)) +;; Production 467: ((class_name) (name)) +;; Production 468: ((class_name_reference) (class_name)) +;; Production 469: ((class_name_reference) (new_variable)) +;; Production 470: ((class_name_reference) ("(" expr ")")) +;; Production 471: ((exit_expr) (%empty)) +;; Production 472: ((exit_expr) ("(" optional_expr ")")) +;; Production 473: ((backticks_expr) (%empty)) +;; Production 474: ((backticks_expr) (T_ENCAPSED_AND_WHITESPACE)) +;; Production 475: ((backticks_expr) (encaps_list)) +;; Production 476: ((ctor_arguments) (%empty)) +;; Production 477: ((ctor_arguments) (argument_list)) +;; Production 478: ((dereferenceable_scalar) (T_ARRAY "(" array_pair_list ")")) +;; Production 479: ((dereferenceable_scalar) ("[" array_pair_list "]")) +;; Production 480: ((dereferenceable_scalar) (T_CONSTANT_ENCAPSED_STRING)) +;; Production 481: ((dereferenceable_scalar) ("\"" encaps_list "\"")) +;; Production 482: ((scalar) (T_LNUMBER)) +;; Production 483: ((scalar) (T_DNUMBER)) +;; Production 484: ((scalar) (T_START_HEREDOC T_ENCAPSED_AND_WHITESPACE T_END_HEREDOC)) +;; Production 485: ((scalar) (T_START_HEREDOC T_END_HEREDOC)) +;; Production 486: ((scalar) (T_START_HEREDOC encaps_list T_END_HEREDOC)) +;; Production 487: ((scalar) (dereferenceable_scalar)) +;; Production 488: ((scalar) (constant)) +;; Production 489: ((scalar) (class_constant)) +;; Production 490: ((constant) (name)) +;; Production 491: ((constant) (T_LINE)) +;; Production 492: ((constant) (T_FILE)) +;; Production 493: ((constant) (T_DIR)) +;; Production 494: ((constant) (T_TRAIT_C)) +;; Production 495: ((constant) (T_METHOD_C)) +;; Production 496: ((constant) (T_FUNC_C)) +;; Production 497: ((constant) (T_NS_C)) +;; Production 498: ((constant) (T_CLASS_C)) +;; Production 499: ((class_constant) (class_name T_PAAMAYIM_NEKUDOTAYIM identifier)) +;; Production 500: ((class_constant) (variable_class_name T_PAAMAYIM_NEKUDOTAYIM identifier)) +;; Production 501: ((optional_expr) (%empty)) +;; Production 502: ((optional_expr) (expr)) +;; Production 503: ((variable_class_name) (fully_dereferenceable)) +;; Production 504: ((fully_dereferenceable) (variable)) +;; Production 505: ((fully_dereferenceable) ("(" expr ")")) +;; Production 506: ((fully_dereferenceable) (dereferenceable_scalar)) +;; Production 507: ((fully_dereferenceable) (class_constant)) +;; Production 508: ((array_object_dereferenceable) (fully_dereferenceable)) +;; Production 509: ((array_object_dereferenceable) (constant)) +;; Production 510: ((callable_expr) (callable_variable)) +;; Production 511: ((callable_expr) ("(" expr ")")) +;; Production 512: ((callable_expr) (dereferenceable_scalar)) +;; Production 513: ((callable_variable) (simple_variable)) +;; Production 514: ((callable_variable) (array_object_dereferenceable "[" optional_expr "]")) +;; Production 515: ((callable_variable) (array_object_dereferenceable "{" expr "}")) +;; Production 516: ((callable_variable) (array_object_dereferenceable T_OBJECT_OPERATOR property_name argument_list)) +;; Production 517: ((callable_variable) (array_object_dereferenceable T_NULLSAFE_OBJECT_OPERATOR property_name argument_list)) +;; Production 518: ((callable_variable) (function_call)) +;; Production 519: ((variable) (callable_variable)) +;; Production 520: ((variable) (static_member)) +;; Production 521: ((variable) (array_object_dereferenceable T_OBJECT_OPERATOR property_name)) +;; Production 522: ((variable) (array_object_dereferenceable T_NULLSAFE_OBJECT_OPERATOR property_name)) +;; Production 523: ((simple_variable) (T_VARIABLE)) +;; Production 524: ((simple_variable) ("$" "{" expr "}")) +;; Production 525: ((simple_variable) ("$" simple_variable)) +;; Production 526: ((static_member) (class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable)) +;; Production 527: ((static_member) (variable_class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable)) +;; Production 528: ((new_variable) (simple_variable)) +;; Production 529: ((new_variable) (new_variable "[" optional_expr "]")) +;; Production 530: ((new_variable) (new_variable "{" expr "}")) +;; Production 531: ((new_variable) (new_variable T_OBJECT_OPERATOR property_name)) +;; Production 532: ((new_variable) (new_variable T_NULLSAFE_OBJECT_OPERATOR property_name)) +;; Production 533: ((new_variable) (class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable)) +;; Production 534: ((new_variable) (new_variable T_PAAMAYIM_NEKUDOTAYIM simple_variable)) +;; Production 535: ((member_name) (identifier)) +;; Production 536: ((member_name) ("{" expr "}")) +;; Production 537: ((member_name) (simple_variable)) +;; Production 538: ((property_name) (T_STRING)) +;; Production 539: ((property_name) ("{" expr "}")) +;; Production 540: ((property_name) (simple_variable)) +;; Production 541: ((array_pair_list) (non_empty_array_pair_list)) +;; Production 542: ((possible_array_pair) (%empty)) +;; Production 543: ((possible_array_pair) (array_pair)) +;; Production 544: ((non_empty_array_pair_list) (non_empty_array_pair_list "," possible_array_pair)) +;; Production 545: ((non_empty_array_pair_list) (possible_array_pair)) +;; Production 546: ((array_pair) (expr T_DOUBLE_ARROW expr)) +;; Production 547: ((array_pair) (expr)) +;; Production 548: ((array_pair) (expr T_DOUBLE_ARROW ampersand variable)) +;; Production 549: ((array_pair) (ampersand variable)) +;; Production 550: ((array_pair) (T_ELLIPSIS expr)) +;; Production 551: ((array_pair) (expr T_DOUBLE_ARROW T_LIST "(" array_pair_list ")")) +;; Production 552: ((array_pair) (T_LIST "(" array_pair_list ")")) +;; Production 553: ((encaps_list) (encaps_list encaps_var)) +;; Production 554: ((encaps_list) (encaps_list T_ENCAPSED_AND_WHITESPACE)) +;; Production 555: ((encaps_list) (encaps_var)) +;; Production 556: ((encaps_list) (T_ENCAPSED_AND_WHITESPACE encaps_var)) +;; Production 557: ((encaps_var) (T_VARIABLE)) +;; Production 558: ((encaps_var) (T_VARIABLE "[" encaps_var_offset "]")) +;; Production 559: ((encaps_var) (T_VARIABLE T_OBJECT_OPERATOR T_STRING)) +;; Production 560: ((encaps_var) (T_VARIABLE T_NULLSAFE_OBJECT_OPERATOR T_STRING)) +;; Production 561: ((encaps_var) (T_DOLLAR_OPEN_CURLY_BRACES expr "}")) +;; Production 562: ((encaps_var) (T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME "}")) +;; Production 563: ((encaps_var) (T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME "[" expr "]" "}")) +;; Production 564: ((encaps_var) (T_CURLY_OPEN variable "}")) +;; Production 565: ((encaps_var_offset) (T_STRING)) +;; Production 566: ((encaps_var_offset) (T_NUM_STRING)) +;; Production 567: ((encaps_var_offset) ("-" T_NUM_STRING)) +;; Production 568: ((encaps_var_offset) (T_VARIABLE)) +;; Production 569: ((internal_functions_in_yacc) (T_ISSET "(" isset_variables possible_comma ")")) +;; Production 570: ((internal_functions_in_yacc) (T_EMPTY "(" expr ")")) +;; Production 571: ((internal_functions_in_yacc) (T_INCLUDE expr)) +;; Production 572: ((internal_functions_in_yacc) (T_INCLUDE_ONCE expr)) +;; Production 573: ((internal_functions_in_yacc) (T_EVAL "(" expr ")")) +;; Production 574: ((internal_functions_in_yacc) (T_REQUIRE expr)) +;; Production 575: ((internal_functions_in_yacc) (T_REQUIRE_ONCE expr)) +;; Production 576: ((isset_variables) (isset_variable)) +;; Production 577: ((isset_variables) (isset_variables "," isset_variable)) +;; Production 578: ((isset_variable) (expr)) ;;; Code: @@ -2903,9 +2910,12 @@ ;; 178 ((unset_variable) (variable)) (puthash 178 (lambda(args _terminals) args) phps-mode-parser--table-translations) -;; 179 ((function_declaration_statement) (function returns_ref T_STRING backup_doc_comment "(" parameter_list ")" return_type backup_fn_flags "{" inner_statement_list "}" backup_fn_flags)) +;; 179 ((function_name) (T_STRING)) +;; 180 ((function_name) (T_READONLY)) + +;; 181 ((function_declaration_statement) (function returns_ref function_name backup_doc_comment "(" parameter_list ")" return_type backup_fn_flags "{" inner_statement_list "}" backup_fn_flags)) (puthash - 179 + 181 (lambda(args terminals) ;; (message "179-parameter_list-args: %S" (nth 5 args)) ;; (message "parameter_list-terminals: %S" (nth 5 terminals)) @@ -3031,21 +3041,21 @@ )) phps-mode-parser--table-translations) -;; 180 ((is_reference) (%empty)) -(puthash 180 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) - -;; 181 ((is_reference) (T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG)) -(puthash 181 (lambda(args _terminals) args) phps-mode-parser--table-translations) - -;; 182 ((is_variadic) (%empty)) +;; 182 ((is_reference) (%empty)) (puthash 182 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 183 ((is_variadic) (T_ELLIPSIS)) +;; 183 ((is_reference) (T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG)) (puthash 183 (lambda(args _terminals) args) phps-mode-parser--table-translations) -;; 184 ((class_declaration_statement) (class_modifiers T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) +;; 184 ((is_variadic) (%empty)) +(puthash 184 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) + +;; 185 ((is_variadic) (T_ELLIPSIS)) +(puthash 185 (lambda(args _terminals) args) phps-mode-parser--table-translations) + +;; 186 ((class_declaration_statement) (class_modifiers T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) (puthash - 184 + 186 (lambda(args terminals) ;; Go through stacks and modify symbol name-spaces ;; but only for non-super-global variables. @@ -3162,9 +3172,9 @@ )) phps-mode-parser--table-translations) -;; 185 ((class_declaration_statement) (T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) +;; 187 ((class_declaration_statement) (T_CLASS T_STRING extends_from implements_list backup_doc_comment "{" class_statement_list "}")) (puthash - 185 + 187 (lambda(args terminals) ;; Go through stacks and modify symbol name-spaces ;; but only for non-super-global variables. @@ -3278,21 +3288,24 @@ ,(nth 6 args))) phps-mode-parser--table-translations) -;; 186 ((class_modifiers) (class_modifier)) -(puthash 186 (lambda(args _terminals) `(,args)) phps-mode-parser--table-translations) +;; 188 ((class_modifiers) (class_modifier)) +(puthash 188 (lambda(args _terminals) `(,args)) phps-mode-parser--table-translations) -;; 187 ((class_modifiers) (class_modifiers class_modifier)) -(puthash 187 (lambda(args _terminals) `(append ,(nth 0 args) (,(nth 1 args)))) phps-mode-parser--table-translations) +;; 189 ((class_modifiers) (class_modifiers class_modifier)) +(puthash 189 (lambda(args _terminals) `(append ,(nth 0 args) (,(nth 1 args)))) phps-mode-parser--table-translations) -;; 188 ((class_modifier) (T_ABSTRACT)) -(puthash 188 (lambda(_args _terminals) 'T_ABSTRACT) phps-mode-parser--table-translations) +;; 190 ((class_modifier) (T_ABSTRACT)) +(puthash 190 (lambda(_args _terminals) 'T_ABSTRACT) phps-mode-parser--table-translations) -;; 189 ((class_modifier) (T_FINAL)) -(puthash 189 (lambda(_args _terminals) 'T_FINAL) phps-mode-parser--table-translations) +;; 191 ((class_modifier) (T_FINAL)) +(puthash 191 (lambda(_args _terminals) 'T_FINAL) phps-mode-parser--table-translations) -;; 190 ((trait_declaration_statement) (T_TRAIT T_STRING backup_doc_comment "{" class_statement_list "}")) +;; 192 ((class_modifier) (T_READONLY)) +(puthash 192 (lambda(_args _terminals) 'T_READONLY) phps-mode-parser--table-translations) + +;; 193 ((trait_declaration_statement) (T_TRAIT T_STRING backup_doc_comment "{" class_statement_list "}")) (puthash - 190 + 193 (lambda(args terminals) ;; Go through stacks and modify symbol name-spaces ;; but only for non-super-global variables. @@ -3400,9 +3413,9 @@ ,(nth 4 args))) phps-mode-parser--table-translations) -;; 191 ((interface_declaration_statement) (T_INTERFACE T_STRING interface_extends_list backup_doc_comment "{" class_statement_list "}")) +;; 194 ((interface_declaration_statement) (T_INTERFACE T_STRING interface_extends_list backup_doc_comment "{" class_statement_list "}")) (puthash - 191 + 194 (lambda(args terminals) ;; Go through stacks and modify symbol name-spaces ;; but only for non-super-global variables. @@ -3516,9 +3529,9 @@ )) phps-mode-parser--table-translations) -;; 192 ((enum_declaration_statement) (T_ENUM T_STRING enum_backing_type implements_list backup_doc_comment "{" class_statement_list "}")) +;; 195 ((enum_declaration_statement) (T_ENUM T_STRING enum_backing_type implements_list backup_doc_comment "{" class_statement_list "}")) (puthash - 192 + 195 (lambda(args terminals) `( ast-type @@ -3540,15 +3553,15 @@ )) phps-mode-parser--table-translations) -;; 193 ((enum_backing_type) (%empty)) -(puthash 193 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 196 ((enum_backing_type) (%empty)) +(puthash 196 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 194 ((enum_backing_type) (":" type_expr)) -(puthash 194 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) +;; 197 ((enum_backing_type) (":" type_expr)) +(puthash 197 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) -;; 195 ((enum_case) (T_CASE backup_doc_comment identifier enum_case_expr ";")) +;; 198 ((enum_case) (T_CASE backup_doc_comment identifier enum_case_expr ";")) (puthash - 195 + 198 (lambda(args _terminals) `( ast-type @@ -3562,12 +3575,12 @@ )) phps-mode-parser--table-translations) -;; 196 ((enum_case_expr) (%empty)) -(puthash 196 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 199 ((enum_case_expr) (%empty)) +(puthash 199 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 197 ((enum_case_expr) ("=" expr)) +;; 200 ((enum_case_expr) ("=" expr)) (puthash - 197 + 200 (lambda(args _terminals) `( ast-type @@ -3578,12 +3591,12 @@ ) phps-mode-parser--table-translations) -;; 198 ((extends_from) (%empty)) -(puthash 198 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 201 ((extends_from) (%empty)) +(puthash 201 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 199 ((extends_from) (T_EXTENDS class_name)) +;; 202 ((extends_from) (T_EXTENDS class_name)) (puthash - 199 + 202 (lambda(args _terminals) `( ast-type @@ -3594,12 +3607,12 @@ ) phps-mode-parser--table-translations) -;; 200 ((interface_extends_list) (%empty)) -(puthash 200 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 203 ((interface_extends_list) (%empty)) +(puthash 203 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 201 ((interface_extends_list) (T_EXTENDS class_name_list)) +;; 204 ((interface_extends_list) (T_EXTENDS class_name_list)) (puthash - 201 + 204 (lambda(args _terminals) `( ast-type @@ -3610,12 +3623,12 @@ ) phps-mode-parser--table-translations) -;; 202 ((implements_list) (%empty)) -(puthash 202 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 205 ((implements_list) (%empty)) +(puthash 205 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 203 ((implements_list) (T_IMPLEMENTS class_name_list)) +;; 206 ((implements_list) (T_IMPLEMENTS class_name_list)) (puthash - 203 + 206 (lambda(args _terminals) `( ast-type @@ -3626,9 +3639,9 @@ ) phps-mode-parser--table-translations) -;; 204 ((foreach_variable) (variable)) +;; 207 ((foreach_variable) (variable)) (puthash - 204 + 207 (lambda(args terminals) ;; Save variable declaration in bookkeeping buffer (let ((variable-type (plist-get args 'ast-type))) @@ -3676,9 +3689,9 @@ ,args)) phps-mode-parser--table-translations) -;; 205 ((foreach_variable) (ampersand variable)) +;; 208 ((foreach_variable) (ampersand variable)) (puthash - 205 + 208 (lambda(args terminals) ;; Save variable declaration in bookkeeping buffer (let* ((variable (nth 1 args)) @@ -3728,9 +3741,9 @@ )) phps-mode-parser--table-translations) -;; 206 ((foreach_variable) (T_LIST "(" array_pair_list ")")) +;; 209 ((foreach_variable) (T_LIST "(" array_pair_list ")")) (puthash - 206 + 209 (lambda(args _terminals) ;; TODO Declare variable here @@ -3741,9 +3754,9 @@ ,(nth 2 args))) phps-mode-parser--table-translations) -;; 207 ((foreach_variable) ("[" array_pair_list "]")) +;; 210 ((foreach_variable) ("[" array_pair_list "]")) (puthash - 207 + 210 (lambda(args _terminals) ;; TODO Declare variable here @@ -3754,9 +3767,9 @@ ,(nth 1 args))) phps-mode-parser--table-translations) -;; 208 ((for_statement) (statement)) +;; 211 ((for_statement) (statement)) (puthash - 208 + 211 (lambda(args _terminals) `( ast-type @@ -3766,9 +3779,9 @@ )) phps-mode-parser--table-translations) -;; 209 ((for_statement) (":" inner_statement_list T_ENDFOR ";")) +;; 212 ((for_statement) (":" inner_statement_list T_ENDFOR ";")) (puthash - 209 + 212 (lambda(args _terminals) `( ast-type @@ -3778,9 +3791,9 @@ )) phps-mode-parser--table-translations) -;; 210 ((foreach_statement) (statement)) +;; 213 ((foreach_statement) (statement)) (puthash - 210 + 213 (lambda(args _terminals) `( ast-type @@ -3789,9 +3802,9 @@ ,args)) phps-mode-parser--table-translations) -;; 211 ((foreach_statement) (":" inner_statement_list T_ENDFOREACH ";")) +;; 214 ((foreach_statement) (":" inner_statement_list T_ENDFOREACH ";")) (puthash - 211 + 214 (lambda(args _terminals) `( ast-type @@ -3801,9 +3814,9 @@ )) phps-mode-parser--table-translations) -;; 212 ((declare_statement) (statement)) +;; 215 ((declare_statement) (statement)) (puthash - 212 + 215 (lambda(args _terminals) `( ast-type @@ -3813,9 +3826,9 @@ )) phps-mode-parser--table-translations) -;; 213 ((declare_statement) (":" inner_statement_list T_ENDDECLARE ";")) +;; 216 ((declare_statement) (":" inner_statement_list T_ENDDECLARE ";")) (puthash - 213 + 216 (lambda(args _terminals) `( ast-type @@ -3825,24 +3838,24 @@ )) phps-mode-parser--table-translations) -;; 214 ((switch_case_list) ("{" case_list "}")) -(puthash 214 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) +;; 217 ((switch_case_list) ("{" case_list "}")) +(puthash 217 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) -;; 215 ((switch_case_list) ("{" ";" case_list "}")) -(puthash 214 (lambda(args _terminals) (nth 2 args)) phps-mode-parser--table-translations) +;; 218 ((switch_case_list) ("{" ";" case_list "}")) +(puthash 218 (lambda(args _terminals) (nth 2 args)) phps-mode-parser--table-translations) -;; 216 ((switch_case_list) (":" case_list T_ENDSWITCH ";")) -(puthash 214 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) +;; 219 ((switch_case_list) (":" case_list T_ENDSWITCH ";")) +(puthash 219 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) -;; 217 ((switch_case_list) (":" ";" case_list T_ENDSWITCH ";")) -(puthash 217 (lambda(args _terminals) (nth 2 args)) phps-mode-parser--table-translations) +;; 220 ((switch_case_list) (":" ";" case_list T_ENDSWITCH ";")) +(puthash 220 (lambda(args _terminals) (nth 2 args)) phps-mode-parser--table-translations) -;; 218 ((case_list) (%empty)) -(puthash 218 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 221 ((case_list) (%empty)) +(puthash 221 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 219 ((case_list) (case_list T_CASE expr case_separator inner_statement_list)) +;; 222 ((case_list) (case_list T_CASE expr case_separator inner_statement_list)) (puthash - 219 + 222 (lambda(args _terminals) `( ast-type @@ -3853,9 +3866,9 @@ ,(nth 4 args))) phps-mode-parser--table-translations) -;; 220 ((case_list) (case_list T_DEFAULT case_separator inner_statement_list)) +;; 223 ((case_list) (case_list T_DEFAULT case_separator inner_statement_list)) (puthash - 220 + 223 (lambda(args _terminals) `( ast-type @@ -3864,15 +3877,15 @@ ,(nth 3 args))) phps-mode-parser--table-translations) -;; 221 ((case_separator) (":")) -(puthash 221 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 224 ((case_separator) (":")) +(puthash 224 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 222 ((case_separator) (":")) -(puthash 222 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 225 ((case_separator) (";")) +(puthash 225 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 223 ((match) (T_MATCH "(" expr ")" "{" match_arm_list "}")) +;; 226 ((match) (T_MATCH "(" expr ")" "{" match_arm_list "}")) (puthash - 223 + 226 (lambda(args _terminals) `( ast-type @@ -3884,25 +3897,25 @@ )) phps-mode-parser--table-translations) -;; 224 ((match_arm_list) (%empty)) -(puthash 224 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 227 ((match_arm_list) (%empty)) +(puthash 227 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 225 ((match_arm_list) (non_empty_match_arm_list possible_comma)) -(puthash 225 (lambda(args _terminals) (nth 0 args)) phps-mode-parser--table-translations) +;; 228 ((match_arm_list) (non_empty_match_arm_list possible_comma)) +(puthash 228 (lambda(args _terminals) (nth 0 args)) phps-mode-parser--table-translations) -;; 226 ((non_empty_match_arm_list) (match_arm)) -(puthash 226 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) +;; 229 ((non_empty_match_arm_list) (match_arm)) +(puthash 229 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) -;; 227 ((non_empty_match_arm_list) (non_empty_match_arm_list "," match_arm)) +;; 230 ((non_empty_match_arm_list) (non_empty_match_arm_list "," match_arm)) (puthash - 227 + 230 (lambda(args _terminals) (append (nth 0 args) (list (nth 2 args)))) phps-mode-parser--table-translations) -;; 228 ((match_arm) (match_arm_cond_list possible_comma T_DOUBLE_ARROW expr)) +;; 231 ((match_arm) (match_arm_cond_list possible_comma T_DOUBLE_ARROW expr)) (puthash - 228 + 231 (lambda(args _terminals) `( ast-type @@ -3913,9 +3926,9 @@ ,(nth 3 args))) phps-mode-parser--table-translations) -;; 229 ((match_arm) (T_DEFAULT possible_comma T_DOUBLE_ARROW expr)) +;; 232 ((match_arm) (T_DEFAULT possible_comma T_DOUBLE_ARROW expr)) (puthash - 229 + 232 (lambda(args _terminals) `( ast-type @@ -3924,21 +3937,21 @@ ,(nth 3 args))) phps-mode-parser--table-translations) -;; 230 ((match_arm_cond_list) (expr)) -(puthash 230 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) +;; 233 ((match_arm_cond_list) (expr)) +(puthash 233 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) -;; 231 ((match_arm_cond_list) (match_arm_cond_list "," expr)) -(puthash 231 (lambda(args _terminals) (append (nth 0 args) (list (nth 2 args)))) phps-mode-parser--table-translations) +;; 234 ((match_arm_cond_list) (match_arm_cond_list "," expr)) +(puthash 234 (lambda(args _terminals) (append (nth 0 args) (list (nth 2 args)))) phps-mode-parser--table-translations) -;; 232 ((while_statement) (statement)) -(puthash 232 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) +;; 235 ((while_statement) (statement)) +(puthash 235 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) -;; 233 ((while_statement) (":" inner_statement_list T_ENDWHILE ";")) -(puthash 233 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) +;; 236 ((while_statement) (":" inner_statement_list T_ENDWHILE ";")) +(puthash 236 (lambda(args _terminals) (nth 1 args)) phps-mode-parser--table-translations) -;; 234 ((if_stmt_without_else) (T_IF "(" expr ")" statement)) +;; 237 ((if_stmt_without_else) (T_IF "(" expr ")" statement)) (puthash - 234 + 237 (lambda(args _terminals) `( ast-type @@ -3950,9 +3963,9 @@ )) phps-mode-parser--table-translations) -;; 235 ((if_stmt_without_else) (if_stmt_without_else T_ELSEIF "(" expr ")" statement)) +;; 238 ((if_stmt_without_else) (if_stmt_without_else T_ELSEIF "(" expr ")" statement)) (puthash - 235 + 238 (lambda(args _terminals) `( ast-type @@ -3966,12 +3979,12 @@ )) phps-mode-parser--table-translations) -;; 236 ((if_stmt) (if_stmt_without_else)) -(puthash 236 (lambda(args _terminals) args) phps-mode-parser--table-translations) +;; 239 ((if_stmt) (if_stmt_without_else)) +(puthash 239 (lambda(args _terminals) args) phps-mode-parser--table-translations) -;; 237 ((if_stmt) (if_stmt_without_else T_ELSE statement)) +;; 240 ((if_stmt) (if_stmt_without_else T_ELSE statement)) (puthash - 237 + 240 (lambda(args _terminals) `( ast-type @@ -3983,9 +3996,9 @@ )) phps-mode-parser--table-translations) -;; 238 ((alt_if_stmt_without_else) (T_IF "(" expr ")" ":" inner_statement_list)) +;; 241 ((alt_if_stmt_without_else) (T_IF "(" expr ")" ":" inner_statement_list)) (puthash - 238 + 241 (lambda(args _terminals) `( ast-type @@ -3997,9 +4010,9 @@ )) phps-mode-parser--table-translations) -;; 239 ((alt_if_stmt_without_else) (alt_if_stmt_without_else T_ELSEIF "(" expr ")" ":" inner_statement_list)) +;; 242 ((alt_if_stmt_without_else) (alt_if_stmt_without_else T_ELSEIF "(" expr ")" ":" inner_statement_list)) (puthash - 239 + 242 (lambda(args _terminals) `( ast-type @@ -4013,12 +4026,12 @@ )) phps-mode-parser--table-translations) -;; 240 ((alt_if_stmt) (alt_if_stmt_without_else T_ENDIF ";")) -(puthash 240 (lambda(args _terminals) (nth 0 args)) phps-mode-parser--table-translations) +;; 243 ((alt_if_stmt) (alt_if_stmt_without_else T_ENDIF ";")) +(puthash 243 (lambda(args _terminals) (nth 0 args)) phps-mode-parser--table-translations) -;; 241 ((alt_if_stmt) (alt_if_stmt_without_else T_ELSE ":" inner_statement_list T_ENDIF ";")) +;; 244 ((alt_if_stmt) (alt_if_stmt_without_else T_ELSE ":" inner_statement_list T_ENDIF ";")) (puthash - 241 + 244 (lambda(args _terminals) `( ast-type @@ -4030,21 +4043,21 @@ )) phps-mode-parser--table-translations) -;; 242 ((parameter_list) (non_empty_parameter_list possible_comma)) -(puthash 242 (lambda(args _terminals) (nth 0 args)) phps-mode-parser--table-translations) +;; 245 ((parameter_list) (non_empty_parameter_list possible_comma)) +(puthash 245 (lambda(args _terminals) (nth 0 args)) phps-mode-parser--table-translations) -;; 243 ((parameter_list) (%empty)) -(puthash 243 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 246 ((parameter_list) (%empty)) +(puthash 246 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 244 ((non_empty_parameter_list) (attributed_parameter)) -(puthash 244 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) +;; 247 ((non_empty_parameter_list) (attributed_parameter)) +(puthash 247 (lambda(args _terminals) (list args)) phps-mode-parser--table-translations) -;; 245 ((non_empty_parameter_list) (non_empty_parameter_list "," attributed_parameter)) -(puthash 245 (lambda(args _terminals) (append (nth 0 args) (list (nth 2 args)))) phps-mode-parser--table-translations) +;; 248 ((non_empty_parameter_list) (non_empty_parameter_list "," attributed_parameter)) +(puthash 248 (lambda(args _terminals) (append (nth 0 args) (list (nth 2 args)))) phps-mode-parser--table-translations) -;; 246 ((attributed_parameter) (attributes parameter)) +;; 249 ((attributed_parameter) (attributes parameter)) (puthash - 246 + 249 (lambda(args _terminals) `( ast-type @@ -4056,9 +4069,9 @@ )) phps-mode-parser--table-translations) -;; 247 ((attributed_parameter) (parameter)) +;; 250 ((attributed_parameter) (parameter)) (puthash - 247 + 250 (lambda(args _terminals) `( ast-type @@ -4068,27 +4081,27 @@ )) phps-mode-parser--table-translations) -;; 248 ((optional_property_modifiers) (%empty)) -(puthash 248 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 251 ((optional_property_modifiers) (%empty)) +(puthash 251 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 249 ((optional_property_modifiers) (optional_property_modifiers property_modifier)) -(puthash 249 (lambda(args _terminals) (append (nth 0 args) (list (nth 1 args)))) phps-mode-parser--table-translations) +;; 252 ((optional_property_modifiers) (optional_property_modifiers property_modifier)) +(puthash 252 (lambda(args _terminals) (append (nth 0 args) (list (nth 1 args)))) phps-mode-parser--table-translations) -;; 250 ((property_modifier) (T_PUBLIC)) -(puthash 250 (lambda(_args _terminals) 'T_PUBLIC) phps-mode-parser--table-translations) +;; 253 ((property_modifier) (T_PUBLIC)) +(puthash 253 (lambda(_args _terminals) 'T_PUBLIC) phps-mode-parser--table-translations) -;; 251 ((property_modifier) (T_PROTECTED)) -(puthash 251 (lambda(_args _terminals) 'T_PROTECTED) phps-mode-parser--table-translations) +;; 254 ((property_modifier) (T_PROTECTED)) +(puthash 254 (lambda(_args _terminals) 'T_PROTECTED) phps-mode-parser--table-translations) -;; 252 ((property_modifier) (T_PROTECTED)) -(puthash 252 (lambda(_args _terminals) 'T_PRIVATE) phps-mode-parser--table-translations) +;; 255 ((property_modifier) (T_PRIVATE)) +(puthash 255 (lambda(_args _terminals) 'T_PRIVATE) phps-mode-parser--table-translations) -;; 253 ((property_modifier) (T_PROTECTED)) -(puthash 253 (lambda(_args _terminals) 'T_PROTECTED) phps-mode-parser--table-translations) +;; 256 ((property_modifier) (T_READONLY)) +(puthash 256 (lambda(_args _terminals) 'T_READONLY) phps-mode-parser--table-translations) -;; 254 ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment)) +;; 257 ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment)) (puthash - 254 + 257 (lambda(args terminals) `( ast-type @@ -4110,9 +4123,9 @@ )) phps-mode-parser--table-translations) -;; 255 ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment "=" expr)) +;; 258 ((parameter) (optional_property_modifiers optional_type_without_static is_reference is_variadic T_VARIABLE backup_doc_comment "=" expr)) (puthash - 255 + 258 (lambda(args terminals) `( ast-type @@ -4138,15 +4151,15 @@ )) phps-mode-parser--table-translations) -;; 256 ((optional_type_without_static) (%empty)) -(puthash 256 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) +;; 259 ((optional_type_without_static) (%empty)) +(puthash 259 (lambda(_args _terminals) nil) phps-mode-parser--table-translations) -;; 257 ((optional_type_without_static) (type_expr_without_static)) -(puthash 257 (lambda(args _terminals) args) phps-mode-parser--table-translations) +;; 260 ((optional_type_without_static) (type_expr_without_static)) +(puthash 260 (lambda(args _terminals) args) phps-mode-parser--table-translations) -;; 258 ((type_expr) (type)) +;; 261 ((type_expr) (type)) (puthash - 258 + 261 (lambda(args _terminals) `( ast-type @@ -4156,9 +4169,9 @@ )) phps-mode-parser--table-translations) -;; 259 ((type_expr) ("?" type)) +;; 262 ((type_expr) ("?" type)) (puthash - 259 + 262 (lambda(args _terminals) `( ast-type @@ -4168,9 +4181,9 @@ )) phps-mode-parser--table-translations) -;; 260 ((type_expr) (union_type)) +;; 263 ((type_expr) (union_type)) (puthash - 260 + 263 (lambda(args _terminals) `( ast-type @@ -4180,9 +4193,9 @@ )) phps-mode-parser--table-translations) -;; 261 ((type_expr) (intersection_type)) +;; 264 ((type_expr) (intersection_type)) (puthash - 261 + 264 (lambda(args _terminals) `( ast-type @@ -4192,14 +4205,16 @@ )) phps-mode-parser--table-translations) -;; 262 ((type) (type_without_static)) -(puthash 262 (lambda(args _terminals) args) phps-mode-parser--table-translations) +;; 265 ((type) (type_without_static)) +(puthash 265 (lambda(args _terminals) args) phps-mode-parser--table-translations) + +;; 266 ((type) (T_STATIC)) +(puthash 266 (lambda(_args _terminals) 'T_STATIC) phps-mode-parser--table-translations) -;; 263 ((type) (T_STATIC)) -(puthash 263 (lambda(_args _terminals) 'T_STATIC) phps-mode-parser--table-translations) +;; 267 ((union_type_element) (type)) +(puthash 267 (lambda(args _terminals) (list (nth 0 args) (nth 2 args))) phps-mode-parser--table-translations) -;; 264 ((union_type) (type "|" type)) -(puthash 264 (lambda(args _terminals) (list (nth 0 args) (nth 2 args))) phps-mode-parser--table-translations) +;; TODO Was here ;; 265 ((union_type) (union_type "|" type)) (puthash 265 (lambda(args _terminals) (append (nth 0 args) (list (nth 2 args)))) phps-mode-parser--table-translations)