Closed hawkw closed 9 years ago
It makes this:
12 AssignExpr: 12 FieldAccess: 12 Identifier: d 12 Operator: = 12 ArithmeticExpr: 12 IntConstant: 2 12 Operator: + 12 ArithmeticExpr: 12 IntConstant: 3 12 Operator: * 12 ArithmeticExpr: 12 IntConstant: 4 12 Operator: - 12 ArithmeticExpr: 12 IntConstant: 6 12 Operator: / 12 IntConstant: 2
when it should make this:
12 AssignExpr: 12 FieldAccess: 12 Identifier: d 12 Operator: = 12 ArithmeticExpr: 12 ArithmeticExpr: 12 IntConstant: 2 12 Operator: + 12 ArithmeticExpr: 12 IntConstant: 3 12 Operator: * 12 IntConstant: 4 12 Operator: - 12 ArithmeticExpr: 12 IntConstant: 6 12 Operator: / 12 IntConstant: 2
PEMDAS, Max. PEMDAS.
My commits 9ad843b and a3a073a fix this.
It makes this:
when it should make this: