Jeremy Ashkenas
5aa21c363d
satyr 1612b04 ... enabled break/continue in comprehensions.
2010-11-01 23:53:49 -04:00
Jeremy Ashkenas
c17efcf422
merging satyr/defarg
2010-11-01 21:33:07 -04:00
satyr
4f4032c053
fixed a bug that compound assignments were declaring variables
2010-11-01 10:42:42 +09:00
Jeremy Ashkenas
853d28860a
Issue #801 -- Empty catch statements immediately preceding outdents.
2010-10-27 22:21:47 -04:00
Jeremy Ashkenas
b3a4ce4e98
merging in parity checks.
2010-10-27 22:07:21 -04:00
satyr
1aba75e3e8
destructuring within arguments is now allowed as in SpiderMonkey
2010-10-27 05:23:35 +09:00
Michael Ficarra
0f577e0c94
good practice for parity checks
2010-10-26 11:35:23 -04:00
satyr
1cb6464948
optimized splatting assignment
2010-10-26 20:51:02 +09:00
satyr
e7cc4e4faf
implemented default arguments
2010-10-26 13:34:56 +09:00
satyr
cb5642945a
test: merged "expressions" into "chaining" and "returns"
2010-10-26 09:08:16 +09:00
satyr
426d71cb4f
leading then is now valid
2010-10-26 05:36:32 +09:00
satyr
ad79e142ca
refactored operator parsing
2010-10-26 03:58:11 +09:00
satyr
0d6d221568
dynakeys: {(x), y} now compiles correctly
2010-10-26 01:40:07 +09:00
satyr
863f3f6b47
rewriter: (a): (b): (c) is now allowed
2010-10-26 00:56:03 +09:00
satyr
ff82c59903
rewriter: a: b: c is now valid
2010-10-26 00:38:28 +09:00
Jeremy Ashkenas
5b16d4790c
Removing/Reverting do ->
2010-10-24 20:34:50 -04:00
satyr
98d22f9510
assigning to bizarre things like [a()] = b now causes syntax error
2010-10-25 07:33:41 +09:00
satyr
c8d994a97d
invalid destructuring assignments like {0} = x now causes syntax error
2010-10-25 04:46:28 +09:00
Jeremy Ashkenas
6347849cd0
Switching parenthesized side in comprehensions.
2010-10-24 14:11:09 -04:00
Jeremy Ashkenas
d6d46697d0
Issue #795 -- clean up low precedence levels
2010-10-24 14:02:59 -04:00
satyr
d60aa9a80c
removed extra lines from trailing then compilations
2010-10-25 01:58:00 +09:00
Jeremy Ashkenas
26a115adcf
Removing the mixed-in sys/util module. Switching from 'puts' to console.log
2010-10-24 12:48:42 -04:00
Jeremy Ashkenas
95be4a61ec
Merging in dynakeys
2010-10-24 11:32:23 -04:00
Timothy Jones
9619fa66eb
Altered bound functions with do to just use call(this) rather than binding.
2010-10-25 00:18:54 +13:00
Timothy Jones
d096f69c78
Implemented rescoping with the do keyword.
2010-10-25 00:02:39 +13:00
satyr
a458c4a905
dynakeys: can now do destructuring assignments
2010-10-24 17:56:34 +09:00
satyr
85c8a6780a
dynakeys: can now be braceless
2010-10-24 15:39:11 +09:00
Timothy Jones
99deb8c670
Wrapping only the last line of comprehensions, allowing pure statements anywhere in between.
2010-10-24 18:36:23 +13:00
satyr
331036f86d
786: implemented dynamic object keys
2010-10-24 14:20:20 +09:00
satyr
89516e6ee1
added/fixed/tweaked a few tests and merged test_compound_assignment into test_assignment
2010-10-24 04:09:13 +09:00
Timothy Jones
fc332bcfbd
Easing leniency on pure statements.
2010-10-24 06:53:10 +13:00
satyr
1335aee54b
783: corrected chained comparison precedence
2010-10-24 00:01:30 +09:00
Timothy Jones
b60afdb619
Merge branch 'master' of github.com:jashkenas/coffee-script
2010-10-24 02:17:44 +13:00
Timothy Jones
3834e7bc33
Revert "Passing the arguments object directly when generating a closure."
...
This reverts commit 7b887f065d .
2010-10-24 02:15:01 +13:00
satyr
0942071517
fixed a regression that for-in was failing to cache the source value
2010-10-23 22:04:58 +09:00
Timothy Jones
7b887f065d
Passing the arguments object directly when generating a closure.
2010-10-24 01:20:16 +13:00
Timothy Jones
9448a477d2
Spacing multiple operators.
2010-10-24 00:01:26 +13:00
satyr
1130f4fef5
refactored and added a test for a8da321
2010-10-23 03:00:09 +09:00
satyr
79148d2940
refactored loop variable caching
2010-10-22 02:07:00 +09:00
satyr
bd10c2f828
implemented for-from-to and removed dotted ranges
2010-10-21 23:06:50 +09:00
satyr
2f7c076a50
fixed a bug where in malfunctioned in commaed lists
2010-10-21 22:13:59 +09:00
Timothy Jones
880c5c8083
Fixing destructor in magicked for. Also making destructors in range loops syntax errors.
2010-10-22 00:34:51 +13:00
satyr
cb9683a7fd
fixed/removed broken/redundant tests
2010-10-21 12:45:50 +09:00
Timothy Jones
f229f791a9
Proper testing, this time.
2010-10-21 14:37:58 +13:00
Timothy Jones
e694b41a94
Operators now respect new lines as being spaced.
2010-10-21 14:27:25 +13:00
satyr
2c84f3ed1f
removed helpers.{indexOf,include} in favor of in operator
2010-10-20 12:20:10 +09:00
satyr
90a13bd791
compound assignments are now represented as Assign nodes (rather than Op) and have the same precedence as =
2010-10-20 09:50:42 +09:00
Trevor Burnham
5005cb606f
Fixing inconsistencies for index variables
...
See the tests added to test_comprehensions.coffee. Previously, after
`for i in [1..3]`, i was 4. Also, index variables were never set to
any value in comprehensions containing both a closure and a break or
return.
2010-10-19 14:09:16 -04:00
Timothy Jones
0e395569ee
Fixing #761 . p -1 now translates to p(-1), not p - 1. Same with +.
2010-10-20 04:52:07 +13:00
Timothy Jones
7b1902183c
Just catch alls for inner scoping now.
2010-10-20 03:53:38 +13:00