diff options
author | Christian <c@ethdev.com> | 2014-12-01 20:46:04 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-01 20:46:04 +0800 |
commit | b685735b3ac267fbcef97cf89b68adba65cf9ff0 (patch) | |
tree | 3ca827d76550bf18fe1c27184d0c886dd7524143 /Token.h | |
parent | 3fc2708d657525162567b663a07cf8cb5b1c59aa (diff) | |
download | dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.tar dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.tar.gz dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.tar.bz2 dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.tar.lz dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.tar.xz dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.tar.zst dexon-solidity-b685735b3ac267fbcef97cf89b68adba65cf9ff0.zip |
Cleanup of scanner.
Removed redundancy of keyword definitions and removed some unused token
predicates.
Diffstat (limited to 'Token.h')
-rw-r--r-- | Token.h | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -314,25 +314,11 @@ public: } // Predicates - static bool isKeyword(Value tok) { return m_tokenType[tok] == 'K'; } - static bool isIdentifier(Value tok) { return tok == IDENTIFIER; } static bool isElementaryTypeName(Value tok) { return INT <= tok && tok < TYPES_END; } static bool isAssignmentOp(Value tok) { return ASSIGN <= tok && tok <= ASSIGN_MOD; } static bool isBinaryOp(Value op) { return COMMA <= op && op <= MOD; } - static bool isTruncatingBinaryOp(Value op) { return BIT_OR <= op && op <= SHR; } static bool isArithmeticOp(Value op) { return ADD <= op && op <= MOD; } static bool isCompareOp(Value op) { return EQ <= op && op <= IN; } - static bool isOrderedRelationalCompareOp(Value op) - { - return op == LT || op == LTE || op == GT || op == GTE; - } - static bool isEqualityOp(Value op) { return op == EQ; } - static bool isInequalityOp(Value op) { return op == NE; } - static bool isArithmeticCompareOp(Value op) - { - return isOrderedRelationalCompareOp(op) || - isEqualityOp(op) || isInequalityOp(op); - } static Value AssignmentToBinaryOp(Value op) { |