aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-16 15:46:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-16 15:46:28 -0300
commit1294b09d8eff59a5fa00a43a2c462d338546da1f (patch)
treeaec3bb6fbfdefba54fae9f0ebabda72885d1a3a7 /lparser.h
parentd4f0c4435d026e5621b4b777c872815cee6f57bb (diff)
downloadlua-1294b09d8eff59a5fa00a43a2c462d338546da1f.tar.gz
lua-1294b09d8eff59a5fa00a43a2c462d338546da1f.tar.bz2
lua-1294b09d8eff59a5fa00a43a2c462d338546da1f.zip
first implementation of literal integers (no constant folding yet)
Diffstat (limited to 'lparser.h')
-rw-r--r--lparser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lparser.h b/lparser.h
index 33257932..41f3c42b 100644
--- a/lparser.h
+++ b/lparser.h
@@ -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' */