BIG CHANGE: new data structure for constants, strings and globals, using

an array of hash tables for all them.
This commit is contained in:
Roberto Ierusalimschy
1996-02-12 15:32:40 -03:00
parent afaa98a666
commit 41259bff31
12 changed files with 146 additions and 135 deletions

4
lex.c
View File

@@ -1,4 +1,4 @@
char *rcs_lex = "$Id: lex.c,v 2.23 1996/02/07 14:14:40 roberto Exp roberto $";
char *rcs_lex = "$Id: lex.c,v 2.24 1996/02/09 19:35:23 roberto Exp roberto $";
#include <ctype.h>
@@ -287,7 +287,7 @@ int luaY_lex (void)
*yytextLast = 0;
res = findReserved(yytext);
if (res) return res;
luaY_lval.pNode = lua_constcreate(yytext);
luaY_lval.pTStr = luaI_createfixedstring(yytext);
return NAME;
}