Jeremy Ashkenas
845c8cba3b
removing broken accidental commit
2009-12-28 09:02:55 -08:00
Jeremy Ashkenas
aa45456d7d
part of the way to supporting multiline array comprehensions -- the grammar and parsing is there -- the code generation is tricky
2009-12-27 21:50:02 -08:00
Jeremy Ashkenas
ac00a19514
CoffeeScript 0.1.6 -- bugfixes
2009-12-27 12:49:11 -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
3ee4e98ccc
more underscore and bugfix edits to code generation
2009-12-26 22:24:21 -08:00
Jeremy Ashkenas
d7dd18b476
more underscore, and removing custom_assign and return from conditional compilation
2009-12-26 21:55:56 -08:00
Jeremy Ashkenas
097bede5c8
coffeescript 0.1.5, just for kicks
2009-12-26 21:25:37 -08:00
Jeremy Ashkenas
eeef8d3612
got negative ranges working with (much, much) uglier compiled code
2009-12-26 20:35:43 -08:00
Jeremy Ashkenas
694833dbd0
removing no_paren -- it was optimizing away order of operations
2009-12-26 11:55:34 -08:00
Jeremy Ashkenas
08dddb27a0
adding newline escaping, with tests
2009-12-26 09:29:03 -08:00
Jeremy Ashkenas
3c67d54bbe
changed bin/coffee-script to bin/coffee
2009-12-26 08:57:13 -08:00
Jeremy Ashkenas
6a30d48ced
fixed range comprehension indexing
2009-12-26 00:27:49 -08:00
Jeremy Ashkenas
d59ef71642
trading the cs> prompt for the coffee> prompt
2009-12-26 00:18:24 -08:00
Jeremy Ashkenas
ff78546465
added array comprehensions over ranges
2009-12-26 00:16:40 -08:00
Jeremy Ashkenas
adaae0ccae
major internal reworking -- all variable declarations have been pushed up to the first line of the block scope -- all assignment is now an inherent expression
2009-12-25 22:57:33 -08:00
Jeremy Ashkenas
7c132d65dc
started raising syntax errors for parens wrapped around expressions (they used to silently be ignored)
2009-12-25 20:36:22 -08:00
Jeremy Ashkenas
b58102c514
don't add the no_wrap key to the options hash unless we're going to use it
2009-12-25 19:48:47 -08:00
Jeremy Ashkenas
52700ca922
comment
2009-12-25 19:34:40 -08:00
Jeremy Ashkenas
1ba7c77136
reorganizing test fixtures and adding range literals for array slices
2009-12-25 16:20:28 -08:00
Jeremy Ashkenas
62485c2b8c
CoffeeScript 0.1.4
2009-12-25 14:43: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
e494d520ea
stopped using __proto__, instead, using a variant of goog.inherits for extends and super()
2009-12-25 13:57:47 -08:00
Jeremy Ashkenas
f55b4cd8b6
ForBody is really the ForSource
2009-12-25 13:40:57 -08:00
Jeremy Ashkenas
763e04fec9
cleaned up the for grammar and eliminated a shift/reduce conflict
2009-12-25 13:39:33 -08:00
Jeremy Ashkenas
4b5db1181c
make equals signs full equals of colons -- you can use them inside of object literals now too
2009-12-25 13:21:17 -08:00
Jeremy Ashkenas
bc6ec37272
allowing = to assign
2009-12-25 07:42:27 -08:00
Jeremy Ashkenas
55bf0a2c61
going back to familiar operators +: is just too strange
2009-12-25 07:31:51 -08:00
Jeremy Ashkenas
851ec82495
allowing chained function calls, one right after another
2009-12-25 07:08:57 -08:00
Jeremy Ashkenas
c4ba971d39
bumping to 0.1.3 ... here we go
2009-12-25 00:16:56 -08:00
Jeremy Ashkenas
e7e8e243a2
better error warnings on the command line
2009-12-25 00:02:27 -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
Jeremy Ashkenas
beae912a91
making all assignment-y operators use a colon -- now it's +: -: *: /:, and friends
2009-12-24 22:25:29 -08:00
Jeremy Ashkenas
9b2326492b
the --no-wrap option now disables top-level var declarations
2009-12-24 17:37:24 -08:00
Jeremy Ashkenas
985e0a080b
trading aint for isnt -- let's be serious
2009-12-24 17:21:20 -08:00
Jeremy Ashkenas
95bfb0b45c
allowing quoted strings within object assignment, a in JS and JSON
2009-12-24 17:14:53 -08:00
Jeremy Ashkenas
65e9ba4c30
bumping to 0.1.2 to get the super()/extends fix out there
2009-12-24 17:05:55 -08:00
Jeremy Ashkenas
1c83e68292
got extends back in the language -- use it together with super
2009-12-24 16:49:23 -08:00
Jeremy Ashkenas
47812d9ea6
fixing super() calls, thanks to tolmasky
2009-12-24 16:23:23 -08:00
Jeremy Ashkenas
a80b532a05
removing the special-case std-reading in favor of '--eval'
2009-12-24 15:49:42 -08:00
Jeremy Ashkenas
42ca566d26
document that -e can read from stdin
2009-12-24 15:35:58 -08:00
Jeremy Ashkenas
e27756cee8
with a working -n --no-wrap option to disable the top-level function safety wrapper
2009-12-24 15:31:00 -08:00
tlrobinson
08248180f9
Read from stdin if source is "-"
2009-12-24 14:40:39 -08:00
Jeremy Ashkenas
bfb24c6b5d
bumping to 0.1.1
2009-12-24 11:59:19 -08:00
Jeremy Ashkenas
7f502543d2
added the typeof operater as an OpNode
2009-12-24 11:50:44 -08:00
Jeremy Ashkenas
5d1ec9d2a9
added the instanceof operator to the grammar as an operation node
2009-12-24 11:46:51 -08:00
Jeremy Ashkenas
8d76f4bd3f
changing switch/case to switch/when -- it's a better word
2009-12-24 01:33:59 -08:00
Jeremy Ashkenas
47928ca952
fixed the broken try/catch grammar
2009-12-24 00:45:16 -08:00
Jeremy Ashkenas
fb13a303f2
with a more comprehensive execution test that uncovered some missing spots
2009-12-24 00:41:12 -08:00