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

Side by Side Diff: src/token.h

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git rebase Created 6 years, 3 months 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
« no previous file with comments | « src/scanner.cc ('k') | src/typing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_TOKEN_H_ 5 #ifndef V8_TOKEN_H_
6 #define V8_TOKEN_H_ 6 #define V8_TOKEN_H_
7 7
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 K(FALSE_LITERAL, "false", 0) \ 141 K(FALSE_LITERAL, "false", 0) \
142 T(NUMBER, NULL, 0) \ 142 T(NUMBER, NULL, 0) \
143 T(STRING, NULL, 0) \ 143 T(STRING, NULL, 0) \
144 \ 144 \
145 /* Identifiers (not keywords or future reserved words). */ \ 145 /* Identifiers (not keywords or future reserved words). */ \
146 T(IDENTIFIER, NULL, 0) \ 146 T(IDENTIFIER, NULL, 0) \
147 \ 147 \
148 /* Future reserved words (ECMA-262, section 7.6.1.2). */ \ 148 /* Future reserved words (ECMA-262, section 7.6.1.2). */ \
149 T(FUTURE_RESERVED_WORD, NULL, 0) \ 149 T(FUTURE_RESERVED_WORD, NULL, 0) \
150 T(FUTURE_STRICT_RESERVED_WORD, NULL, 0) \ 150 T(FUTURE_STRICT_RESERVED_WORD, NULL, 0) \
151 K(CLASS, "class", 0) \
151 K(CONST, "const", 0) \ 152 K(CONST, "const", 0) \
152 K(EXPORT, "export", 0) \ 153 K(EXPORT, "export", 0) \
154 K(EXTENDS, "extends", 0) \
153 K(IMPORT, "import", 0) \ 155 K(IMPORT, "import", 0) \
154 K(LET, "let", 0) \ 156 K(LET, "let", 0) \
157 K(STATIC, "static", 0) \
155 K(YIELD, "yield", 0) \ 158 K(YIELD, "yield", 0) \
156 K(SUPER, "super", 0) \ 159 K(SUPER, "super", 0) \
157 \ 160 \
158 /* Illegal token - not able to scan. */ \ 161 /* Illegal token - not able to scan. */ \
159 T(ILLEGAL, "ILLEGAL", 0) \ 162 T(ILLEGAL, "ILLEGAL", 0) \
160 \ 163 \
161 /* Scanner-internal use only. */ \ 164 /* Scanner-internal use only. */ \
162 T(WHITESPACE, NULL, 0) 165 T(WHITESPACE, NULL, 0)
163 166
164 167
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 private: 288 private:
286 static const char* const name_[NUM_TOKENS]; 289 static const char* const name_[NUM_TOKENS];
287 static const char* const string_[NUM_TOKENS]; 290 static const char* const string_[NUM_TOKENS];
288 static const int8_t precedence_[NUM_TOKENS]; 291 static const int8_t precedence_[NUM_TOKENS];
289 static const char token_type[NUM_TOKENS]; 292 static const char token_type[NUM_TOKENS];
290 }; 293 };
291 294
292 } } // namespace v8::internal 295 } } // namespace v8::internal
293 296
294 #endif // V8_TOKEN_H_ 297 #endif // V8_TOKEN_H_
OLDNEW
« no previous file with comments | « src/scanner.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698