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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 TOK(kINTERPOL_END, "}", 0, kNoAttribute) \ | 127 TOK(kINTERPOL_END, "}", 0, kNoAttribute) \ |
128 \ | 128 \ |
129 TOK(kAT, "@", 0, kNoAttribute) \ | 129 TOK(kAT, "@", 0, kNoAttribute) \ |
130 \ | 130 \ |
131 TOK(kWHITESP, "", 0, kNoAttribute) \ | 131 TOK(kWHITESP, "", 0, kNoAttribute) \ |
132 TOK(kERROR, "", 0, kNoAttribute) \ | 132 TOK(kERROR, "", 0, kNoAttribute) \ |
133 TOK(kILLEGAL, "", 0, kNoAttribute) \ | 133 TOK(kILLEGAL, "", 0, kNoAttribute) \ |
134 \ | 134 \ |
135 /* Support for Dart scripts. */ \ | 135 /* Support for Dart scripts. */ \ |
136 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ | 136 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ |
137 TOK(kLEGACY_LIBRARY, "#library", 0, kNoAttribute) \ | |
138 TOK(kLEGACY_IMPORT, "#import", 0, kNoAttribute) \ | |
139 TOK(kLEGACY_SOURCE, "#source", 0, kNoAttribute) \ | |
140 | 137 |
141 // List of keywords. The list must be alphabetically ordered. The | 138 // List of keywords. The list must be alphabetically ordered. The |
142 // keyword recognition code depends on the ordering. | 139 // keyword recognition code depends on the ordering. |
143 // 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 |
144 // to update kFirstKeyword and kLastKeyword below. | 141 // to update kFirstKeyword and kLastKeyword below. |
145 #define DART_KEYWORD_LIST(KW) \ | 142 #define DART_KEYWORD_LIST(KW) \ |
146 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ | 143 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ |
147 KW(kASSERT, "assert", 0, kKeyword) \ | 144 KW(kASSERT, "assert", 0, kKeyword) \ |
148 KW(kBREAK, "break", 0, kKeyword) \ | 145 KW(kBREAK, "break", 0, kKeyword) \ |
149 KW(kCASE, "case", 0, kKeyword) \ | 146 KW(kCASE, "case", 0, kKeyword) \ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 static const char* name_[]; | 294 static const char* name_[]; |
298 static const char* tok_str_[]; | 295 static const char* tok_str_[]; |
299 static const uint8_t precedence_[]; | 296 static const uint8_t precedence_[]; |
300 static const Attribute attributes_[]; | 297 static const Attribute attributes_[]; |
301 }; | 298 }; |
302 | 299 |
303 | 300 |
304 } // namespace dart | 301 } // namespace dart |
305 | 302 |
306 #endif // VM_TOKEN_H_ | 303 #endif // VM_TOKEN_H_ |
OLD | NEW |