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
Timothy Jones
15cfe8ebf1
Restoring garbage collection.
2010-10-20 12:58:59 +13:00
Timothy Jones
8c4a48d9d0
Adjusting refactor to better emulate map.
2010-10-20 12:51:34 +13:00
Timothy Jones
8fff6e9baf
Refactoring scope to use an array instead of an object, to make the IE bugfix significantly tidier.
2010-10-20 12:36:50 +13:00
Timothy Jones
7342058e64
Comment fix.
2010-10-20 12:05:34 +13:00
Timothy Jones
083fc61dfb
Fixing IE DontEnum bug in Scope. Ignoring everywhere else.
2010-10-20 12:02:38 +13:00
Timothy Jones
502d444ebd
Reversing evaluation order of __inArray to reflect the ordering of the in operator.
2010-10-20 09:52:11 +13:00
Timothy Jones
c3582d4058
One character fix, for the sake of consistency.
2010-10-20 08:57:23 +13:00
Timothy Jones
37d9204ad9
Tidying inArray utility.
2010-10-20 08:47:34 +13:00
Timothy Jones
a3500e807a
Avoids unnecessary temporary in comprehensions with pure statements in them.
2010-10-20 07:57:40 +13:00
Timothy Jones
1442262376
Merge branch 'master' of http://github.com/TrevorBurnham/coffee-script into trevor
2010-10-20 07:43:07 +13:00
Trevor Burnham
33ac70aec3
Whitespace fix for unstepPart (thanks, Tesco)
2010-10-19 14:24:38 -04: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
c64e8d4b53
Added the __inArray helper to clean up code and speed up searches.
2010-10-20 05:34:03 +13: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
262d796356
Merge branch 'master' of github.com:jashkenas/coffee-script
2010-10-20 04:11:25 +13:00
Timothy Jones
cf5a086263
Removing accidental superfluous temp variables.
2010-10-20 04:07:10 +13:00
Timothy Jones
d14ba6ac53
Fixed comprehension magic's scoping.
2010-10-20 03:59:01 +13:00
Timothy Jones
7b1902183c
Just catch alls for inner scoping now.
2010-10-20 03:53:38 +13:00
Timothy Jones
cb6be74851
Fixing for magic scoping issues. Small steps at a time.
2010-10-20 02:51:52 +13:00
Jeremy Ashkenas
9e03c66529
Merge branch 'master' of git://github.com/Tesco/coffee-script
2010-10-19 09:13:41 -04:00
Jeremy Ashkenas
f6b190bb5a
Merge branch 'master' of github.com:jashkenas/coffee-script
2010-10-19 09:13:21 -04:00
Jeremy Ashkenas
3f89fea65a
fixing resig link
2010-10-19 09:13:09 -04:00
Timothy Jones
c8b9c5a54e
Fixing #774 . Strict equality operator, which wasn't supported in the grammar anyway, is removed from the lexer.
2010-10-19 20:56:55 +13:00
Timothy Jones
fd268a0479
Fixed #763 . SimpleAssignables are now the only possible recepients of ++, -- and compound assignments.
2010-10-19 20:48:39 +13:00
Timothy Jones
648d6432eb
Fixing #700 . Block comment for constructor now appears above the constructor declaration.
2010-10-19 20:39:58 +13:00
Timothy Jones
df46fb8c68
Fixing #600 . JS statements that must be expressions but contain pure statements cause syntax errors.
2010-10-19 20:02:21 +13:00
Timothy Jones
d9cd75c426
Fixing #773 . Statements cannot be wrapped in parens (as in JS).
2010-10-19 19:32:23 +13:00
satyr
87560d943c
lexer: made REGEX more efficient
2010-10-18 07:43:29 +09:00
satyr
8d0a0e8ab1
nodes: Value.unfoldSoak -> If.unfoldSoak
2010-10-17 13:53:02 +09:00
satyr
55794d9534
nodes: soaking Call now converts to If using the same logic as soaking Accessor
2010-10-17 13:19:51 +09:00
Jeremy Ashkenas
84dcd6fe2f
Merge branch 'master' of github.com:jashkenas/coffee-script
2010-10-14 17:17:42 -04:00
satyr
88cc1ee35d
765: -b/--bare <- --no-wrap
2010-10-14 04:09:56 +09:00
Michael Ficarra
6e89ad3401
test case for #768
2010-10-13 12:12:24 -04:00
Michael Ficarra
1ea38d2f93
fixing #768 , preserving execution order of in arguments when compiled
...
to an `or`.
2010-10-13 12:10:36 -04:00
satyr
1d4d7e96fa
quit using sp?licing ranges
2010-10-13 05:47:45 +09:00
satyr
67eb966a75
stripped a line from __extends
2010-10-13 04:57:11 +09:00
Daniel J. Pritchett
ceef24834c
spelling tweak to index.html
2010-10-12 14:54:02 -05:00
satyr
cb2a7f0820
simplified splatting new compilation
2010-10-12 21:48:25 +09:00
satyr
8f29574b16
764: made boolean/number/regex indexable
2010-10-12 19:30:10 +09:00
satyr
c0ec479e60
browser: exposed require for debugging
2010-10-12 17:10:39 +09:00
satyr
54101a1c9b
lexer: reorganized JS_KEYWORDS
2010-10-12 16:25:33 +09:00
satyr
43613498db
Merge branch '542'
2010-10-12 11:29:33 +09:00
satyr
ac841ca4e9
nodes: object literals are now parenthesized based on @tags.front (which indicates if the node leads an expression statement), fixing #542
2010-10-12 11:26:55 +09:00
satyr
95d86758ee
test.html: string_interpolation -> strings
2010-10-12 10:34:31 +09:00
satyr
ed79715841
stripped out strings/regexes from test_literals; test_string_interpolation is now test_string
2010-10-12 09:35:59 +09:00
satyr
b01d7db409
merged test_blocks into test_functions
2010-10-12 08:54:36 +09:00
satyr
e5fe145f80
destructuring assignment no longer uses a temporary variable for simple LHS
2010-10-12 07:58:11 +09:00
Jeremy Ashkenas
2642fde0f8
merging in the browser test suite.
2010-10-11 18:22:01 -04:00
satyr
f682bf642f
followup to #717 ; made new => actually work
2010-10-12 07:02:04 +09:00