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 "vm/assert.h" | 8 #include "platform/assert.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
11 | 11 |
12 // Operator precedence table | 12 // Operator precedence table |
13 // | 13 // |
14 // 13 multiplicative * / ~/ % | 14 // 13 multiplicative * / ~/ % |
15 // 12 additive + - | 15 // 12 additive + - |
16 // 11 shift << >> | 16 // 11 shift << >> |
17 // 10 relational >= > <= < is | 17 // 10 relational >= > <= < is |
18 // 9 equality == != === !== | 18 // 9 equality == != === !== |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 static const char* name_[kNumTokens]; | 254 static const char* name_[kNumTokens]; |
255 static const char* tok_str_[kNumTokens]; | 255 static const char* tok_str_[kNumTokens]; |
256 static const uint8_t precedence_[kNumTokens]; | 256 static const uint8_t precedence_[kNumTokens]; |
257 static const Attribute attributes_[kNumTokens]; | 257 static const Attribute attributes_[kNumTokens]; |
258 }; | 258 }; |
259 | 259 |
260 | 260 |
261 } // namespace dart | 261 } // namespace dart |
262 | 262 |
263 #endif // VM_TOKEN_H_ | 263 #endif // VM_TOKEN_H_ |
OLD | NEW |