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

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

Issue 17103002: Remove support for + prefix in number literals (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « runtime/vm/scanner_test.cc ('k') | tests/co19/co19-dart2dart.status » ('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 (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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 TOK(kBIT_AND, "&", 8, kNoAttribute) \ 72 TOK(kBIT_AND, "&", 8, kNoAttribute) \
73 TOK(kBIT_NOT, "~", 0, kNoAttribute) \ 73 TOK(kBIT_NOT, "~", 0, kNoAttribute) \
74 \ 74 \
75 /* Shift operators. */ \ 75 /* Shift operators. */ \
76 TOK(kSHL, "<<", 11, kNoAttribute) \ 76 TOK(kSHL, "<<", 11, kNoAttribute) \
77 TOK(kSHR, ">>", 11, kNoAttribute) \ 77 TOK(kSHR, ">>", 11, kNoAttribute) \
78 \ 78 \
79 /* Additive operators. */ \ 79 /* Additive operators. */ \
80 TOK(kADD, "+", 12, kNoAttribute) \ 80 TOK(kADD, "+", 12, kNoAttribute) \
81 TOK(kSUB, "-", 12, kNoAttribute) \ 81 TOK(kSUB, "-", 12, kNoAttribute) \
82 /* A 'plus' without a trailing whitespace (handle literals). */ \
83 TOK(kTIGHTADD, "+", 12, kNoAttribute) \
84 \ 82 \
85 /* Multiplicative operators */ \ 83 /* Multiplicative operators */ \
86 TOK(kMUL, "*", 13, kNoAttribute) \ 84 TOK(kMUL, "*", 13, kNoAttribute) \
87 TOK(kDIV, "/", 13, kNoAttribute) \ 85 TOK(kDIV, "/", 13, kNoAttribute) \
88 TOK(kTRUNCDIV, "~/", 13, kNoAttribute) \ 86 TOK(kTRUNCDIV, "~/", 13, kNoAttribute) \
89 TOK(kMOD, "%", 13, kNoAttribute) \ 87 TOK(kMOD, "%", 13, kNoAttribute) \
90 \ 88 \
91 TOK(kNOT, "!", 0, kNoAttribute) \ 89 TOK(kNOT, "!", 0, kNoAttribute) \
92 TOK(kCONDITIONAL, "?", 3, kNoAttribute) \ 90 TOK(kCONDITIONAL, "?", 3, kNoAttribute) \
93 \ 91 \
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 static const char* name_[]; 311 static const char* name_[];
314 static const char* tok_str_[]; 312 static const char* tok_str_[];
315 static const uint8_t precedence_[]; 313 static const uint8_t precedence_[];
316 static const Attribute attributes_[]; 314 static const Attribute attributes_[];
317 }; 315 };
318 316
319 317
320 } // namespace dart 318 } // namespace dart
321 319
322 #endif // VM_TOKEN_H_ 320 #endif // VM_TOKEN_H_
OLDNEW
« no previous file with comments | « runtime/vm/scanner_test.cc ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698