From: Michael Wallner Date: Thu, 4 Feb 2016 12:09:01 +0000 (+0100) Subject: make CALLOC a fallback NAME X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f4874db385a345217df8d1d31f55ab2f2b36dac3;p=m6w6%2Fext-psi make CALLOC a fallback NAME --- diff --git a/src/parser_proc.h b/src/parser_proc.h index 47239e8..3980125 100644 --- a/src/parser_proc.h +++ b/src/parser_proc.h @@ -8,52 +8,52 @@ #define PSI_T_SET 8 #define PSI_T_LET 9 #define PSI_T_RETURN 10 -#define PSI_T_LIB 11 -#define PSI_T_STRING 12 -#define PSI_T_EOF 13 -#define PSI_T_EOS 14 -#define PSI_T_QUOTED_STRING 15 -#define PSI_T_ENUM 16 -#define PSI_T_LBRACE 17 -#define PSI_T_RBRACE 18 -#define PSI_T_COMMA 19 -#define PSI_T_EQUALS 20 -#define PSI_T_UNION 21 -#define PSI_T_STRUCT 22 -#define PSI_T_COLON 23 -#define PSI_T_LPAREN 24 -#define PSI_T_NUMBER 25 -#define PSI_T_RPAREN 26 -#define PSI_T_BOOL 27 -#define PSI_T_INT 28 -#define PSI_T_FLOAT 29 -#define PSI_T_CONST 30 -#define PSI_T_NSNAME 31 -#define PSI_T_TYPEDEF 32 -#define PSI_T_VOID 33 -#define PSI_T_LBRACKET 34 -#define PSI_T_RBRACKET 35 -#define PSI_T_ELLIPSIS 36 -#define PSI_T_CHAR 37 -#define PSI_T_SHORT 38 -#define PSI_T_LONG 39 -#define PSI_T_DOUBLE 40 -#define PSI_T_UNSIGNED 41 -#define PSI_T_SIGNED 42 -#define PSI_T_INT8 43 -#define PSI_T_UINT8 44 -#define PSI_T_INT16 45 -#define PSI_T_UINT16 46 -#define PSI_T_INT32 47 -#define PSI_T_UINT32 48 -#define PSI_T_INT64 49 -#define PSI_T_UINT64 50 -#define PSI_T_FUNCTION 51 -#define PSI_T_NULL 52 -#define PSI_T_TRUE 53 -#define PSI_T_FALSE 54 -#define PSI_T_DOLLAR 55 -#define PSI_T_CALLOC 56 +#define PSI_T_CALLOC 11 +#define PSI_T_LIB 12 +#define PSI_T_STRING 13 +#define PSI_T_EOF 14 +#define PSI_T_EOS 15 +#define PSI_T_QUOTED_STRING 16 +#define PSI_T_ENUM 17 +#define PSI_T_LBRACE 18 +#define PSI_T_RBRACE 19 +#define PSI_T_COMMA 20 +#define PSI_T_EQUALS 21 +#define PSI_T_UNION 22 +#define PSI_T_STRUCT 23 +#define PSI_T_COLON 24 +#define PSI_T_LPAREN 25 +#define PSI_T_NUMBER 26 +#define PSI_T_RPAREN 27 +#define PSI_T_BOOL 28 +#define PSI_T_INT 29 +#define PSI_T_FLOAT 30 +#define PSI_T_CONST 31 +#define PSI_T_NSNAME 32 +#define PSI_T_TYPEDEF 33 +#define PSI_T_VOID 34 +#define PSI_T_LBRACKET 35 +#define PSI_T_RBRACKET 36 +#define PSI_T_ELLIPSIS 37 +#define PSI_T_CHAR 38 +#define PSI_T_SHORT 39 +#define PSI_T_LONG 40 +#define PSI_T_DOUBLE 41 +#define PSI_T_UNSIGNED 42 +#define PSI_T_SIGNED 43 +#define PSI_T_INT8 44 +#define PSI_T_UINT8 45 +#define PSI_T_INT16 46 +#define PSI_T_UINT16 47 +#define PSI_T_INT32 48 +#define PSI_T_UINT32 49 +#define PSI_T_INT64 50 +#define PSI_T_UINT64 51 +#define PSI_T_FUNCTION 52 +#define PSI_T_NULL 53 +#define PSI_T_TRUE 54 +#define PSI_T_FALSE 55 +#define PSI_T_DOLLAR 56 #define PSI_T_OBJVAL 57 #define PSI_T_ARRVAL 58 #define PSI_T_PATHVAL 59 diff --git a/src/parser_proc.y b/src/parser_proc.y index b75ac67..c28ff59 100644 --- a/src/parser_proc.y +++ b/src/parser_proc.y @@ -29,7 +29,7 @@ void psi_error(int, const char *, int, const char *, ...); %nonassoc NAME. %left PLUS MINUS. %left SLASH ASTERISK. -%fallback NAME TEMP FREE SET LET RETURN LIB STRING. +%fallback NAME TEMP FREE SET LET RETURN CALLOC LIB STRING. file ::= blocks.