X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser.re;h=3fdd8660905258b11b281b0d4ca8d5b3a386c913;hp=fb4e35bb3933e3fa4847ad04eb0f98d89bf2e12e;hb=4fd6435041048363289eb7b9243cee39b6901e4e;hpb=3d77b5b65efb78c1da9485dfde1fcd417066b803 diff --git a/src/parser.re b/src/parser.re index fb4e35b..3fdd866 100644 --- a/src/parser.re +++ b/src/parser.re @@ -275,6 +275,8 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input ctxmrk = NULL; tok = cur; + (void) ctxmrk; + /*!re2c re2c:indent:top = 2; @@ -366,9 +368,12 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input "?" { NEWTOKEN(PSI_T_IIF); goto start; } "pragma" { NEWTOKEN(PSI_T_PRAGMA); goto start; } "pragma" W+ "once" { NEWTOKEN(PSI_T_PRAGMA_ONCE); goto start; } + "__inline" { NEWTOKEN(PSI_T_CPP_INLINE); goto start; } "__restrict" { NEWTOKEN(PSI_T_CPP_RESTRICT); goto start; } "__extension__" { NEWTOKEN(PSI_T_CPP_EXTENSION); goto start; } "__asm__" { NEWTOKEN(PSI_T_CPP_ASM); goto start; } + "volatile" { NEWTOKEN(PSI_T_VOLATILE); goto start; } + "sizeof" { NEWTOKEN(PSI_T_SIZEOF); goto start; } "line" { NEWTOKEN(PSI_T_LINE); goto start; } "typedef" { NEWTOKEN(PSI_T_TYPEDEF); goto start; } "struct" { NEWTOKEN(PSI_T_STRUCT); goto start; } @@ -383,14 +388,6 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input "long" { NEWTOKEN(PSI_T_LONG); goto start; } "float" { NEWTOKEN(PSI_T_FLOAT); goto start; } "double" { NEWTOKEN(PSI_T_DOUBLE); goto start; } - "int8_t" { NEWTOKEN(PSI_T_INT8); goto start; } - "uint8_t" { NEWTOKEN(PSI_T_UINT8); goto start; } - "int16_t" { NEWTOKEN(PSI_T_INT16); goto start; } - "uint16_t" { NEWTOKEN(PSI_T_UINT16); goto start; } - "int32_t" { NEWTOKEN(PSI_T_INT32); goto start; } - "uint32_t" { NEWTOKEN(PSI_T_UINT32); goto start; } - "int64_t" { NEWTOKEN(PSI_T_INT64); goto start; } - "uint64_t" { NEWTOKEN(PSI_T_UINT64); goto start; } "unsigned" { NEWTOKEN(PSI_T_UNSIGNED); goto start; } "signed" { NEWTOKEN(PSI_T_SIGNED); goto start; } 'IF' { NEWTOKEN(PSI_T_IF); goto start; } @@ -423,6 +420,7 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input 'PRE_ASSERT' { NEWTOKEN(PSI_T_PRE_ASSERT); goto start; } 'POST_ASSERT' { NEWTOKEN(PSI_T_POST_ASSERT); goto start; } 'RETURN' { NEWTOKEN(PSI_T_RETURN); goto start; } + 'AS' { NEWTOKEN(PSI_T_AS); goto start; } 'FREE' { NEWTOKEN(PSI_T_FREE); goto start; } 'TEMP' { NEWTOKEN(PSI_T_TEMP); goto start; } 'STRLEN' { NEWTOKEN(PSI_T_STRLEN); goto start; }