aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-26 11:04:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-26 11:04:04 -0300
commitc39345fba361257bc426cd042a39691a0d68d68a (patch)
treee8d03e26854c360fa33d380f0d263b34b3bff36f /llex.h
parented94a85f0c08b2c17e82f0012e503aac13afe9a7 (diff)
downloadlua-c39345fba361257bc426cd042a39691a0d68d68a.tar.gz
lua-c39345fba361257bc426cd042a39691a0d68d68a.tar.bz2
lua-c39345fba361257bc426cd042a39691a0d68d68a.zip
no more pragmas
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/llex.h b/llex.h
index f6029d72..8dba8721 100644
--- a/llex.h
+++ b/llex.h
@@ -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
40struct 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
47typedef struct Token { 38typedef 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