aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-25 15:59:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-25 15:59:59 -0300
commit58fbdc76d558c8039a966852ca07802f0a413b11 (patch)
treef0de4a6d4ed8e7dc88d476b9f5348e353f05f6eb /llex.h
parenta3013046121b186bf4b5e54b247d3209fd76de5a (diff)
downloadlua-58fbdc76d558c8039a966852ca07802f0a413b11.tar.gz
lua-58fbdc76d558c8039a966852ca07802f0a413b11.tar.bz2
lua-58fbdc76d558c8039a966852ca07802f0a413b11.zip
better implementation for looh-ahead
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llex.h b/llex.h
index 7235bdc8..f6029d72 100644
--- a/llex.h
+++ b/llex.h
@@ -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
55typedef struct LexState { 55typedef 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 */