Lua 5.1.4: lparser.h
L0001
L0006
L0007 #ifndef lparser_h
L0008 #define lparser_h
L0009
L0010 #include "llimits.h"
L0011 #include "lobject.h"
L0012 #include "lzio.h"
L0013
L0014
L0015
L0018
L0019 typedef enum {
L0020 VVOID,
L0021 VNIL,
L0022 VTRUE,
L0023 VFALSE,
L0024 VK,
L0025 VKNUM,
L0026 VLOCAL,
L0027 VUPVAL,
L0028 VGLOBAL,
L0029 VINDEXED,
L0030 VJMP,
L0031 VRELOCABLE,
L0032 VNONRELOC,
L0033 VCALL,
L0034 VVARARG
L0035 } expkind;
L0036
L0037 typedef struct expdesc {
L0038 expkind k;
L0039 union {
L0040 struct { int info, aux; } s;
L0041 lua_Number nval;
L0042 } u;
L0043 int t;
L0044 int f;
L0045 } expdesc;
L0046
L0047
L0048 typedef struct upvaldesc {
L0049 lu_byte k;
L0050 lu_byte info;
L0051 } upvaldesc;
L0052
L0053
L0054 struct BlockCnt;
L0055
L0056
L0057
L0058 typedef struct FuncState {
L0059 Proto *f;
L0060 Table *h;
L0061 struct FuncState *prev;
L0062 struct LexState *ls;
L0063 struct lua_State *L;
L0064 struct BlockCnt *bl;
L0065 int pc;
L0066 int lasttarget;
L0067 int jpc;
L0068 int freereg;
L0069 int nk;
L0070 int np;
L0071 short nlocvars;
L0072 lu_byte nactvar;
L0073 upvaldesc upvalues[LUAI_MAXUPVALUES];
L0074 unsigned short actvar[LUAI_MAXVARS];
L0075 } FuncState;
L0076
L0077
L0078 LUAI_FUNC Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
L0079 const char *name);
L0080
L0081
L0082 #endif
Generated by pretty.lua