diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-13 17:37:16 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-13 17:37:16 -0300 |
| commit | f0b697e01caf626785cd9572f82fe98c4a3889fd (patch) | |
| tree | 13711db24b370bf0484ab05702eaf1871eb6b9a1 /lparser.h | |
| parent | 73aa465a8ed8dee6c6a27a6f8b2f51227b70789d (diff) | |
| download | lua-f0b697e01caf626785cd9572f82fe98c4a3889fd.tar.gz lua-f0b697e01caf626785cd9572f82fe98c4a3889fd.tar.bz2 lua-f0b697e01caf626785cd9572f82fe98c4a3889fd.zip | |
details
Diffstat (limited to 'lparser.h')
| -rw-r--r-- | lparser.h | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.h,v 1.11 2000/03/09 13:57:37 roberto Exp roberto $ | 2 | ** $Id: lparser.h,v 1.12 2000/03/10 18:37:44 roberto Exp roberto $ |
| 3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -65,11 +65,15 @@ typedef struct expdesc { | |||
| 65 | } expdesc; | 65 | } expdesc; |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | #define NO_JUMP (-1) /* marks end of patch list */ | ||
| 69 | |||
| 68 | 70 | ||
| 69 | /* state needed to generate code for a given function */ | 71 | /* state needed to generate code for a given function */ |
| 70 | typedef struct FuncState { | 72 | typedef struct FuncState { |
| 71 | Proto *f; /* current function header */ | 73 | Proto *f; /* current function header */ |
| 72 | struct FuncState *prev; /* enclosing function */ | 74 | struct FuncState *prev; /* enclosing function */ |
| 75 | struct LexState *ls; /* lexical state */ | ||
| 76 | struct lua_State *L; /* copy of the Lua state */ | ||
| 73 | int pc; /* next position to code */ | 77 | int pc; /* next position to code */ |
| 74 | int lasttarget; /* `pc' of last `jump target' */ | 78 | int lasttarget; /* `pc' of last `jump target' */ |
| 75 | int stacksize; /* number of values on activation register */ | 79 | int stacksize; /* number of values on activation register */ |
