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

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

Issue 10796109: Implement cascade operator in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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.cc ('k') | tests/co19/co19-runtime.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 TOK(kASSIGN_AND, "&=", 2, kNoAttribute) \ 55 TOK(kASSIGN_AND, "&=", 2, kNoAttribute) \
56 TOK(kASSIGN_SHL, "<<=", 2, kNoAttribute) \ 56 TOK(kASSIGN_SHL, "<<=", 2, kNoAttribute) \
57 TOK(kASSIGN_SHR, ">>=", 2, kNoAttribute) \ 57 TOK(kASSIGN_SHR, ">>=", 2, kNoAttribute) \
58 TOK(kASSIGN_ADD, "+=", 2, kNoAttribute) \ 58 TOK(kASSIGN_ADD, "+=", 2, kNoAttribute) \
59 TOK(kASSIGN_SUB, "-=", 2, kNoAttribute) \ 59 TOK(kASSIGN_SUB, "-=", 2, kNoAttribute) \
60 TOK(kASSIGN_MUL, "*=", 2, kNoAttribute) \ 60 TOK(kASSIGN_MUL, "*=", 2, kNoAttribute) \
61 TOK(kASSIGN_TRUNCDIV, "~/=", 2, kNoAttribute) \ 61 TOK(kASSIGN_TRUNCDIV, "~/=", 2, kNoAttribute) \
62 TOK(kASSIGN_DIV, "/=", 2, kNoAttribute) \ 62 TOK(kASSIGN_DIV, "/=", 2, kNoAttribute) \
63 TOK(kASSIGN_MOD, "%=", 2, kNoAttribute) \ 63 TOK(kASSIGN_MOD, "%=", 2, kNoAttribute) \
64 \ 64 \
65 TOK(kCASCADE, "..", 2, kNoAttribute) \
66 \
65 TOK(kCOMMA, ",", 1, kNoAttribute) \ 67 TOK(kCOMMA, ",", 1, kNoAttribute) \
66 TOK(kOR, "||", 4, kNoAttribute) \ 68 TOK(kOR, "||", 4, kNoAttribute) \
67 TOK(kAND, "&&", 5, kNoAttribute) \ 69 TOK(kAND, "&&", 5, kNoAttribute) \
68 TOK(kBIT_OR, "|", 6, kNoAttribute) \ 70 TOK(kBIT_OR, "|", 6, kNoAttribute) \
69 TOK(kBIT_XOR, "^", 7, kNoAttribute) \ 71 TOK(kBIT_XOR, "^", 7, kNoAttribute) \
70 TOK(kBIT_AND, "&", 8, kNoAttribute) \ 72 TOK(kBIT_AND, "&", 8, kNoAttribute) \
71 TOK(kBIT_NOT, "~", 0, kNoAttribute) \ 73 TOK(kBIT_NOT, "~", 0, kNoAttribute) \
72 \ 74 \
73 /* Shift operators. */ \ 75 /* Shift operators. */ \
74 TOK(kSHL, "<<", 11, kNoAttribute) \ 76 TOK(kSHL, "<<", 11, kNoAttribute) \
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 static const char* name_[]; 284 static const char* name_[];
283 static const char* tok_str_[]; 285 static const char* tok_str_[];
284 static const uint8_t precedence_[]; 286 static const uint8_t precedence_[];
285 static const Attribute attributes_[]; 287 static const Attribute attributes_[];
286 }; 288 };
287 289
288 290
289 } // namespace dart 291 } // namespace dart
290 292
291 #endif // VM_TOKEN_H_ 293 #endif // VM_TOKEN_H_
OLDNEW
« no previous file with comments | « runtime/vm/scanner.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698