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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 TOK(kAT, "@", 0, kNoAttribute) \ | 124 TOK(kAT, "@", 0, kNoAttribute) \ |
125 TOK(kHASH, "#", 0, kNoAttribute) \ | 125 TOK(kHASH, "#", 0, kNoAttribute) \ |
126 \ | 126 \ |
127 TOK(kNEWLINE, "\n", 0, kNoAttribute) \ | 127 TOK(kNEWLINE, "\n", 0, kNoAttribute) \ |
128 TOK(kWHITESP, "", 0, kNoAttribute) \ | 128 TOK(kWHITESP, "", 0, kNoAttribute) \ |
129 TOK(kERROR, "", 0, kNoAttribute) \ | 129 TOK(kERROR, "", 0, kNoAttribute) \ |
130 TOK(kILLEGAL, "", 0, kNoAttribute) \ | 130 TOK(kILLEGAL, "", 0, kNoAttribute) \ |
131 \ | 131 \ |
132 /* Support for Dart scripts. */ \ | 132 /* Support for Dart scripts. */ \ |
133 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ | 133 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ |
| 134 \ |
| 135 /* Support for optimized code */ \ |
| 136 TOK(kREM, "", 0, kNoAttribute) \ |
134 | 137 |
135 // List of keywords. The list must be alphabetically ordered. The | 138 // List of keywords. The list must be alphabetically ordered. The |
136 // keyword recognition code depends on the ordering. | 139 // keyword recognition code depends on the ordering. |
137 // If you add a keyword at the beginning or end of this list, make sure | 140 // If you add a keyword at the beginning or end of this list, make sure |
138 // to update kFirstKeyword and kLastKeyword below. | 141 // to update kFirstKeyword and kLastKeyword below. |
139 #define DART_KEYWORD_LIST(KW) \ | 142 #define DART_KEYWORD_LIST(KW) \ |
140 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ | 143 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ |
141 KW(kAS, "as", 10, kPseudoKeyword) \ | 144 KW(kAS, "as", 10, kPseudoKeyword) \ |
142 KW(kASSERT, "assert", 10, kKeyword) \ | 145 KW(kASSERT, "assert", 10, kKeyword) \ |
143 KW(kBREAK, "break", 0, kKeyword) \ | 146 KW(kBREAK, "break", 0, kKeyword) \ |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 static const char* name_[]; | 314 static const char* name_[]; |
312 static const char* tok_str_[]; | 315 static const char* tok_str_[]; |
313 static const uint8_t precedence_[]; | 316 static const uint8_t precedence_[]; |
314 static const Attribute attributes_[]; | 317 static const Attribute attributes_[]; |
315 }; | 318 }; |
316 | 319 |
317 | 320 |
318 } // namespace dart | 321 } // namespace dart |
319 | 322 |
320 #endif // VM_TOKEN_H_ | 323 #endif // VM_TOKEN_H_ |
OLD | NEW |