summaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-02 10:43:44 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-02 10:43:44 -0200
commit868d16dee03e82eba5ad23b6ab6f65b791e3ae94 (patch)
treeddd91df37aea1db4d36beeadb957a37c3d382127 /llex.h
parent3393fd7f257397199c6ecd143f956a19ee4a0cf7 (diff)
downloadlua-github-868d16dee03e82eba5ad23b6ab6f65b791e3ae94.tar.gz
comments
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/llex.h b/llex.h
index a24fdec1..eba9c351 100644
--- a/llex.h
+++ b/llex.h
@@ -1,5 +1,5 @@
/*
-** $Id: llex.h,v 1.3 1997/11/19 17:29:23 roberto Exp roberto $
+** $Id: llex.h,v 1.4 1997/11/26 18:53:45 roberto Exp roberto $
** Lexical Analizer
** See Copyright Notice in lua.h
*/
@@ -22,7 +22,7 @@ struct ifState {
};
struct textBuff {
- char *text;
+ char *text; /* always points to luaM_buffer */
int tokensize;
int buffsize;
};
@@ -30,13 +30,13 @@ struct textBuff {
typedef struct LexState {
int current; /* look ahead character */
- struct zio *lex_z;
- int linenumber;
+ struct zio *lex_z; /* input stream */
+ int linenumber; /* input line counter */
+ struct textBuff textbuff; /* buffer for tokens */
+ int linelasttoken; /* line where last token was read */
+ int lastline; /* last line wherein a SETLINE was generated */
struct ifState ifstate[MAX_IFS];
int iflevel; /* level of nested $if's (for lexical analysis) */
- struct textBuff textbuff;
- int linelasttoken;
- int lastline;
} LexState;