| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 \ | 122 \ |
| 123 TOK(kWHITESP, "", 0, kNoAttribute) \ | 123 TOK(kWHITESP, "", 0, kNoAttribute) \ |
| 124 TOK(kERROR, "", 0, kNoAttribute) \ | 124 TOK(kERROR, "", 0, kNoAttribute) \ |
| 125 TOK(kILLEGAL, "", 0, kNoAttribute) \ | 125 TOK(kILLEGAL, "", 0, kNoAttribute) \ |
| 126 \ | 126 \ |
| 127 /* Support for Dart scripts. */ \ | 127 /* Support for Dart scripts. */ \ |
| 128 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ | 128 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ |
| 129 TOK(kLIBRARY, "#library", 0, kNoAttribute) \ | 129 TOK(kLIBRARY, "#library", 0, kNoAttribute) \ |
| 130 TOK(kIMPORT, "#import", 0, kNoAttribute) \ | 130 TOK(kIMPORT, "#import", 0, kNoAttribute) \ |
| 131 TOK(kSOURCE, "#source", 0, kNoAttribute) \ | 131 TOK(kSOURCE, "#source", 0, kNoAttribute) \ |
| 132 TOK(kRESOURCE, "#resource", 0, kNoAttribute) \ |
| 132 | 133 |
| 133 // List of keywords. The list must be alphabetically ordered. The | 134 // List of keywords. The list must be alphabetically ordered. The |
| 134 // keyword recognition code depends on the ordering. | 135 // keyword recognition code depends on the ordering. |
| 135 // If you add a keyword at the beginning or end of this list, make sure | 136 // If you add a keyword at the beginning or end of this list, make sure |
| 136 // to update kFirstKeyword and kLastKeyword below. | 137 // to update kFirstKeyword and kLastKeyword below. |
| 137 #define DART_KEYWORD_LIST(KW) \ | 138 #define DART_KEYWORD_LIST(KW) \ |
| 138 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ | 139 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ |
| 139 KW(kASSERT, "assert", 0, kPseudoKeyword) \ | 140 KW(kASSERT, "assert", 0, kPseudoKeyword) \ |
| 140 KW(kBREAK, "break", 0, kKeyword) \ | 141 KW(kBREAK, "break", 0, kKeyword) \ |
| 141 KW(kCASE, "case", 0, kKeyword) \ | 142 KW(kCASE, "case", 0, kKeyword) \ |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 static const char* name_[kNumTokens]; | 257 static const char* name_[kNumTokens]; |
| 257 static const char* tok_str_[kNumTokens]; | 258 static const char* tok_str_[kNumTokens]; |
| 258 static const uint8_t precedence_[kNumTokens]; | 259 static const uint8_t precedence_[kNumTokens]; |
| 259 static const Attribute attributes_[kNumTokens]; | 260 static const Attribute attributes_[kNumTokens]; |
| 260 }; | 261 }; |
| 261 | 262 |
| 262 | 263 |
| 263 } // namespace dart | 264 } // namespace dart |
| 264 | 265 |
| 265 #endif // VM_TOKEN_H_ | 266 #endif // VM_TOKEN_H_ |
| OLD | NEW |