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