aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.h')
-rw-r--r--lparser.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lparser.h b/lparser.h
index 36b76c97..d7e70479 100644
--- a/lparser.h
+++ b/lparser.h
@@ -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 */
70typedef struct FuncState { 72typedef 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 */