Jeremy Ashkenas
f9a0bbbc20
safer paren-wrapping for closures.
2010-12-23 10:50:52 -08:00
Jeremy Ashkenas
bc4498e018
Issue #910 . Adding support for a --nodejs flag to forward arguments.
2010-12-18 09:29:04 -05:00
Jeremy Ashkenas
41beccbe3c
reverting Scope#temporary simplification.
2010-11-28 09:28:46 -08:00
Jeremy Ashkenas
51988dba09
Removing unused garbage collection from Scope.
2010-11-27 18:04:40 -08:00
Michael Ficarra
63cbb64341
fixes #855 ; fix partially inspired by satyr/coco 3e37cf32
2010-11-26 02:08:25 -05:00
Jeremy Ashkenas
fc64fa49ac
Switching default arguments to use an if instead of an and, more documentation.
2010-11-21 21:12:59 -05:00
Jeremy Ashkenas
0e4d589d80
Coco ce2d08a: removed _argN temporaries for readability/consistency
2010-11-20 20:39:35 -05:00
Jeremy Ashkenas
7fda0cd7d9
first draft of coco's executable class bodies ... cleanups and tests to follow.
2010-11-11 21:48:08 -05:00
Jeremy Ashkenas
9017b1ad3d
_result -> _results
2010-11-09 00:17:08 -05:00
Jeremy Ashkenas
f6a8d4c074
round 2, light refactors.
2010-11-04 23:05:04 -04:00
Jeremy Ashkenas
b0e7c3e3e7
modified satyr -- made temp vars be declared later.
2010-11-01 23:58:03 -04:00
Jeremy Ashkenas
b94c15bdcc
not-or to is-and ... positive side.
2010-11-01 23:11:25 -04:00
Jeremy Ashkenas
187cda0c39
Using default arguments in one more spot.
2010-11-01 22:07:34 -04:00
Jeremy Ashkenas
c2da8c2d54
Removing extraneous semicolon, adding back in final break -- src now lints cleanly.
2010-10-24 20:51:55 -04: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
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
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
78835073db
removed extra parens from array/index compilations
2010-10-21 06:07:58 +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
Timothy Jones
cf5a086263
Removing accidental superfluous temp variables.
2010-10-20 04:07:10 +13:00
Timothy Jones
cb6be74851
Fixing for magic scoping issues. Small steps at a time.
2010-10-20 02:51:52 +13:00
satyr
1d4d7e96fa
quit using sp?licing ranges
2010-10-13 05:47:45 +09:00
Jeremy Ashkenas
acc06d772a
Back four commits ... Fixing named function expressions -> function declarations for IE. (grumble grumble)
2010-10-11 12:13:01 -04:00
satyr
95bc4c5eeb
reenabled stricter caching on For compilation as well as reduced a line from it
2010-10-07 12:31:05 +09:00
Jeremy Ashkenas
8bc706a94e
Merging in heregexes
2010-10-05 00:11:28 -04:00
Jeremy Ashkenas
2b66d5d6c0
First draft of named classes.
2010-10-04 23:21:16 -04:00
Timothy Jones
645075f910
All classes now named.
2010-10-05 15:52:33 +13:00
satyr
42a91219cb
fixed over-escaping in here documents and addressed Stan's comments
2010-10-05 03:47:50 +09:00
satyr
cdd033ffb0
disabled interpolations in normal regexes
2010-10-04 21:51:04 +09:00
satyr
2ea549ce5f
made ForNode avoid needless cachings
2010-10-02 07:26:37 +09:00
satyr
341f511bbd
#733 : streamlined soak compilations and improved reference cachings
2010-10-02 07:17:35 +09:00
Jeremy Ashkenas
25c8b4b34f
Using the Array spaces trick to generate padding and indentation.
2010-09-21 23:17:43 -04:00
Jeremy Ashkenas
7e5db250d3
Merge branch 'master' of git://github.com/StanAngeloff/coffee-script
2010-09-21 08:06:12 -04:00
satyr
b19c004680
made wrapper function keep current this
2010-09-21 16:53:58 +09:00
Stan Angeloff
992f4192bf
Re-compiling core with new temporary variable names, all tests pass.
2010-09-21 07:55:08 +03:00
Jeremy Ashkenas
a16594ed7b
Merging in Stan's temporary_junk improvements.
2010-09-20 22:13:08 -04:00
Jeremy Ashkenas
f7fce3cd68
tweaking compiled tempvar names to satisfaction.
2010-09-20 21:56:18 -04:00
Stan Angeloff
99a06ce4ea
Updating name for cached length temporary variables to '_length', 'length2', and
...
so on.
2010-09-20 08:42:31 +03:00
Stan Angeloff
bb35b3e3b2
Re-compiling core with new changes. All tests pass.
2010-09-19 15:29:15 +03:00
Jeremy Ashkenas
975b82f09b
Issue #609 . Slightly faster implementation of ||= and &&=
2010-08-14 18:02:07 -04:00
Jeremy Ashkenas
f496cc229b
Further reducing amount of redundant parentheses.
2010-08-14 17:52:37 -04:00
Jeremy Ashkenas
9894eeb8e9
Improving double-parentheses suppression. Issue #587
2010-08-14 17:43:58 -04:00
Jeremy Ashkenas
1c903450c8
Merging in Stan's patch for a --require flag that allows you to hook into CoffeeScript compiler events for on 'compile', 'success', and 'failure' ... a better way to extend the language or do growlnotify stuff. Issue #590
2010-08-07 23:33:35 -04:00
Stan Angeloff
b1b78dca47
Add command-line compiler hooks. To invoke, pass a file after -r and listen for any of these events: 'compile', 'success' and 'exception'. Example:
...
coffee -e -r ./snarl 'Hello!'
Contents of 'snarl.coffee' in the working directory:
http = require 'http'
CoffeeScript.on 'exception', (err) ->
client = http.createClient 9889, 'localhost'
request = client.request 'GET', '/?d={"action":1,"applicationName":"CoffeeScript","title":' + JSON.stringify(err.message) + ',"description":' + JSON.stringify(err.stack) + ',"priority":3}'
request.end()
err.handled = yes
To examine arguments available for each event (for debugging and getting started), use `puts JSON.stringify arguments`.
See http://nodejs.org/api.html#modules-309 and NODE_PATH for more details on how -r looks for files.
2010-08-07 20:24:37 +03:00
Jeremy Ashkenas
9df3e6a538
first step towards requiring #{ ... } interpolation -- removing naked interps from the compiler.
2010-08-07 08:02:16 -04:00
Jeremy Ashkenas
3b6f020f8a
Making the spacing of symbols on function declaration consistent. No-space when single-line. Spaced when block. (StanAngeloff)
2010-07-24 08:31:43 -07:00
Jeremy Ashkenas
5a34f53689
enhancements to range comprehensions, back to being safe -- and usable downwards without a 'by' clause, and optimized when working with integer literals.
2010-07-17 18:45:29 -04:00