diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 15:04:17 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 15:04:17 -0300 |
commit | 677313da32d58b418c15dc5f4a6ff435fb63d365 (patch) | |
tree | 418e702f7479e051be69b41fd133b13d846834d2 /llex.h | |
parent | ef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (diff) | |
download | lua-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.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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 | ||
47 | typedef struct LexState { | 47 | typedef 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 | |||
55 | typedef 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) */ |