Permalink
...
Comparing changes
Open a pull request
- 19 commits
- 26 files changed
- 3 commit comments
- 3 contributors
Commits on Feb 28, 2010
|
|
jashkenas |
56eb474
|
|||
|
|
jashkenas |
fec2eae
|
|||
|
|
jashkenas |
47f71f9
|
|||
|
|
jashkenas |
b08995c
|
|||
|
|
jashkenas |
2969e15
|
|||
|
|
jashkenas |
bb2bf7c
|
|||
|
|
jashkenas |
969c2e5
|
|||
|
|
jashkenas |
30cf63e
|
Commits on Mar 01, 2010
|
|
jashkenas |
45bad55
|
|||
|
|
jashkenas |
29ece0e
|
|||
|
|
jashkenas |
cd6dd5a
|
Commits on Mar 02, 2010
|
|
jashkenas |
c219adf
|
|||
|
|
jashkenas |
70cb195
|
Commits on Mar 03, 2010
|
|
jashkenas |
5fd0972
|
|||
|
|
srijs |
c11c3ed
|
|||
|
|
srijs |
707cd2d
|
|||
|
|
cehoffman |
f7183e6
|
Commits on Mar 04, 2010
|
|
jashkenas |
3feb874
|
|||
|
|
jashkenas |
44398d0
|
Unified
Split
Showing
with
1,204 additions
and 940 deletions.
- +3 −1 Cakefile
- +1 −7 bin/cake
- +1 −7 bin/coffee
- +12 −3 documentation/index.html.erb
- +590 −549 documentation/underscore.html
- +135 −83 examples/underscore.coffee
- +1 −1 extras/coffee-script.js
- +12 −3 index.html
- +1 −1 lib/coffee-script.js
- +4 −2 lib/command_line.js
- +176 −113 lib/lexer.js
- +24 −27 lib/nodes.js
- +4 −11 lib/rewriter.js
- +0 −1 lib/scope.js
- +1 −1 package.json
- +1 −1 src/coffee-script.coffee
- +5 −2 src/command_line.coffee
- +155 −93 src/lexer.coffee
- +23 −19 src/nodes.coffee
- +2 −11 src/rewriter.coffee
- +21 −1 test/test_blocks.coffee
- +9 −1 test/test_classes.coffee
- +6 −1 test/test_functions.coffee
- +10 −0 test/test_funky_comments.coffee
- +6 −0 test/test_heredocs.coffee
- +1 −1 test/test_literals.coffee
View
4
Cakefile
| @@ -29,6 +29,7 @@ task 'build', 'build the CoffeeScript language from source', -> | ||
| task 'build:parser', 'rebuild the Jison parser (run build first)', -> | ||
| + require.paths.unshift 'vendor/jison/lib' | ||
| parser: require('grammar').parser | ||
| js: parser.generate() | ||
| parser_path: 'lib/parser.js' | ||
| @@ -45,7 +46,8 @@ task 'build:underscore', 'rebuild the Underscore.coffee documentation page', -> | ||
| task 'build:browser', 'rebuild the merged script for inclusion in the browser', -> | ||
| - exec 'rake browser' | ||
| + exec 'rake browser', (err) -> | ||
| + throw err if err | ||
| task 'doc', 'watch and continually rebuild the documentation', -> | ||
View
8
bin/cake
| @@ -3,13 +3,7 @@ | ||
| process.mixin(require('sys')); | ||
| var path = require('path'); | ||
| var fs = require('fs'); | ||
| -var lib = null; | ||
| - | ||
| -if (fs.lstatSync(__filename).isSymbolicLink()) { | ||
| - lib = path.join(path.dirname(fs.readlinkSync(__filename)), '../lib'); | ||
| -} else { | ||
| - lib = path.join(__dirname, '../lib'); | ||
| -} | ||
| +var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib'); | ||
| require.paths.unshift(lib); | ||
| require('cake').run(); | ||
View
8
bin/coffee
| @@ -3,13 +3,7 @@ | ||
| process.mixin(require('sys')); | ||
| var path = require('path'); | ||
| var fs = require('fs'); | ||
| -var lib = null; | ||
| - | ||
| -if (fs.lstatSync(__filename).isSymbolicLink()) { | ||
| - lib = path.join(path.dirname(fs.readlinkSync(__filename)), '../lib'); | ||
| -} else { | ||
| - lib = path.join(__dirname, '../lib'); | ||
| -} | ||
| +var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib'); | ||
| require.paths.unshift(lib); | ||
| require('command_line').run(); | ||
View
15
documentation/index.html.erb
| @@ -111,7 +111,7 @@ alert reverse '!tpircseeffoC'</textarea></div> | ||
| <p> | ||
| <b>Latest Version:</b> | ||
| - <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.3">0.5.3</a> | ||
| + <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.4">0.5.4</a> | ||
| </p> | ||
| <h2> | ||
| @@ -153,10 +153,12 @@ alert reverse '!tpircseeffoC'</textarea></div> | ||
| <p> | ||
| To install, first make sure you have a working version of | ||
| - <a href="http://nodejs.org/">Node.js</a>, 0.1.30 or higher. Then clone the CoffeeScript | ||
| + <a href="http://nodejs.org/">Node.js</a> greater than version 0.1.30 (Node | ||
| + moves quickly, using the latest master is your best bet). | ||
| + Then clone the CoffeeScript | ||
| <a href="http://github.com/jashkenas/coffee-script">source repository</a> | ||
| from GitHub, or download the latest | ||
| - release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.3">0.5.3</a>. | ||
| + release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.4">0.5.4</a>. | ||
| To install the CoffeeScript compiler system-wide | ||
| under <tt>/usr/local</tt>, open the directory and run: | ||
| </p> | ||
| @@ -796,6 +798,13 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre> | ||
| </h2> | ||
| <p> | ||
| + <b class="header" style="margin-top: 20px;">0.5.4</b> | ||
| + Bugfix that corrects the Node.js global constants <tt>__filename</tt> and | ||
| + <tt>__dirname</tt>. Tweaks for more flexible parsing of nested function | ||
| + literals and improperly-indented comments. Updates for the latest Node.js API. | ||
| + </p> | ||
| + | ||
| + <p> | ||
| <b class="header" style="margin-top: 20px;">0.5.3</b> | ||
| CoffeeScript now has a syntax for defining classes. Many of the core | ||
| components (Nodes, Lexer, Rewriter, Scope, Optparse) are using them. | ||
Oops, something went wrong.
Showing you all comments on commits in this comparison.
|
Was trying to figure out the exact syntax addition from this one, are there updated docs or could you give me a gist? |
|
No updated docs yet (I'm not sure if it should be encouraged or not), but this lets you leave off the parentheses against multiple chained calls. See Tesco's excellent ticket that proposed it: http://github.com/jashkenas/coffee-script/issues/closed#issue/221 In effect, before you had to do this:
And now you can just do this:
|