more docs, more tests

This commit is contained in:
Jeremy Ashkenas 2010-01-10 17:36:06 -05:00
parent 3e987de4a8
commit bb5bf7f94f
3 changed files with 25 additions and 12 deletions

View File

@ -40,8 +40,8 @@
<p> <p>
<b>Disclaimer:</b> <b>Disclaimer:</b>
CoffeeScript is just for fun and seriously alpha. I'm sure that there are still CoffeeScript is just for fun and seriously alpha. I'm sure that there are still
plenty of holes in the lexer and leaks in the syntax. <i>There is no guarantee, plenty of holes in the walls and leaks in the roof. <i>There are no guarantees
explicit or implied, of its suitability for any purpose.</i> That said, that the syntax won't change between versions.</i> That said,
it compiles into clean JavaScript (the good parts) that can use existing it compiles into clean JavaScript (the good parts) that can use existing
JavaScript libraries seamlessly, and passes through JavaScript libraries seamlessly, and passes through
<a href="http://www.jslint.com/">JSLint</a> without warnings. The compiled <a href="http://www.jslint.com/">JSLint</a> without warnings. The compiled
@ -537,12 +537,15 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre>
<ul> <ul>
<li> <li>
<a href="http://github.com/jashkenas/coffee-script/">Source Code</a><br /> <a href="http://github.com/jashkenas/coffee-script/">Source Code</a><br />
Use <tt>bin/coffee</tt> to test your changes, or <tt>rake gem:install</tt> to After checking out the source, make sure to run <tt>rake build:parser</tt>
create and install a custom version of the gem. If you're hacking on the to generate an up-to-date version of the Racc parser.
parser, use <tt>rake build:parser</tt> to rebuild it. Use <tt>bin/coffee</tt> to test your changes,
<tt>rake test</tt> to run the test suite,
and <tt>rake gem:install</tt> to
create and install a custom version of the gem.
</li> </li>
<li> <li>
<a href="http://github.com/jashkenas/coffee-script/issues">Bugs and Feature Requests</a> <a href="http://github.com/jashkenas/coffee-script/issues">Bugs, Feature Requests, and General Discussion</a>
</li> </li>
<li> <li>
<a href="http://github.com/jnicklas/bistro_car">BistroCar</a><br /> <a href="http://github.com/jnicklas/bistro_car">BistroCar</a><br />

View File

@ -26,8 +26,8 @@
<p> <p>
<b>Disclaimer:</b> <b>Disclaimer:</b>
CoffeeScript is just for fun and seriously alpha. I'm sure that there are still CoffeeScript is just for fun and seriously alpha. I'm sure that there are still
plenty of holes in the lexer and leaks in the syntax. <i>There is no guarantee, plenty of holes in the walls and leaks in the roof. <i>There are no guarantees
explicit or implied, of its suitability for any purpose.</i> That said, that the syntax won't change between versions.</i> That said,
it compiles into clean JavaScript (the good parts) that can use existing it compiles into clean JavaScript (the good parts) that can use existing
JavaScript libraries seamlessly, and passes through JavaScript libraries seamlessly, and passes through
<a href="http://www.jslint.com/">JSLint</a> without warnings. The compiled <a href="http://www.jslint.com/">JSLint</a> without warnings. The compiled
@ -1227,12 +1227,15 @@ world...";
<ul> <ul>
<li> <li>
<a href="http://github.com/jashkenas/coffee-script/">Source Code</a><br /> <a href="http://github.com/jashkenas/coffee-script/">Source Code</a><br />
Use <tt>bin/coffee</tt> to test your changes, or <tt>rake gem:install</tt> to After checking out the source, make sure to run <tt>rake build:parser</tt>
create and install a custom version of the gem. If you're hacking on the to generate an up-to-date version of the Racc parser.
parser, use <tt>rake build:parser</tt> to rebuild it. Use <tt>bin/coffee</tt> to test your changes,
<tt>rake test</tt> to run the test suite,
and <tt>rake gem:install</tt> to
create and install a custom version of the gem.
</li> </li>
<li> <li>
<a href="http://github.com/jashkenas/coffee-script/issues">Bugs and Feature Requests</a> <a href="http://github.com/jashkenas/coffee-script/issues">Bugs, Feature Requests, and General Discussion</a>
</li> </li>
<li> <li>
<a href="http://github.com/jnicklas/bistro_car">BistroCar</a><br /> <a href="http://github.com/jnicklas/bistro_car">BistroCar</a><br />

View File

@ -7,4 +7,11 @@ func: =>
# comment # comment
true true
switch 'string'
# comment
when false then something()
# comment
when null
something_else()
print(func()) print(func())