summaryrefslogtreecommitdiff
path: root/src/llex.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2004-12-07 12:00:00 +0000
committerrepogen <>2004-12-07 12:00:00 +0000
commit226f7859b5392b6680b7e703f9cc7f7f101fd365 (patch)
tree4345e84719d7f9ccf8d62fa007cbd386f235c58a /src/llex.h
parentd8fd22e11b391cf183068049bebbee9702c8f78f (diff)
downloadlua-github-5.1-work3.tar.gz
Lua 5.1-work35.1-work3
Diffstat (limited to 'src/llex.h')
-rw-r--r--src/llex.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/llex.h b/src/llex.h
index 6cfc3fdd..a16bba8d 100644
--- a/src/llex.h
+++ b/src/llex.h
@@ -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;