aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-24 15:04:17 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-24 15:04:17 -0300
commit677313da32d58b418c15dc5f4a6ff435fb63d365 (patch)
tree418e702f7479e051be69b41fd133b13d846834d2 /llex.h
parentef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (diff)
downloadlua-677313da32d58b418c15dc5f4a6ff435fb63d365.tar.gz
lua-677313da32d58b418c15dc5f4a6ff435fb63d365.tar.bz2
lua-677313da32d58b418c15dc5f4a6ff435fb63d365.zip
bug: record-constructor starting with an upvalue name gets an error
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/llex.h b/llex.h
index b0f0fc8c..7235bdc8 100644
--- a/llex.h
+++ b/llex.h
@@ -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
47typedef struct LexState { 47typedef 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
55typedef 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) */