Jeremy Ashkenas
a1528f3f19
rebuilt the narwhal interface
2010-01-10 20:25:09 -05:00
Jeremy Ashkenas
d416c184db
separating out the --no-wrap and the --globals arguments, which shouldn't be jammed together
2010-01-07 21:10:25 -05:00
Jeremy Ashkenas
38520bfece
rebuilding narwhal uncovered a bug with named functions
2010-01-01 22:00:34 -05:00
Jeremy Ashkenas
9e3ef42c63
fixing up narwhal integration (again)
2009-12-30 15:05:05 -05:00
Jeremy Ashkenas
f93e552cb3
fixin up narwhal factory and adding more implicit blocks to the lexer
2009-12-30 14:32:59 -05:00
Jeremy Ashkenas
4d514f255b
merged in master branch again
2009-12-30 13:38:50 -05:00
Jeremy Ashkenas
ce0e71f796
fixing the double-printing bug with coffee -r
2009-12-30 13:34:25 -05:00
Jeremy Ashkenas
dd3c9abe15
touch-ups cleanups to the lexer and rebuilding the narwhal libs from whitespace'd versions
2009-12-29 23:01:08 -05:00
Jeremy Ashkenas
50bdd2668c
got lexer balancing parens, indent/outdents, brackets, and curlies
2009-12-28 21:02:40 -05:00
Jeremy Ashkenas
a186e47e2c
stop shifting args
2009-12-28 16:20:11 -05:00
Jeremy Ashkenas
41f3d54f4a
rebuilding narwhal libs
2009-12-28 16:10:56 -05:00
Jeremy Ashkenas
9e47f6bd58
merging in tlrobinson's fix for package.json
2009-12-28 16:09:14 -05:00
Jeremy Ashkenas
845c8cba3b
removing broken accidental commit
2009-12-28 09:02:55 -08:00
tlrobinson
55616cf3b8
Fixed Narwhal integration. Cleaned up module organization, etc.
2009-12-28 01:16:57 -08:00
Jeremy Ashkenas
7ae8687a3e
fixing paths for running
...
coffee compiles CoffeeScript source files into JavaScript.
Usage:
coffee path/to/script.coffee
-i, --interactive run a CoffeeScript REPL (requires Narwhal)
-r, --run compile and run a script (requires Narwhal)
-o, --output [DIR] set the directory for compiled JavaScript
-w, --watch watch scripts for changes, and recompile
-p, --print print the compiled JavaScript to stdout
-l, --lint pipe the compiled JavaScript through JSLint
-e, --eval compile a cli scriptlet or read from stdin
-t, --tokens print the tokens that the lexer produces
-v, --verbose print at every step of code generation
-n, --no-wrap raw output, no safety wrapper or vars
--install-bundle install the CoffeeScript TextMate bundle
--version display CoffeeScript version
-h, --help display this help message outside of the coffee-script directory
2009-12-27 12:43:05 -08:00
Jeremy Ashkenas
3c67d54bbe
changed bin/coffee-script to bin/coffee
2009-12-26 08:57:13 -08:00
Jeremy Ashkenas
d59ef71642
trading the cs> prompt for the coffee> prompt
2009-12-26 00:18:24 -08:00
Jeremy Ashkenas
d46bf8ee71
moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned
2009-12-25 14:18:05 -08:00
Jeremy Ashkenas
55bf0a2c61
going back to familiar operators +: is just too strange
2009-12-25 07:31:51 -08:00
Jeremy Ashkenas
73aaf127c8
removed bin/cs in favor of a more comprehensive coffee-script command ... now with --interactive and --run
2009-12-24 23:57:27 -08:00
Jeremy Ashkenas
7a0de52c96
majorly cleaned up the CoffeeScript that defines the Narwhal integration
2009-12-24 23:28:01 -08:00
Jeremy Ashkenas
2d57ee693b
the narwhal integration written in JavaScript has been replaced with CoffeeScript, and compiler-generated variable names now start with '__'
2009-12-24 23:09:24 -08:00