diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-05 14:51:58 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-05 14:51:58 -0300 |
commit | 22329e4cdf6c6741523099173c31b0a421825a3c (patch) | |
tree | 6448d563eaf5d8e6b3d7e792459c04f5ac740ddf /lparser.h | |
parent | 9f734094f9bbb34216ef555edf08019d5feea13b (diff) | |
download | lua-22329e4cdf6c6741523099173c31b0a421825a3c.tar.gz lua-22329e4cdf6c6741523099173c31b0a421825a3c.tar.bz2 lua-22329e4cdf6c6741523099173c31b0a421825a3c.zip |
implementation of BREAK
Diffstat (limited to 'lparser.h')
-rw-r--r-- | lparser.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.h,v 1.13 2000/03/13 20:37:16 roberto Exp roberto $ | 2 | ** $Id: lparser.h,v 1.14 2000/03/24 17:26:08 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 | */ |
@@ -34,8 +34,6 @@ typedef struct expdesc { | |||
34 | } expdesc; | 34 | } expdesc; |
35 | 35 | ||
36 | 36 | ||
37 | #define NO_JUMP (-1) /* marks end of patch list */ | ||
38 | |||
39 | 37 | ||
40 | /* state needed to generate code for a given function */ | 38 | /* state needed to generate code for a given function */ |
41 | typedef struct FuncState { | 39 | typedef struct FuncState { |
@@ -45,11 +43,12 @@ typedef struct FuncState { | |||
45 | struct lua_State *L; /* copy of the Lua state */ | 43 | struct lua_State *L; /* copy of the Lua state */ |
46 | int pc; /* next position to code */ | 44 | int pc; /* next position to code */ |
47 | int lasttarget; /* `pc' of last `jump target' */ | 45 | int lasttarget; /* `pc' of last `jump target' */ |
48 | int stacksize; /* number of values on activation register */ | 46 | int stacklevel; /* number of values on activation register */ |
49 | int nlocalvar; /* number of active local variables */ | 47 | int nlocalvar; /* number of active local variables */ |
50 | int nupvalues; /* number of upvalues */ | 48 | int nupvalues; /* number of upvalues */ |
51 | int nvars; /* number of entries in f->locvars (-1 if no debug information) */ | 49 | int nvars; /* number of entries in f->locvars (-1 if no debug information) */ |
52 | int lastsetline; /* line where last SETLINE was issued */ | 50 | int lastsetline; /* line where last SETLINE was issued */ |
51 | struct Breaklabel *bl; /* chain of breakable blocks */ | ||
53 | expdesc upvalues[MAXUPVALUES]; /* upvalues */ | 52 | expdesc upvalues[MAXUPVALUES]; /* upvalues */ |
54 | TString *localvar[MAXLOCALS]; /* store local variable names */ | 53 | TString *localvar[MAXLOCALS]; /* store local variable names */ |
55 | } FuncState; | 54 | } FuncState; |