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.h | |
parent | a3013046121b186bf4b5e54b247d3209fd76de5a (diff) | |
download | lua-58fbdc76d558c8039a966852ca07802f0a413b11.tar.gz lua-58fbdc76d558c8039a966852ca07802f0a413b11.tar.bz2 lua-58fbdc76d558c8039a966852ca07802f0a413b11.zip |
better implementation for looh-ahead
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.25 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.26 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 | */ |
@@ -53,9 +53,9 @@ typedef struct Token { | |||
53 | } Token; | 53 | } Token; |
54 | 54 | ||
55 | typedef struct LexState { | 55 | typedef struct LexState { |
56 | int current; /* look ahead character */ | 56 | int current; /* current character */ |
57 | Token t; /* look ahead token */ | 57 | Token t; /* current token */ |
58 | Token next; /* to `unget' a token */ | 58 | Token lookahead; /* look ahead token */ |
59 | struct FuncState *fs; /* `FuncState' is private to the parser */ | 59 | struct FuncState *fs; /* `FuncState' is private to the parser */ |
60 | struct lua_State *L; | 60 | struct lua_State *L; |
61 | struct zio *z; /* input stream */ | 61 | struct zio *z; /* input stream */ |