| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 TOK(kSTRING, "", 0, kNoAttribute) \ | 116 TOK(kSTRING, "", 0, kNoAttribute) \ |
| 117 TOK(kINTEGER, "", 0, kNoAttribute) \ | 117 TOK(kINTEGER, "", 0, kNoAttribute) \ |
| 118 TOK(kDOUBLE, "", 0, kNoAttribute) \ | 118 TOK(kDOUBLE, "", 0, kNoAttribute) \ |
| 119 \ | 119 \ |
| 120 TOK(kINTERPOL_VAR, "$", 0, kNoAttribute) \ | 120 TOK(kINTERPOL_VAR, "$", 0, kNoAttribute) \ |
| 121 TOK(kINTERPOL_START, "${", 0, kNoAttribute) \ | 121 TOK(kINTERPOL_START, "${", 0, kNoAttribute) \ |
| 122 TOK(kINTERPOL_END, "}", 0, kNoAttribute) \ | 122 TOK(kINTERPOL_END, "}", 0, kNoAttribute) \ |
| 123 \ | 123 \ |
| 124 TOK(kAT, "@", 0, kNoAttribute) \ | 124 TOK(kAT, "@", 0, kNoAttribute) \ |
| 125 \ | 125 \ |
| 126 TOK(kNEWLINE, "<NL>", 0, kNoAttribute) \ |
| 126 TOK(kWHITESP, "", 0, kNoAttribute) \ | 127 TOK(kWHITESP, "", 0, kNoAttribute) \ |
| 127 TOK(kERROR, "", 0, kNoAttribute) \ | 128 TOK(kERROR, "", 0, kNoAttribute) \ |
| 128 TOK(kILLEGAL, "", 0, kNoAttribute) \ | 129 TOK(kILLEGAL, "", 0, kNoAttribute) \ |
| 129 \ | 130 \ |
| 130 /* Support for Dart scripts. */ \ | 131 /* Support for Dart scripts. */ \ |
| 131 TOK(kSCRIPTTAG, "#!", 0, kNoAttribute) \ | 132 TOK(kSCRIPTTAG, "#!", 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 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 static const char* name_[]; | 310 static const char* name_[]; |
| 310 static const char* tok_str_[]; | 311 static const char* tok_str_[]; |
| 311 static const uint8_t precedence_[]; | 312 static const uint8_t precedence_[]; |
| 312 static const Attribute attributes_[]; | 313 static const Attribute attributes_[]; |
| 313 }; | 314 }; |
| 314 | 315 |
| 315 | 316 |
| 316 } // namespace dart | 317 } // namespace dart |
| 317 | 318 |
| 318 #endif // VM_TOKEN_H_ | 319 #endif // VM_TOKEN_H_ |
| OLD | NEW |