Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: runtime/vm/token.h

Issue 735723003: Implement enum types in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 KW(kASSERT, "assert", 10, kKeyword) \ 145 KW(kASSERT, "assert", 10, kKeyword) \
146 KW(kBREAK, "break", 0, kKeyword) \ 146 KW(kBREAK, "break", 0, kKeyword) \
147 KW(kCASE, "case", 0, kKeyword) \ 147 KW(kCASE, "case", 0, kKeyword) \
148 KW(kCATCH, "catch", 0, kKeyword) \ 148 KW(kCATCH, "catch", 0, kKeyword) \
149 KW(kCLASS, "class", 0, kKeyword) \ 149 KW(kCLASS, "class", 0, kKeyword) \
150 KW(kCONST, "const", 0, kKeyword) \ 150 KW(kCONST, "const", 0, kKeyword) \
151 KW(kCONTINUE, "continue", 0, kKeyword) \ 151 KW(kCONTINUE, "continue", 0, kKeyword) \
152 KW(kDEFAULT, "default", 0, kKeyword) \ 152 KW(kDEFAULT, "default", 0, kKeyword) \
153 KW(kDO, "do", 0, kKeyword) \ 153 KW(kDO, "do", 0, kKeyword) \
154 KW(kELSE, "else", 0, kKeyword) \ 154 KW(kELSE, "else", 0, kKeyword) \
155 KW(kENUM, "enum", 0, kKeyword) \
155 KW(kEXPORT, "export", 0, kPseudoKeyword) \ 156 KW(kEXPORT, "export", 0, kPseudoKeyword) \
156 KW(kEXTENDS, "extends", 0, kKeyword) \ 157 KW(kEXTENDS, "extends", 0, kKeyword) \
157 KW(kEXTERNAL, "external", 0, kPseudoKeyword) \ 158 KW(kEXTERNAL, "external", 0, kPseudoKeyword) \
158 KW(kFACTORY, "factory", 0, kPseudoKeyword) \ 159 KW(kFACTORY, "factory", 0, kPseudoKeyword) \
159 KW(kFALSE, "false", 0, kKeyword) \ 160 KW(kFALSE, "false", 0, kKeyword) \
160 KW(kFINAL, "final", 0, kKeyword) \ 161 KW(kFINAL, "final", 0, kKeyword) \
161 KW(kFINALLY, "finally", 0, kKeyword) \ 162 KW(kFINALLY, "finally", 0, kKeyword) \
162 KW(kFOR, "for", 0, kKeyword) \ 163 KW(kFOR, "for", 0, kKeyword) \
163 KW(kGET, "get", 0, kPseudoKeyword) \ 164 KW(kGET, "get", 0, kPseudoKeyword) \
164 KW(kIF, "if", 0, kKeyword) \ 165 KW(kIF, "if", 0, kKeyword) \
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 static const char* name_[]; 317 static const char* name_[];
317 static const char* tok_str_[]; 318 static const char* tok_str_[];
318 static const uint8_t precedence_[]; 319 static const uint8_t precedence_[];
319 static const Attribute attributes_[]; 320 static const Attribute attributes_[];
320 }; 321 };
321 322
322 323
323 } // namespace dart 324 } // namespace dart
324 325
325 #endif // VM_TOKEN_H_ 326 #endif // VM_TOKEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698