diff options
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.26 2000/05/24 18:04:17 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.27 2000/05/25 18:59:59 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 | */ |
@@ -35,15 +35,6 @@ enum RESERVED { | |||
35 | #define NUM_RESERVED ((int)(TK_WHILE-FIRST_RESERVED+1)) | 35 | #define NUM_RESERVED ((int)(TK_WHILE-FIRST_RESERVED+1)) |
36 | 36 | ||
37 | 37 | ||
38 | /* `ifState' keeps the state of each nested $if the lexical is dealing with. */ | ||
39 | |||
40 | struct ifState { | ||
41 | int elsepart; /* true if it's in the $else part */ | ||
42 | int condition; /* true if $if condition is true */ | ||
43 | int skip; /* true if part must be skipped */ | ||
44 | }; | ||
45 | |||
46 | |||
47 | typedef struct Token { | 38 | typedef struct Token { |
48 | int token; | 39 | int token; |
49 | union { | 40 | union { |
@@ -60,8 +51,6 @@ typedef struct LexState { | |||
60 | struct lua_State *L; | 51 | struct lua_State *L; |
61 | struct zio *z; /* input stream */ | 52 | struct zio *z; /* input stream */ |
62 | int linenumber; /* input line counter */ | 53 | int linenumber; /* input line counter */ |
63 | int iflevel; /* level of nested $if's (for lexical analysis) */ | ||
64 | struct ifState ifstate[MAX_IFS]; | ||
65 | } LexState; | 54 | } LexState; |
66 | 55 | ||
67 | 56 | ||