X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc.h;h=382aa200b47f41ddef686dd97e46bddcd69fb645;hp=b336db1fcb24f91ac3967c03fa1a91463359c904;hb=c9384515a81cb64d345b299908b2852f51bb8e6e;hpb=b78637d9020222f1032349f231c0dc84a69797bc diff --git a/src/parser_proc.h b/src/parser_proc.h index b336db1..382aa20 100644 --- a/src/parser_proc.h +++ b/src/parser_proc.h @@ -40,15 +40,20 @@ extern int psi_parser_proc_debug; #endif /* "%code requires" blocks. */ -#line 82 "src/parser_proc_grammar.y" /* glr.c:197 */ +#line 115 "src/parser_proc_grammar.y" /* glr.c:197 */ #include "plist.h" #include "types/layout.h" +#define yytokentype psi_token_type + +#define PSI_T_CAST PSI_T_EQUALS +#define PSI_T_POINTER PSI_T_ASTERISK + struct psi_parser; -#line 52 "src/parser_proc.h" /* glr.c:197 */ +#line 57 "src/parser_proc.h" /* glr.c:197 */ /* Token type. */ #ifndef YYTOKENTYPE @@ -179,8 +184,20 @@ struct psi_parser; PSI_T_CPP_INLINE = 378, PSI_T_CPP_RESTRICT = 379, PSI_T_CPP_ASM = 380, - PSI_T_BINARY = 381, - PSI_T_UNARY = 382 + PSI_T_BSLASH = 381, + PSI_T_LONG_DOUBLE = 382, + PSI_T_INT8 = 383, + PSI_T_UINT8 = 384, + PSI_T_INT16 = 385, + PSI_T_UINT16 = 386, + PSI_T_INT32 = 387, + PSI_T_UINT32 = 388, + PSI_T_INT64 = 389, + PSI_T_UINT64 = 390, + PSI_T_INT128 = 391, + PSI_T_UINT128 = 392, + PSI_T_BINARY = 393, + PSI_T_UNARY = 394 }; #endif @@ -204,8 +221,6 @@ union YYSTYPE struct psi_assert_stmt * PSI_T_assert_stmt; /* constant */ struct psi_const * PSI_T_constant; - /* constant_type */ - struct psi_const_type * PSI_T_constant_type; /* cpp */ struct psi_cpp_exp * PSI_T_cpp; /* cpp_exp */ @@ -214,6 +229,8 @@ union YYSTYPE struct psi_cpp_macro_decl * PSI_T_cpp_macro_decl; /* decl_stmt */ struct psi_decl * PSI_T_decl_stmt; + /* ignored_decl */ + struct psi_decl * PSI_T_ignored_decl; /* decl */ struct psi_decl * PSI_T_decl; /* decl_body */ @@ -222,6 +239,8 @@ union YYSTYPE struct psi_decl * PSI_T_decl_func_body; /* decl_functor_body */ struct psi_decl * PSI_T_decl_functor_body; + /* decl_anon_functor_body */ + struct psi_decl * PSI_T_decl_anon_functor_body; /* decl_typedef */ struct psi_decl_arg * PSI_T_decl_typedef; /* typedef */ @@ -234,6 +253,8 @@ union YYSTYPE struct psi_decl_arg * PSI_T_typedef_anon_decl; /* decl_functor */ struct psi_decl_arg * PSI_T_decl_functor; + /* decl_anon_functor */ + struct psi_decl_arg * PSI_T_decl_anon_functor; /* decl_func */ struct psi_decl_arg * PSI_T_decl_func; /* decl_anon_arg */ @@ -270,6 +291,8 @@ union YYSTYPE struct psi_impl_func * PSI_T_impl_func; /* impl_type */ struct psi_impl_type * PSI_T_impl_type; + /* impl_type_restricted */ + struct psi_impl_type * PSI_T_impl_type_restricted; /* impl_var */ struct psi_impl_var * PSI_T_impl_var; /* align_and_size */ @@ -314,10 +337,16 @@ union YYSTYPE struct psi_plist * PSI_T_cpp_macro_call_args; /* cpp_macro_call_arg_list */ struct psi_plist * PSI_T_cpp_macro_call_arg_list; + /* decl_extvar_stmt */ + struct psi_plist * PSI_T_decl_extvar_stmt; + /* decl_extvar_list */ + struct psi_plist * PSI_T_decl_extvar_list; /* decl_vars */ struct psi_plist * PSI_T_decl_vars; /* decl_args */ struct psi_plist * PSI_T_decl_args; + /* decl_arg_list */ + struct psi_plist * PSI_T_decl_arg_list; /* decl_struct_args */ struct psi_plist * PSI_T_decl_struct_args; /* struct_args_block */ @@ -608,6 +637,30 @@ union YYSTYPE struct psi_token * PSI_T_CPP_RESTRICT; /* CPP_ASM */ struct psi_token * PSI_T_CPP_ASM; + /* BSLASH */ + struct psi_token * PSI_T_BSLASH; + /* LONG_DOUBLE */ + struct psi_token * PSI_T_LONG_DOUBLE; + /* INT8 */ + struct psi_token * PSI_T_INT8; + /* UINT8 */ + struct psi_token * PSI_T_UINT8; + /* INT16 */ + struct psi_token * PSI_T_INT16; + /* UINT16 */ + struct psi_token * PSI_T_UINT16; + /* INT32 */ + struct psi_token * PSI_T_INT32; + /* UINT32 */ + struct psi_token * PSI_T_UINT32; + /* INT64 */ + struct psi_token * PSI_T_INT64; + /* UINT64 */ + struct psi_token * PSI_T_UINT64; + /* INT128 */ + struct psi_token * PSI_T_INT128; + /* UINT128 */ + struct psi_token * PSI_T_UINT128; /* binary_op_token */ struct psi_token * PSI_T_binary_op_token; /* unary_op_token */ @@ -630,10 +683,6 @@ union YYSTYPE struct psi_token * PSI_T_cpp_name_arg_token; /* cpp_exp_arg_token */ struct psi_token * PSI_T_cpp_exp_arg_token; - /* cpp_special_name_token */ - struct psi_token * PSI_T_cpp_special_name_token; - /* constant_type_token */ - struct psi_token * PSI_T_constant_type_token; /* impl_def_val_token */ struct psi_token * PSI_T_impl_def_val_token; /* decl_type_simple */ @@ -654,6 +703,10 @@ union YYSTYPE struct psi_token * PSI_T_signed_long_types; /* int_width_types */ struct psi_token * PSI_T_int_width_types; + /* decl_asm */ + struct psi_token * PSI_T_decl_asm; + /* quoted_strings */ + struct psi_token * PSI_T_quoted_strings; /* enum_name */ struct psi_token * PSI_T_enum_name; /* union_name */ @@ -664,6 +717,10 @@ union YYSTYPE struct psi_token * PSI_T_optional_name; /* impl_type_token */ struct psi_token * PSI_T_impl_type_token; + /* impl_type_restricted_token */ + struct psi_token * PSI_T_impl_type_restricted_token; + /* impl_type_extended_token */ + struct psi_token * PSI_T_impl_type_extended_token; /* let_func_token */ struct psi_token * PSI_T_let_func_token; /* callback_rval */ @@ -674,7 +731,7 @@ union YYSTYPE struct psi_token * PSI_T_assert_stmt_token; /* impl_stmt */ struct psi_token ** PSI_T_impl_stmt; -#line 678 "src/parser_proc.h" /* glr.c:197 */ +#line 735 "src/parser_proc.h" /* glr.c:197 */ }; typedef union YYSTYPE YYSTYPE;