From 1294b09d8eff59a5fa00a43a2c462d338546da1f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Apr 2013 15:46:28 -0300 Subject: first implementation of literal integers (no constant folding yet) --- llex.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llex.h') diff --git a/llex.h b/llex.h index 1125e836..14eb548d 100644 --- a/llex.h +++ b/llex.h @@ -1,5 +1,5 @@ /* -** $Id: llex.h,v 1.71 2011/06/20 16:52:48 roberto Exp roberto $ +** $Id: llex.h,v 1.72 2011/11/30 12:43:51 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -27,7 +27,7 @@ enum RESERVED { TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE, /* other terminal symbols */ TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_DBCOLON, TK_EOS, - TK_NUMBER, TK_NAME, TK_STRING + TK_FLT, TK_INT, TK_NAME, TK_STRING }; /* number of reserved words */ @@ -36,6 +36,7 @@ enum RESERVED { typedef union { lua_Number r; + lua_Integer i; TString *ts; } SemInfo; /* semantics information */ -- cgit v1.2.3-55-g6feb