| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_TOKEN_H_ | 5 #ifndef VM_TOKEN_H_ |
| 6 #define VM_TOKEN_H_ | 6 #define VM_TOKEN_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 TOK(kBIT_AND, "&", 8, kNoAttribute) \ | 72 TOK(kBIT_AND, "&", 8, kNoAttribute) \ |
| 73 TOK(kBIT_NOT, "~", 0, kNoAttribute) \ | 73 TOK(kBIT_NOT, "~", 0, kNoAttribute) \ |
| 74 \ | 74 \ |
| 75 /* Shift operators. */ \ | 75 /* Shift operators. */ \ |
| 76 TOK(kSHL, "<<", 11, kNoAttribute) \ | 76 TOK(kSHL, "<<", 11, kNoAttribute) \ |
| 77 TOK(kSHR, ">>", 11, kNoAttribute) \ | 77 TOK(kSHR, ">>", 11, kNoAttribute) \ |
| 78 \ | 78 \ |
| 79 /* Additive operators. */ \ | 79 /* Additive operators. */ \ |
| 80 TOK(kADD, "+", 12, kNoAttribute) \ | 80 TOK(kADD, "+", 12, kNoAttribute) \ |
| 81 TOK(kSUB, "-", 12, kNoAttribute) \ | 81 TOK(kSUB, "-", 12, kNoAttribute) \ |
| 82 /* A 'plus' without a trailing whitespace (handle literals). */ \ | |
| 83 TOK(kTIGHTADD, "+", 12, kNoAttribute) \ | |
| 84 \ | 82 \ |
| 85 /* Multiplicative operators */ \ | 83 /* Multiplicative operators */ \ |
| 86 TOK(kMUL, "*", 13, kNoAttribute) \ | 84 TOK(kMUL, "*", 13, kNoAttribute) \ |
| 87 TOK(kDIV, "/", 13, kNoAttribute) \ | 85 TOK(kDIV, "/", 13, kNoAttribute) \ |
| 88 TOK(kTRUNCDIV, "~/", 13, kNoAttribute) \ | 86 TOK(kTRUNCDIV, "~/", 13, kNoAttribute) \ |
| 89 TOK(kMOD, "%", 13, kNoAttribute) \ | 87 TOK(kMOD, "%", 13, kNoAttribute) \ |
| 90 \ | 88 \ |
| 91 TOK(kNOT, "!", 0, kNoAttribute) \ | 89 TOK(kNOT, "!", 0, kNoAttribute) \ |
| 92 TOK(kCONDITIONAL, "?", 3, kNoAttribute) \ | 90 TOK(kCONDITIONAL, "?", 3, kNoAttribute) \ |
| 93 \ | 91 \ |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 static const char* name_[]; | 311 static const char* name_[]; |
| 314 static const char* tok_str_[]; | 312 static const char* tok_str_[]; |
| 315 static const uint8_t precedence_[]; | 313 static const uint8_t precedence_[]; |
| 316 static const Attribute attributes_[]; | 314 static const Attribute attributes_[]; |
| 317 }; | 315 }; |
| 318 | 316 |
| 319 | 317 |
| 320 } // namespace dart | 318 } // namespace dart |
| 321 | 319 |
| 322 #endif // VM_TOKEN_H_ | 320 #endif // VM_TOKEN_H_ |
| OLD | NEW |