diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
commit | a948054a1951cd526c732d6a0e16d99cae837d49 (patch) | |
tree | d13984803c85e83eda285a285bd3de2e05a603af /lcode.h | |
parent | a8f8c7fd80a5c7e630fd4bf7f858d05024f6b434 (diff) | |
download | lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.gz lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.bz2 lua-a948054a1951cd526c732d6a0e16d99cae837d49.zip |
new order for binary operations (grouping them by type of result)
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.59 2013/04/25 19:35:19 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.60 2013/04/26 13:07:53 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -24,7 +24,9 @@ | |||
24 | ** grep "ORDER OPR" if you change these enums (ORDER OP) | 24 | ** grep "ORDER OPR" if you change these enums (ORDER OP) |
25 | */ | 25 | */ |
26 | typedef enum BinOpr { | 26 | typedef enum BinOpr { |
27 | OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_IDIV, OPR_MOD, OPR_POW, | 27 | OPR_ADD, OPR_SUB, OPR_MUL, OPR_MOD, OPR_POW, |
28 | OPR_DIV, | ||
29 | OPR_IDIV, | ||
28 | OPR_CONCAT, | 30 | OPR_CONCAT, |
29 | OPR_EQ, OPR_LT, OPR_LE, | 31 | OPR_EQ, OPR_LT, OPR_LE, |
30 | OPR_NE, OPR_GT, OPR_GE, | 32 | OPR_NE, OPR_GT, OPR_GE, |