diff options
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.24 2000/04/12 18:57:19 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.25 2000/05/24 13:54:49 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 | */ |
@@ -44,15 +44,20 @@ struct ifState { | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | 46 | ||
47 | typedef struct LexState { | 47 | typedef struct Token { |
48 | int current; /* look ahead character */ | 48 | int token; |
49 | int token; /* look ahead token */ | ||
50 | struct FuncState *fs; /* `FuncState' is private to the parser */ | ||
51 | struct lua_State *L; | ||
52 | union { | 49 | union { |
53 | Number r; | 50 | Number r; |
54 | TString *ts; | 51 | TString *ts; |
55 | } seminfo; /* semantics information */ | 52 | } seminfo; /* semantics information */ |
53 | } Token; | ||
54 | |||
55 | typedef struct LexState { | ||
56 | int current; /* look ahead character */ | ||
57 | Token t; /* look ahead token */ | ||
58 | Token next; /* to `unget' a token */ | ||
59 | struct FuncState *fs; /* `FuncState' is private to the parser */ | ||
60 | struct lua_State *L; | ||
56 | struct zio *z; /* input stream */ | 61 | struct zio *z; /* input stream */ |
57 | int linenumber; /* input line counter */ | 62 | int linenumber; /* input line counter */ |
58 | int iflevel; /* level of nested $if's (for lexical analysis) */ | 63 | int iflevel; /* level of nested $if's (for lexical analysis) */ |