Jeremy Ashkenas
10442239f1
Revert "lexer: simplified tokenizers' responsibility"
...
This reverts commit a9e95fa43b .
2010-10-22 08:13:40 -04:00
satyr
a9e95fa43b
lexer: simplified tokenizers' responsibility
2010-10-22 14:56:51 +09:00
Jeremy Ashkenas
c92fd79f35
normalizing loop declarations towards common JS practice.
2010-10-21 21:51:06 -04:00
Jeremy Ashkenas
0342b0a89f
merging the range-killer to master
2010-10-21 21:27:45 -04:00
satyr
341de42692
removed extra parens around simple values
2010-10-22 09:35:15 +09:00
Timothy Jones
f43ee4075d
Removing empty parens from the grammar.
2010-10-22 11:29:03 +13: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
Jeremy Ashkenas
7596e3a157
putting back arguments.
2010-10-21 00:07:21 -04:00
Jeremy Ashkenas
bb080130b9
tweaks to scope
2010-10-20 23:09:06 -04: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
31746ce692
made In node invertible
2010-10-21 09:19:52 +09:00
satyr
53fbfc7d15
removed extra parens from in/return compilations
2010-10-21 07:19:08 +09:00
satyr
78835073db
removed extra parens from array/index compilations
2010-10-21 06:07:58 +09:00
satyr
c11ca94870
removed extra parens from soak compilations
2010-10-21 04:51:11 +09:00
satyr
c1dc74fc8b
removed extra parens from compilations with assignments or conditional operators
2010-10-21 02:29:06 +09:00
satyr
e2a6f292a2
nodes: refactored to reduce parens
2010-10-20 19:53:41 +09:00
satyr
b0a4b7ab85
scope: refactored
2010-10-20 17:13:43 +09:00
Timothy Jones
8d6b909b93
Removing the utterly pointless splice in scope for the much more reasonable assignment.
2010-10-20 19:51:53 +13:00
Jeremy Ashkenas
303be86291
resolving merge conflict.
2010-10-19 23:31:19 -04:00
Jeremy Ashkenas
113d7ce98f
let's try to merge these indexOf patches.
2010-10-19 23:27:15 -04:00
satyr
2c84f3ed1f
removed helpers.{indexOf,include} in favor of in operator
2010-10-20 12:20:10 +09:00
Jeremy Ashkenas
c1d24944dc
inArray -> indexOf ...
2010-10-19 23:06:51 -04:00
Jeremy Ashkenas
54d9b283fa
Merge branch 'master' of http://github.com/stephank/coffee-script
2010-10-19 21:52:39 -04: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
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
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
Stéphan Kochen
c458346593
In compileScripts, run base through path.join.
...
Allows `path.join` to do some processing on the base path
that was also happening on the full path.
Fixes: `coffee -o ./ ./`
Still broken: `coffee -o . .`
2010-10-19 18:36:27 +02:00
Timothy Jones
c64e8d4b53
Added the __inArray helper to clean up code and speed up searches.
2010-10-20 05:34:03 +13:00
Stéphan Kochen
e5dfa19ec9
Report errors when writing files in coffee.
2010-10-19 18:30:29 +02: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
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
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