This commit is contained in:
Roberto Ierusalimschy
2000-03-13 17:37:16 -03:00
parent 73aa465a8e
commit f0b697e01c
5 changed files with 289 additions and 275 deletions

View File

@@ -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 */