diff options
Diffstat (limited to 'lparser.h')
-rw-r--r-- | lparser.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.h,v 1.69 2011/07/27 18:09:01 roberto Exp roberto $ | 2 | ** $Id: lparser.h,v 1.70 2012/05/08 13:53:33 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -22,7 +22,8 @@ typedef enum { | |||
22 | VTRUE, | 22 | VTRUE, |
23 | VFALSE, | 23 | VFALSE, |
24 | VK, /* info = index of constant in `k' */ | 24 | VK, /* info = index of constant in `k' */ |
25 | VKNUM, /* nval = numerical value */ | 25 | VKFLT, /* nval = numerical float value */ |
26 | VKINT, /* nval = numerical integer value */ | ||
26 | VNONRELOC, /* info = result register */ | 27 | VNONRELOC, /* info = result register */ |
27 | VLOCAL, /* info = local register */ | 28 | VLOCAL, /* info = local register */ |
28 | VUPVAL, /* info = index of upvalue in 'upvalues' */ | 29 | VUPVAL, /* info = index of upvalue in 'upvalues' */ |
@@ -46,7 +47,8 @@ typedef struct expdesc { | |||
46 | lu_byte vt; /* whether 't' is register (VLOCAL) or upvalue (VUPVAL) */ | 47 | lu_byte vt; /* whether 't' is register (VLOCAL) or upvalue (VUPVAL) */ |
47 | } ind; | 48 | } ind; |
48 | int info; /* for generic use */ | 49 | int info; /* for generic use */ |
49 | lua_Number nval; /* for VKNUM */ | 50 | lua_Number nval; /* for VKFLT */ |
51 | lua_Integer ival; /* for VKINT */ | ||
50 | } u; | 52 | } u; |
51 | int t; /* patch list of `exit when true' */ | 53 | int t; /* patch list of `exit when true' */ |
52 | int f; /* patch list of `exit when false' */ | 54 | int f; /* patch list of `exit when false' */ |