compound assignments are now represented as Assign nodes (rather than Op) and have the same precedence as =

This commit is contained in:
satyr
2010-10-20 09:42:12 +09:00
parent 15cfe8ebf1
commit 90a13bd791
15 changed files with 111 additions and 112 deletions

View File

@@ -19,7 +19,7 @@ ok(area(
sumOfArgs = ->
sum = 0
sum += val for val in arguments
(sum += val) for val in arguments
sum
ok sumOfArgs(1, 2, 3, 4, 5) is 15