diff options
Diffstat (limited to 'src/llex.h')
-rw-r--r-- | src/llex.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: llex.h,v 1.50 2004/03/12 19:53:56 roberto Exp $ +** $Id: llex.h,v 1.52 2004/12/03 20:54:12 roberto Exp $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -28,14 +28,18 @@ enum RESERVED { TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT, TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE, /* other terminal symbols */ - TK_NAME, TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_NUMBER, - TK_STRING, TK_EOS + TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_NUMBER, + TK_NAME, TK_STRING, TK_EOS }; /* number of reserved words */ #define NUM_RESERVED (cast(int, TK_WHILE-FIRST_RESERVED+1)) +/* array with token `names' */ +extern const char *const luaX_tokens []; + + typedef union { lua_Number r; TString *ts; |