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
Dan Holmsand
144c096ae6
Remove unused variable index_var from for loops
2010-04-30 09:48:30 +02:00
Jeremy Ashkenas
835ecac8db
simplifying some unecessary interpolated expressions into interpolated values.
2010-04-11 16:57:53 -04:00
Jeremy Ashkenas
065bf54094
generated closures should only call() or apply() when necessary.
2010-04-10 14:40:05 -04:00
Chris Lloyd
19ed63129e
Interpolated strings are expressions.
2010-04-04 17:05:52 +10:00
Jeremy Ashkenas
f0d731009f
merged matehat's utility branch, arraySlice -> slice, removed dead dependency...
2010-03-30 18:27:53 -04:00
Jeremy Ashkenas
7de5253318
removing unused reserved variable 'source var' from range comprehensions
2010-03-27 16:04:47 -04:00
Jeremy Ashkenas
590c069158
CoffeeScript 0.5.6
2010-03-23 00:18:50 -04:00
Jeremy Ashkenas
80230414a2
merging in gfxmonk's major refactor to the way that returns are pushed down into the interior of expressions
2010-03-21 11:28:05 -04:00
gfxmonk
cc3c314988
Cleaned up return logic
...
- ReturnNodes are explicitly added during compilation
- ReturnNode is used instead of scattering "return" throughout
code compilation snippets
- nodes gain a make_return method in order to do the most useful
thing when a return is requested
2010-03-21 22:21:55 +11:00
Jeremy Ashkenas
73074daa07
removing arguments-to-array-conversion from coffee
2010-03-15 20:46:14 -07:00
Jeremy Ashkenas
b5af5f66fb
more regexp and string interpolation tweaks
2010-03-08 21:34:10 -05:00
Jeremy Ashkenas
d46daa1d7c
documenting optparse.coffee and repl.coffee
2010-03-07 13:41:15 -05:00
Jeremy Ashkenas
e977967eb5
implementing the CoffeeScript compiler using interpolation where appropriate.
2010-03-06 13:59:11 -05:00
Jeremy Ashkenas
965034e16e
add proper spacing to optparse by default
2010-03-04 22:59:03 -05:00
Jeremy Ashkenas
e02ab76edf
converting the remainder of the CoffeeScript compiler (Rewriter, Scope, Optparse) to use classes
2010-02-27 19:46:45 -05:00
Jeremy Ashkenas
d2d5f649d3
caching the length property lookup for vanilla array comprehensions and rebuilding docs
2010-02-25 23:39:14 -05:00
Jeremy Ashkenas
17ea48c543
first draft of options for Cakefiles, using optparse.coffee, as well as a cake install task that takes --prefix. Still need to fix the lib/bin scripts
2010-02-25 21:43:42 -05:00
Jeremy Ashkenas
406a18067d
allowing merged short flags in optparse.coffee, via normalize_arguments
2010-02-25 19:06:08 -05:00
Jeremy Ashkenas
a23dc6b753
raising an error on unrecognized options
2010-02-25 18:54:08 -05:00
Jeremy Ashkenas
c62f93f930
improving errors for undefined options, and error messages for compile attempts on nonexistent files
2010-02-25 18:36:43 -05:00
Jeremy Ashkenas
66a6568fe7
cleaning and shrinking the option parser
2010-02-25 06:15:58 -05:00
Jeremy Ashkenas
2a46e13d33
moving print_tokens (the pretty printer) from coffee_script to command_line
2010-02-24 18:56:32 -05:00
Jeremy Ashkenas
aba8cb1b08
upgrading the optparse library to avoid having to register callbacks for each argument. It just returns a simple options hash.
2010-02-24 17:57:58 -05:00
Jeremy Ashkenas
bea40a7a92
re-enabling the --no-wrap flag, and cleaning up an unused method in command_line
2010-02-21 13:48:38 -05:00
Jeremy Ashkenas
2d0ad73af8
reorganizing lib/coffee_script to plain ol' lib
2010-02-17 00:55:56 -05:00