diff options
Diffstat (limited to '')
-rw-r--r-- | includes/compiler/tokens.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/compiler/tokens.h b/includes/compiler/tokens.h index 43c2e85..4230194 100644 --- a/includes/compiler/tokens.h +++ b/includes/compiler/tokens.h @@ -7,19 +7,20 @@ #pragma options align=mac68k #endif -#define TKD_OPERATOR 328 -#define TKD_TEMPLATE 332 -#define TKD_IDENTIFIER -3 -#define TKD_COLON_COLON 372 - typedef enum EToken { TK_INTCONST = -1, TK_FLOATCONST = -2, TK_IDENTIFIER = -3, TK_STRING = -4, TK_STRING_WIDE = -5, - TK_NEG6 = -6, - TK_NEG7 = -7, + TK_ILLEGAL = -6, + TK_EOL = -7, + TK_END = 0, + TK_MACRO_ARG_1 = 1, + TK_MACRO_ARG_2 = 2, + TK_MACRO_ARG_HASH = 3, // #something, followed by the arg index + TK_4 = 4, + TK_5 = 5, TK_AUTO = 256, TK_REGISTER, TK_STATIC, @@ -180,8 +181,7 @@ struct TStreamElement { TData data; }; -// this is actually called TokenStream -struct TStream { +struct TokenStream { SInt32 tokens; TStreamElement *firsttoken; }; |