diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-02 10:43:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-02 10:43:44 -0200 |
commit | 868d16dee03e82eba5ad23b6ab6f65b791e3ae94 (patch) | |
tree | ddd91df37aea1db4d36beeadb957a37c3d382127 | |
parent | 3393fd7f257397199c6ecd143f956a19ee4a0cf7 (diff) | |
download | lua-868d16dee03e82eba5ad23b6ab6f65b791e3ae94.tar.gz lua-868d16dee03e82eba5ad23b6ab6f65b791e3ae94.tar.bz2 lua-868d16dee03e82eba5ad23b6ab6f65b791e3ae94.zip |
comments
-rw-r--r-- | llex.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.3 1997/11/19 17:29:23 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.4 1997/11/26 18:53:45 roberto Exp roberto $ |
3 | ** Lexical Analizer | 3 | ** Lexical Analizer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -22,7 +22,7 @@ struct ifState { | |||
22 | }; | 22 | }; |
23 | 23 | ||
24 | struct textBuff { | 24 | struct textBuff { |
25 | char *text; | 25 | char *text; /* always points to luaM_buffer */ |
26 | int tokensize; | 26 | int tokensize; |
27 | int buffsize; | 27 | int buffsize; |
28 | }; | 28 | }; |
@@ -30,13 +30,13 @@ struct textBuff { | |||
30 | 30 | ||
31 | typedef struct LexState { | 31 | typedef struct LexState { |
32 | int current; /* look ahead character */ | 32 | int current; /* look ahead character */ |
33 | struct zio *lex_z; | 33 | struct zio *lex_z; /* input stream */ |
34 | int linenumber; | 34 | int linenumber; /* input line counter */ |
35 | struct textBuff textbuff; /* buffer for tokens */ | ||
36 | int linelasttoken; /* line where last token was read */ | ||
37 | int lastline; /* last line wherein a SETLINE was generated */ | ||
35 | struct ifState ifstate[MAX_IFS]; | 38 | struct ifState ifstate[MAX_IFS]; |
36 | int iflevel; /* level of nested $if's (for lexical analysis) */ | 39 | int iflevel; /* level of nested $if's (for lexical analysis) */ |
37 | struct textBuff textbuff; | ||
38 | int linelasttoken; | ||
39 | int lastline; | ||
40 | } LexState; | 40 | } LexState; |
41 | 41 | ||
42 | 42 | ||