summaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-13 17:37:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-13 17:37:16 -0300
commitf0b697e01caf626785cd9572f82fe98c4a3889fd (patch)
tree13711db24b370bf0484ab05702eaf1871eb6b9a1 /lparser.h
parent73aa465a8ed8dee6c6a27a6f8b2f51227b70789d (diff)
downloadlua-github-f0b697e01caf626785cd9572f82fe98c4a3889fd.tar.gz
details
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 @@
/*
-** $Id: lparser.h,v 1.11 2000/03/09 13:57:37 roberto Exp roberto $
+** $Id: lparser.h,v 1.12 2000/03/10 18:37:44 roberto Exp roberto $
** LL(1) Parser and code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -65,11 +65,15 @@ typedef struct expdesc {
} expdesc;
+#define NO_JUMP (-1) /* marks end of patch list */
+
/* state needed to generate code for a given function */
typedef struct FuncState {
Proto *f; /* current function header */
struct FuncState *prev; /* enclosing function */
+ struct LexState *ls; /* lexical state */
+ struct lua_State *L; /* copy of the Lua state */
int pc; /* next position to code */
int lasttarget; /* `pc' of last `jump target' */
int stacksize; /* number of values on activation register */