X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc.h;h=be49e7e58e007d132421b9807c32e353a4ff163a;hp=a865d802497426816410be14ebcb82367ba6a3f5;hb=c5b2de8ed1d92dd42f910d4347d9175f27e3acbb;hpb=42f44eb5bf4ecd36e26e051fada79d861d0f92d2 diff --git a/src/parser_proc.h b/src/parser_proc.h index a865d80..be49e7e 100644 --- a/src/parser_proc.h +++ b/src/parser_proc.h @@ -40,7 +40,7 @@ extern int psi_parser_proc_debug; #endif /* "%code requires" blocks. */ -#line 94 "src/parser_proc_grammar.y" /* glr.c:197 */ +#line 93 "src/parser_proc_grammar.y" /* glr.c:197 */ #include "plist.h" #include "types/layout.h" @@ -124,58 +124,67 @@ struct psi_parser; PSI_T_PERIOD = 323, PSI_T_BACKSLASH = 324, PSI_T_ELLIPSIS = 325, - PSI_T_ERROR = 326, - PSI_T_WARNING = 327, - PSI_T_IF = 328, - PSI_T_IFDEF = 329, - PSI_T_IFNDEF = 330, - PSI_T_ELSE = 331, - PSI_T_ELIF = 332, - PSI_T_ENDIF = 333, - PSI_T_DEFINE = 334, - PSI_T_DEFINED = 335, - PSI_T_UNDEF = 336, - PSI_T_IMPORT = 337, - PSI_T_INCLUDE = 338, - PSI_T_INCLUDE_NEXT = 339, - PSI_T_TYPEDEF = 340, - PSI_T_STRUCT = 341, - PSI_T_UNION = 342, - PSI_T_ENUM = 343, - PSI_T_CONST = 344, - PSI_T_LIB = 345, - PSI_T_STATIC = 346, - PSI_T_CALLBACK = 347, - PSI_T_FUNCTION = 348, - PSI_T_LET = 349, - PSI_T_SET = 350, - PSI_T_TEMP = 351, - PSI_T_FREE = 352, - PSI_T_RETURN = 353, - PSI_T_PRE_ASSERT = 354, - PSI_T_POST_ASSERT = 355, - PSI_T_BOOLVAL = 356, - PSI_T_INTVAL = 357, - PSI_T_STRVAL = 358, - PSI_T_PATHVAL = 359, - PSI_T_STRLEN = 360, - PSI_T_FLOATVAL = 361, - PSI_T_ARRVAL = 362, - PSI_T_OBJVAL = 363, - PSI_T_COUNT = 364, - PSI_T_CALLOC = 365, - PSI_T_TO_BOOL = 366, - PSI_T_TO_INT = 367, - PSI_T_TO_STRING = 368, - PSI_T_TO_FLOAT = 369, - PSI_T_TO_ARRAY = 370, - PSI_T_TO_OBJECT = 371, - PSI_T_COMMENT = 372, - PSI_T_WHITESPACE = 373, - PSI_T_NO_WHITESPACE = 374, - PSI_T_CPP_HEADER = 375, - PSI_T_BINARY = 376, - PSI_T_UNARY = 377 + PSI_T_IIF = 326, + PSI_T_PRAGMA = 327, + PSI_T_PRAGMA_ONCE = 328, + PSI_T_LINE = 329, + PSI_T_ERROR = 330, + PSI_T_WARNING = 331, + PSI_T_IF = 332, + PSI_T_IFDEF = 333, + PSI_T_IFNDEF = 334, + PSI_T_ELSE = 335, + PSI_T_ELIF = 336, + PSI_T_ENDIF = 337, + PSI_T_DEFINE = 338, + PSI_T_DEFINED = 339, + PSI_T_UNDEF = 340, + PSI_T_IMPORT = 341, + PSI_T_INCLUDE = 342, + PSI_T_INCLUDE_NEXT = 343, + PSI_T_TYPEDEF = 344, + PSI_T_STRUCT = 345, + PSI_T_UNION = 346, + PSI_T_ENUM = 347, + PSI_T_CONST = 348, + PSI_T_LIB = 349, + PSI_T_STATIC = 350, + PSI_T_CALLBACK = 351, + PSI_T_FUNCTION = 352, + PSI_T_LET = 353, + PSI_T_SET = 354, + PSI_T_TEMP = 355, + PSI_T_FREE = 356, + PSI_T_RETURN = 357, + PSI_T_PRE_ASSERT = 358, + PSI_T_POST_ASSERT = 359, + PSI_T_BOOLVAL = 360, + PSI_T_INTVAL = 361, + PSI_T_STRVAL = 362, + PSI_T_PATHVAL = 363, + PSI_T_STRLEN = 364, + PSI_T_FLOATVAL = 365, + PSI_T_ARRVAL = 366, + PSI_T_OBJVAL = 367, + PSI_T_COUNT = 368, + PSI_T_CALLOC = 369, + PSI_T_TO_BOOL = 370, + PSI_T_TO_INT = 371, + PSI_T_TO_STRING = 372, + PSI_T_TO_FLOAT = 373, + PSI_T_TO_ARRAY = 374, + PSI_T_TO_OBJECT = 375, + PSI_T_COMMENT = 376, + PSI_T_WHITESPACE = 377, + PSI_T_NO_WHITESPACE = 378, + PSI_T_CPP_HEADER = 379, + PSI_T_CPP_ATTRIBUTE = 380, + PSI_T_CPP_EXTENSION = 381, + PSI_T_CPP_PASTE = 382, + PSI_T_CPP_RESTRICT = 383, + PSI_T_CPP_ASM = 384, + PSI_T_BINARY = 385, + PSI_T_UNARY = 386 }; #endif @@ -193,6 +202,8 @@ union YYSTYPE size_t PSI_T_indirection; /* pointers */ size_t PSI_T_pointers; + /* asterisks */ + size_t PSI_T_asterisks; /* assert_stmt */ struct psi_assert_stmt * PSI_T_assert_stmt; /* constant */ @@ -209,12 +220,16 @@ union YYSTYPE struct psi_decl * PSI_T_decl_stmt; /* decl */ struct psi_decl * PSI_T_decl; + /* decl_body */ + struct psi_decl * PSI_T_decl_body; + /* decl_func_body */ + struct psi_decl * PSI_T_decl_func_body; + /* decl_functor_body */ + struct psi_decl * PSI_T_decl_functor_body; /* decl_typedef */ struct psi_decl_arg * PSI_T_decl_typedef; /* typedef */ struct psi_decl_arg * PSI_T_typedef; - /* decl_fn */ - struct psi_decl_arg * PSI_T_decl_fn; /* decl_functor */ struct psi_decl_arg * PSI_T_decl_functor; /* decl_func */ @@ -467,6 +482,14 @@ union YYSTYPE struct psi_token * PSI_T_BACKSLASH; /* "..." */ struct psi_token * PSI_T_ELLIPSIS; + /* "?" */ + struct psi_token * PSI_T_IIF; + /* PRAGMA */ + struct psi_token * PSI_T_PRAGMA; + /* PRAGMA_ONCE */ + struct psi_token * PSI_T_PRAGMA_ONCE; + /* LINE */ + struct psi_token * PSI_T_LINE; /* ERROR */ struct psi_token * PSI_T_ERROR; /* WARNING */ @@ -567,6 +590,16 @@ union YYSTYPE struct psi_token * PSI_T_NO_WHITESPACE; /* CPP_HEADER */ struct psi_token * PSI_T_CPP_HEADER; + /* CPP_ATTRIBUTE */ + struct psi_token * PSI_T_CPP_ATTRIBUTE; + /* CPP_EXTENSION */ + struct psi_token * PSI_T_CPP_EXTENSION; + /* CPP_PASTE */ + struct psi_token * PSI_T_CPP_PASTE; + /* CPP_RESTRICT */ + struct psi_token * PSI_T_CPP_RESTRICT; + /* CPP_ASM */ + struct psi_token * PSI_T_CPP_ASM; /* binary_op_token */ struct psi_token * PSI_T_binary_op_token; /* unary_op_token */ @@ -589,6 +622,8 @@ 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 */ @@ -633,7 +668,7 @@ union YYSTYPE struct psi_token * PSI_T_assert_stmt_token; /* impl_stmt */ struct psi_token ** PSI_T_impl_stmt; -#line 637 "src/parser_proc.h" /* glr.c:197 */ +#line 672 "src/parser_proc.h" /* glr.c:197 */ }; typedef union YYSTYPE YYSTYPE;