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
b0a45e5b93
Ticket #423 . When functions are generated within comprehensions ... the comprehensions should close over the element instead of sharing it.
2010-06-13 21:21:30 -04:00
Jeremy Ashkenas
4ecb1bb2ed
switching to 'Compiled' messages after the code has finished compiling on --watch ...
2010-06-13 14:21:02 -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
a133e018cc
Making the REPL the default behaviour of 'coffee', when called with no arguments, a-la Node and Python.
2010-06-12 11:09:30 -04:00
Jeremy Ashkenas
59de6b505a
ahh, finally. switched up our Jison configuration to provide better syntax errors. Now you get the unexpected token, instead of the expected one.
2010-06-01 20:21:12 -04:00
Jeremy Ashkenas
300c711af1
enabling compilation of non-.coffee-extension files passed directly to the coffee command (Issue #391 )
2010-05-31 15:36:41 -04:00
Jeremy Ashkenas
a8d4c3a567
sprinkling toString() throughout, for Node.js 0.1.95 compatibility.
2010-05-15 00:34:14 -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
Jeremy Ashkenas
d64b8fd9d8
merged in Trevor Burnham's recursive coffee compilation, with some adjustments...
2010-05-04 23:22:28 -04:00
Trevor Burnham
fa8cc7976a
Added recursive compilation and monitoring option to coffee command
2010-05-03 17:38:59 -04:00
Jeremy Ashkenas
2d1abd099d
rewriting the Lexer, CommandLine, Nodes, and Rewriter to take advantage of the new DRY object pattern matching.
2010-04-25 22:29:43 -04:00
Jeremy Ashkenas
835ecac8db
simplifying some unecessary interpolated expressions into interpolated values.
2010-04-11 16:57:53 -04:00
Jeremy Ashkenas
8317960f81
Battery of patches for compatibility with Node v0.1.90
2010-04-10 18:05:35 -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
864275f07e
removing __range, and all the slice behavior it enabled. If you can't do array[-1], then you shouldn't be able to do array[0..-1] -- it's just too inconsistent.
2010-03-30 20:06:44 -04:00
matehat
ca9e45e8af
Removed the __slice
method, in favor of the native array slice method
2010-03-30 17:57:23 -04:00
matehat
97096696a2
Put back every utility functions on the global scope, automatically prefixed with __
and set them dynamically as reserved on the lexer.
2010-03-30 16:48:43 -04:00
matehat
da43c70488
Merged in StanAngeloff excellent slice branch, applying recent factoring of utility functions
2010-03-30 15:43:30 -04:00
Stan Angeloff
7d1fbeb708
Re-compiling the core using the new __slice and __splice functions.
2010-03-30 14:32:37 -04:00
Jeremy Ashkenas
7de5253318
removing unused reserved variable 'source var' from range comprehensions
2010-03-27 16:04:47 -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
d880b8b8f2
adding interpolation to heredocs, using the same rules as for strings
2010-03-17 20:47:27 -04:00
Jeremy Ashkenas
119b80d449
removing fiddling with require.paths from CoffeeScript
2010-03-15 20:39:46 -07:00
Jeremy Ashkenas
299e9918b9
Fixing up command-line args for --stdio and --eval. Now makes more sense with --run by default.
2010-03-08 04:46:24 -05:00
Jeremy Ashkenas
9eceab667c
broke the flag for --no-wrap, fixed.
2010-03-08 04:28:26 -05:00
Jeremy Ashkenas
1cf0326183
unifying the CoffeeScript.compile and CoffeeScript.run apis to be the same -- source code and options hash.
2010-03-07 22:17:45 -05:00
Jeremy Ashkenas
5b9ebd19d5
adding source file information to all coffeescript compiles
2010-03-07 22:08:24 -05:00
Jeremy Ashkenas
06b50ecb98
unifying all of the server-side evaluation under CoffeeScript.run -- this means that __filename and __dirname and relative requires should work from all angles under Node.js
2010-03-07 21:49:08 -05:00
Jeremy Ashkenas
d46daa1d7c
documenting optparse.coffee and repl.coffee
2010-03-07 13:41:15 -05:00
Jeremy Ashkenas
1602e0e823
adding complete documentation for the grammar
2010-03-07 11:41:56 -05:00
Jeremy Ashkenas
202ebf06ff
documentation for command.coffee
2010-03-07 00:28:58 -05:00
Jeremy Ashkenas
3e3b71724d
making equality left-associative so that our chaining works properly with it.
2010-03-06 23:48:06 -05:00
Jeremy Ashkenas
893fb98522
moving command_line.coffee -> command.coffee
2010-03-06 22:18:15 -05:00