Browse Source

Adding enum Token and whitespace style at Token.h

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
1265be7bb8
  1. 42
      libsolidity/Token.h

42
libsolidity/Token.h

@ -67,27 +67,27 @@ namespace solidity
#define IGNORE_TOKEN(name, string, precedence) #define IGNORE_TOKEN(name, string, precedence)
#define TOKEN_LIST(T, K) \ #define TOKEN_LIST(T, K) \
/* End of source indicator. */ \ /* End of source indicator. */ \
T(EOS, "EOS", 0) \ T(EOS, "EOS", 0) \
\ \
/* Punctuators (ECMA-262, section 7.7, page 15). */ \ /* Punctuators (ECMA-262, section 7.7, page 15). */ \
T(LParen, "(", 0) \ T(LParen, "(", 0) \
T(RParen, ")", 0) \ T(RParen, ")", 0) \
T(LBrack, "[", 0) \ T(LBrack, "[", 0) \
T(RBrack, "]", 0) \ T(RBrack, "]", 0) \
T(LBrace, "{", 0) \ T(LBrace, "{", 0) \
T(RBrace, "}", 0) \ T(RBrace, "}", 0) \
T(Colon, ":", 0) \ T(Colon, ":", 0) \
T(Semicolon, ";", 0) \ T(Semicolon, ";", 0) \
T(Period, ".", 0) \ T(Period, ".", 0) \
T(Conditional, "?", 3) \ T(Conditional, "?", 3) \
T(Arrow, "=>", 0) \ T(Arrow, "=>", 0) \
\ \
/* Assignment operators. */ \ /* Assignment operators. */ \
/* IsAssignmentOp() relies on this block of enum values being */ \ /* IsAssignmentOp() relies on this block of enum values being */ \
/* contiguous and sorted in the same order!*/ \ /* contiguous and sorted in the same order!*/ \
T(Assign, "=", 2) \ T(Assign, "=", 2) \
/* The following have to be in exactly the same order as the simple binary operators*/ \ /* The following have to be in exactly the same order as the simple binary operators*/ \
T(AssignBitOr, "|=", 2) \ T(AssignBitOr, "|=", 2) \
T(AssignBitXor, "^=", 2) \ T(AssignBitXor, "^=", 2) \

Loading…
Cancel
Save