diff options
author | Christian <c@ethdev.com> | 2014-12-19 00:04:20 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-19 00:19:42 +0800 |
commit | b0037eddfd9bc2a0473b7bab4630495fd14a0546 (patch) | |
tree | a8987e1d6fe1b9c89b8e3a8dff6b921742c25804 | |
parent | f744c34ccc30e053eb61aecb5621f4e8060a8b0c (diff) | |
download | dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.tar dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.tar.gz dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.tar.bz2 dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.tar.lz dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.tar.xz dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.tar.zst dexon-solidity-b0037eddfd9bc2a0473b7bab4630495fd14a0546.zip |
Bit operators should bind more strongly than comparison operators.
-rw-r--r-- | Token.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -107,9 +107,9 @@ namespace solidity T(COMMA, ",", 1) \ T(OR, "||", 4) \ T(AND, "&&", 5) \ - T(BIT_OR, "|", 6) \ - T(BIT_XOR, "^", 7) \ - T(BIT_AND, "&", 8) \ + T(BIT_OR, "|", 8) \ + T(BIT_XOR, "^", 9) \ + T(BIT_AND, "&", 10) \ T(SHL, "<<", 11) \ T(SAR, ">>", 11) \ T(SHR, ">>>", 11) \ @@ -122,13 +122,13 @@ namespace solidity /* Compare operators sorted by precedence. */ \ /* IsCompareOp() relies on this block of enum values */ \ /* being contiguous and sorted in the same order! */ \ - T(EQ, "==", 9) \ - T(NE, "!=", 9) \ - T(LT, "<", 10) \ - T(GT, ">", 10) \ - T(LTE, "<=", 10) \ - T(GTE, ">=", 10) \ - K(IN, "in", 10) \ + T(EQ, "==", 6) \ + T(NE, "!=", 6) \ + T(LT, "<", 7) \ + T(GT, ">", 7) \ + T(LTE, "<=", 7) \ + T(GTE, ">=", 7) \ + K(IN, "in", 7) \ \ /* Unary operators. */ \ /* IsUnaryOp() relies on this block of enum values */ \ |