diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-25 15:59:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-25 15:59:59 -0300 |
commit | 58fbdc76d558c8039a966852ca07802f0a413b11 (patch) | |
tree | f0de4a6d4ed8e7dc88d476b9f5348e353f05f6eb /llex.c | |
parent | a3013046121b186bf4b5e54b247d3209fd76de5a (diff) | |
download | lua-58fbdc76d558c8039a966852ca07802f0a413b11.tar.gz lua-58fbdc76d558c8039a966852ca07802f0a413b11.tar.bz2 lua-58fbdc76d558c8039a966852ca07802f0a413b11.zip |
better implementation for looh-ahead
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.59 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.60 2000/05/24 18:04:17 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -108,7 +108,7 @@ static void firstline (LexState *LS) | |||
108 | void luaX_setinput (lua_State *L, LexState *LS, ZIO *z) { | 108 | void luaX_setinput (lua_State *L, LexState *LS, ZIO *z) { |
109 | LS->L = L; | 109 | LS->L = L; |
110 | LS->current = '\n'; | 110 | LS->current = '\n'; |
111 | LS->next.token = TK_EOS; /* no next token */ | 111 | LS->lookahead.token = TK_EOS; /* no look-ahead token */ |
112 | LS->linenumber = 0; | 112 | LS->linenumber = 0; |
113 | LS->iflevel = 0; | 113 | LS->iflevel = 0; |
114 | LS->ifstate[0].skip = 0; | 114 | LS->ifstate[0].skip = 0; |