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
Jeremy Ashkenas
4bd657160d
fixing bug in option parsing with flagged arguments and cake.
2010-07-11 17:55:22 -04:00
Jeremy Ashkenas
2a7a26482a
fixing optparse to behave nicely in the presence of hashbangs -- stop parsing after the first non-option argument, and pass the rest along -- and adding an OptionParser test.
2010-07-11 09:57:42 -04:00
Jeremy Ashkenas
08ab4abd43
removing obvious redundant parentheses.
2010-06-27 23:55:18 -04:00
Jeremy Ashkenas
ec570c46bf
Big commit. First draft of stripping comments from generated JS output. Issue #41
2010-06-27 12:59:54 -04:00
Jeremy Ashkenas
e14f4c5db1
First draft of switching the CoffeeScript Compiler over to camelCase. Pour one on the ground for underscores...
2010-06-12 19:05:13 -04:00
Jeremy Ashkenas
7402aea9f2
cleaner generated code for range comprehensions, but you have to use an explicit step to go downwards. Forked the code path for cleaner range literals as well.
2010-05-31 19:38:45 -04:00
Jeremy Ashkenas
dfb3a13246
Fixed lingering CoffeeScript Compiler running live in Internet Explorer bugs. Implemented helpers.index_of and removed named functions. Ticket #366
2010-05-14 23:40:04 -04:00