| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 TOK(kASSIGN_AND, "&=", 2, kNoAttribute) \ | 55 TOK(kASSIGN_AND, "&=", 2, kNoAttribute) \ |
| 56 TOK(kASSIGN_SHL, "<<=", 2, kNoAttribute) \ | 56 TOK(kASSIGN_SHL, "<<=", 2, kNoAttribute) \ |
| 57 TOK(kASSIGN_SHR, ">>=", 2, kNoAttribute) \ | 57 TOK(kASSIGN_SHR, ">>=", 2, kNoAttribute) \ |
| 58 TOK(kASSIGN_ADD, "+=", 2, kNoAttribute) \ | 58 TOK(kASSIGN_ADD, "+=", 2, kNoAttribute) \ |
| 59 TOK(kASSIGN_SUB, "-=", 2, kNoAttribute) \ | 59 TOK(kASSIGN_SUB, "-=", 2, kNoAttribute) \ |
| 60 TOK(kASSIGN_MUL, "*=", 2, kNoAttribute) \ | 60 TOK(kASSIGN_MUL, "*=", 2, kNoAttribute) \ |
| 61 TOK(kASSIGN_TRUNCDIV, "~/=", 2, kNoAttribute) \ | 61 TOK(kASSIGN_TRUNCDIV, "~/=", 2, kNoAttribute) \ |
| 62 TOK(kASSIGN_DIV, "/=", 2, kNoAttribute) \ | 62 TOK(kASSIGN_DIV, "/=", 2, kNoAttribute) \ |
| 63 TOK(kASSIGN_MOD, "%=", 2, kNoAttribute) \ | 63 TOK(kASSIGN_MOD, "%=", 2, kNoAttribute) \ |
| 64 \ | 64 \ |
| 65 TOK(kCASCADE, "..", 2, kNoAttribute) \ |
| 66 \ |
| 65 TOK(kCOMMA, ",", 1, kNoAttribute) \ | 67 TOK(kCOMMA, ",", 1, kNoAttribute) \ |
| 66 TOK(kOR, "||", 4, kNoAttribute) \ | 68 TOK(kOR, "||", 4, kNoAttribute) \ |
| 67 TOK(kAND, "&&", 5, kNoAttribute) \ | 69 TOK(kAND, "&&", 5, kNoAttribute) \ |
| 68 TOK(kBIT_OR, "|", 6, kNoAttribute) \ | 70 TOK(kBIT_OR, "|", 6, kNoAttribute) \ |
| 69 TOK(kBIT_XOR, "^", 7, kNoAttribute) \ | 71 TOK(kBIT_XOR, "^", 7, kNoAttribute) \ |
| 70 TOK(kBIT_AND, "&", 8, kNoAttribute) \ | 72 TOK(kBIT_AND, "&", 8, kNoAttribute) \ |
| 71 TOK(kBIT_NOT, "~", 0, kNoAttribute) \ | 73 TOK(kBIT_NOT, "~", 0, kNoAttribute) \ |
| 72 \ | 74 \ |
| 73 /* Shift operators. */ \ | 75 /* Shift operators. */ \ |
| 74 TOK(kSHL, "<<", 11, kNoAttribute) \ | 76 TOK(kSHL, "<<", 11, kNoAttribute) \ |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 static const char* name_[]; | 284 static const char* name_[]; |
| 283 static const char* tok_str_[]; | 285 static const char* tok_str_[]; |
| 284 static const uint8_t precedence_[]; | 286 static const uint8_t precedence_[]; |
| 285 static const Attribute attributes_[]; | 287 static const Attribute attributes_[]; |
| 286 }; | 288 }; |
| 287 | 289 |
| 288 | 290 |
| 289 } // namespace dart | 291 } // namespace dart |
| 290 | 292 |
| 291 #endif // VM_TOKEN_H_ | 293 #endif // VM_TOKEN_H_ |
| OLD | NEW |