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

Side by Side Diff: src/token.h

Issue 885243002: Implement parsing of ES6 Rest Parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
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 #include "src/globals.h" 9 #include "src/globals.h"
10 10
(...skipping 22 matching lines...) Expand all
33 /* Punctuators (ECMA-262, section 7.7, page 15). */ \ 33 /* Punctuators (ECMA-262, section 7.7, page 15). */ \
34 T(LPAREN, "(", 0) \ 34 T(LPAREN, "(", 0) \
35 T(RPAREN, ")", 0) \ 35 T(RPAREN, ")", 0) \
36 T(LBRACK, "[", 0) \ 36 T(LBRACK, "[", 0) \
37 T(RBRACK, "]", 0) \ 37 T(RBRACK, "]", 0) \
38 T(LBRACE, "{", 0) \ 38 T(LBRACE, "{", 0) \
39 T(RBRACE, "}", 0) \ 39 T(RBRACE, "}", 0) \
40 T(COLON, ":", 0) \ 40 T(COLON, ":", 0) \
41 T(SEMICOLON, ";", 0) \ 41 T(SEMICOLON, ";", 0) \
42 T(PERIOD, ".", 0) \ 42 T(PERIOD, ".", 0) \
43 T(ELLIPSIS, "...", 0) \
43 T(CONDITIONAL, "?", 3) \ 44 T(CONDITIONAL, "?", 3) \
44 T(INC, "++", 0) \ 45 T(INC, "++", 0) \
45 T(DEC, "--", 0) \ 46 T(DEC, "--", 0) \
46 T(ARROW, "=>", 0) \ 47 T(ARROW, "=>", 0) \
47 \ 48 \
48 /* Assignment operators. */ \ 49 /* Assignment operators. */ \
49 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \ 50 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \
50 /* this block of enum values being contiguous and sorted in the */ \ 51 /* this block of enum values being contiguous and sorted in the */ \
51 /* same order! */ \ 52 /* same order! */ \
52 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \ 53 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 private: 312 private:
312 static const char* const name_[NUM_TOKENS]; 313 static const char* const name_[NUM_TOKENS];
313 static const char* const string_[NUM_TOKENS]; 314 static const char* const string_[NUM_TOKENS];
314 static const int8_t precedence_[NUM_TOKENS]; 315 static const int8_t precedence_[NUM_TOKENS];
315 static const char token_type[NUM_TOKENS]; 316 static const char token_type[NUM_TOKENS];
316 }; 317 };
317 318
318 } } // namespace v8::internal 319 } } // namespace v8::internal
319 320
320 #endif // V8_TOKEN_H_ 321 #endif // V8_TOKEN_H_
OLDNEW
« src/scanner.cc ('K') | « src/scopes.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698