Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ | 138 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ |
| 139 KW(kASSERT, "assert", 0, kKeyword) \ | 139 KW(kASSERT, "assert", 0, kKeyword) \ |
| 140 KW(kBREAK, "break", 0, kKeyword) \ | 140 KW(kBREAK, "break", 0, kKeyword) \ |
| 141 KW(kCASE, "case", 0, kKeyword) \ | 141 KW(kCASE, "case", 0, kKeyword) \ |
| 142 KW(kCATCH, "catch", 0, kKeyword) \ | 142 KW(kCATCH, "catch", 0, kKeyword) \ |
| 143 KW(kCLASS, "class", 0, kPseudoKeyword) \ | 143 KW(kCLASS, "class", 0, kPseudoKeyword) \ |
| 144 KW(kCONST, "const", 0, kKeyword) \ | 144 KW(kCONST, "const", 0, kKeyword) \ |
| 145 KW(kCONTINUE, "continue", 0, kKeyword) \ | 145 KW(kCONTINUE, "continue", 0, kKeyword) \ |
| 146 KW(kDEFAULT, "default", 0, kKeyword) \ | 146 KW(kDEFAULT, "default", 0, kKeyword) \ |
| 147 KW(kDO, "do", 0, kKeyword) \ | 147 KW(kDO, "do", 0, kKeyword) \ |
| 148 KW(kDYNAMIC, "Dynamic", 0, kKeyword) \ | |
|
hausner
2011/10/26 22:41:11
I don't think this works. The list must be alphabe
regis
2011/10/27 01:29:14
Indeed. I realized quickly after adding a test :-)
| |
| 148 KW(kELSE, "else", 0, kKeyword) \ | 149 KW(kELSE, "else", 0, kKeyword) \ |
| 149 KW(kEXTENDS, "extends", 0, kPseudoKeyword) \ | 150 KW(kEXTENDS, "extends", 0, kPseudoKeyword) \ |
| 150 KW(kFACTORY, "factory", 0, kPseudoKeyword) \ | 151 KW(kFACTORY, "factory", 0, kPseudoKeyword) \ |
| 151 KW(kFALSE, "false", 0, kKeyword) \ | 152 KW(kFALSE, "false", 0, kKeyword) \ |
| 152 KW(kFINAL, "final", 0, kKeyword) \ | 153 KW(kFINAL, "final", 0, kKeyword) \ |
| 153 KW(kFINALLY, "finally", 0, kKeyword) \ | 154 KW(kFINALLY, "finally", 0, kKeyword) \ |
| 154 KW(kFOR, "for", 0, kKeyword) \ | 155 KW(kFOR, "for", 0, kKeyword) \ |
| 155 KW(kGET, "get", 0, kPseudoKeyword) \ | 156 KW(kGET, "get", 0, kPseudoKeyword) \ |
| 156 KW(kIF, "if", 0, kKeyword) \ | 157 KW(kIF, "if", 0, kKeyword) \ |
| 157 KW(kIMPLEMENTS, "implements", 0, kPseudoKeyword) \ | 158 KW(kIMPLEMENTS, "implements", 0, kPseudoKeyword) \ |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 static const char* name_[kNumTokens]; | 254 static const char* name_[kNumTokens]; |
| 254 static const char* tok_str_[kNumTokens]; | 255 static const char* tok_str_[kNumTokens]; |
| 255 static const uint8_t precedence_[kNumTokens]; | 256 static const uint8_t precedence_[kNumTokens]; |
| 256 static const Attribute attributes_[kNumTokens]; | 257 static const Attribute attributes_[kNumTokens]; |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 | 260 |
| 260 } // namespace dart | 261 } // namespace dart |
| 261 | 262 |
| 262 #endif // VM_TOKEN_H_ | 263 #endif // VM_TOKEN_H_ |
| OLD | NEW |