X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser.re;h=3fdd8660905258b11b281b0d4ca8d5b3a386c913;hp=a5f271d328c000c537764ebcef9799eafb31187b;hb=4fd6435041048363289eb7b9243cee39b6901e4e;hpb=35ae2559447092572209f8b237460ceb551293ff diff --git a/src/parser.re b/src/parser.re index a5f271d..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; @@ -386,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; } @@ -426,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; }