diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-30 18:47:58 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-30 18:47:58 -0200 |
commit | 1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51 (patch) | |
tree | bdedb3205963f8db43391aaef5be853cdeb59df4 /lcode.h | |
parent | f5133aa1a55cee96b535ff788764437deacdc26a (diff) | |
download | lua-github-1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51.tar.gz |
first implementation of '<<', '>>', and '~' (bitwise not)
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lcode.h,v 1.61 2013/12/16 19:06:52 roberto Exp roberto $ +** $Id: lcode.h,v 1.62 2013/12/18 14:12:03 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -28,6 +28,7 @@ typedef enum BinOpr { OPR_DIV, OPR_IDIV, OPR_BAND, OPR_BOR, OPR_BXOR, + OPR_SHL, OPR_SHR, OPR_CONCAT, OPR_EQ, OPR_LT, OPR_LE, OPR_NE, OPR_GT, OPR_GE, @@ -36,7 +37,7 @@ typedef enum BinOpr { } BinOpr; -typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; +typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; #define getcode(fs,e) ((fs)->f->code[(e)->u.info]) |