Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #library("precedence"); | |
| 6 | |
| 7 final EXPRESSION = 0; | |
| 8 final ASSIGNMENT = EXPRESSION + 1; | |
| 9 final LOGICAL_OR = ASSIGNMENT + 1; | |
| 10 final LOGICAL_AND = LOGICAL_OR + 1; | |
| 11 final BIT_OR = LOGICAL_AND + 1; | |
| 12 final BIT_XOR = BIT_OR + 1; | |
| 13 final BIT_AND = BIT_XOR + 1; | |
| 14 final EQUALITY = BIT_AND + 1; | |
| 15 final RELATIONAL = EQUALITY + 1; | |
| 16 final SHIFT = RELATIONAL + 1; | |
| 17 final ADDITIVE = SHIFT + 1; | |
| 18 final MULTIPLICATIVE = ADDITIVE + 1; | |
| 19 final UNARY = MULTIPLICATIVE + 1; | |
| 20 // We merge new, call and member expressions. | |
| 21 // This means that we have to emit parenthesis for 'new's. For example `new X;` | |
| 22 // should be printed as `new X();`. This simplifies the requirements. | |
| 23 final LHS = UNARY + 1; | |
| 24 final CALL = LHS; | |
| 25 final PRIMARY = CALL + 1; | |
|
Lasse Reichstein Nielsen
2012/08/08 11:16:38
Seems to be missing a "member" precedence, or do y
floitsch
2012/08/09 16:24:07
Moved comment from LHS down to CALL.
| |
| OLD | NEW |