mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 10:34:55 -05:00
CoffeeScript 0.5.3, with classes
This commit is contained in:
@@ -111,7 +111,7 @@ alert reverse '!tpircseeffoC'</textarea></div>
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>Latest Version:</b>
|
<b>Latest Version:</b>
|
||||||
<a href="http://github.com/jashkenas/coffee-script/tarball/0.5.2">0.5.2</a>
|
<a href="http://github.com/jashkenas/coffee-script/tarball/0.5.3">0.5.3</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
@@ -156,7 +156,7 @@ alert reverse '!tpircseeffoC'</textarea></div>
|
|||||||
<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>, 0.1.30 or higher. Then clone the CoffeeScript
|
||||||
<a href="http://github.com/jashkenas/coffee-script">source repository</a>
|
<a href="http://github.com/jashkenas/coffee-script">source repository</a>
|
||||||
from GitHub, or download the latest
|
from GitHub, or download the latest
|
||||||
release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.2">0.5.2</a>.
|
release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.3">0.5.3</a>.
|
||||||
To install the CoffeeScript compiler system-wide
|
To install the CoffeeScript compiler system-wide
|
||||||
under <tt>/usr/local</tt>, open the directory and run:
|
under <tt>/usr/local</tt>, open the directory and run:
|
||||||
</p>
|
</p>
|
||||||
@@ -794,6 +794,16 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre>
|
|||||||
<span id="change_log" class="bookmark"></span>
|
<span id="change_log" class="bookmark"></span>
|
||||||
Change Log
|
Change Log
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
<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.
|
||||||
|
Cakefiles can use <tt>optparse.coffee</tt> to define options for tasks.
|
||||||
|
<tt>--run</tt> is now the default flag for the <tt>coffee</tt> command,
|
||||||
|
use <tt>--compile</tt> to save JavaScripts. Bugfix for an ambiguity between
|
||||||
|
RegExp literals and chained divisions.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b class="header" style="margin-top: 20px;">0.5.2</b>
|
<b class="header" style="margin-top: 20px;">0.5.2</b>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
14
index.html
14
index.html
@@ -97,7 +97,7 @@ alert reverse '!tpircseeffoC'</textarea></div>
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>Latest Version:</b>
|
<b>Latest Version:</b>
|
||||||
<a href="http://github.com/jashkenas/coffee-script/tarball/0.5.2">0.5.2</a>
|
<a href="http://github.com/jashkenas/coffee-script/tarball/0.5.3">0.5.3</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
@@ -253,7 +253,7 @@ cubed_list = (function() {
|
|||||||
<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>, 0.1.30 or higher. Then clone the CoffeeScript
|
||||||
<a href="http://github.com/jashkenas/coffee-script">source repository</a>
|
<a href="http://github.com/jashkenas/coffee-script">source repository</a>
|
||||||
from GitHub, or download the latest
|
from GitHub, or download the latest
|
||||||
release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.2">0.5.2</a>.
|
release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.3">0.5.3</a>.
|
||||||
To install the CoffeeScript compiler system-wide
|
To install the CoffeeScript compiler system-wide
|
||||||
under <tt>/usr/local</tt>, open the directory and run:
|
under <tt>/usr/local</tt>, open the directory and run:
|
||||||
</p>
|
</p>
|
||||||
@@ -1675,6 +1675,16 @@ task(<span class="String"><span class="String">'</span>test<span class="String">
|
|||||||
<span id="change_log" class="bookmark"></span>
|
<span id="change_log" class="bookmark"></span>
|
||||||
Change Log
|
Change Log
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
<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.
|
||||||
|
Cakefiles can use <tt>optparse.coffee</tt> to define options for tasks.
|
||||||
|
<tt>--run</tt> is now the default flag for the <tt>coffee</tt> command,
|
||||||
|
use <tt>--compile</tt> to save JavaScripts. Bugfix for an ambiguity between
|
||||||
|
RegExp literals and chained divisions.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b class="header" style="margin-top: 20px;">0.5.2</b>
|
<b class="header" style="margin-top: 20px;">0.5.2</b>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
return this.pos;
|
return this.pos;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports.VERSION = '0.5.2';
|
exports.VERSION = '0.5.3';
|
||||||
// Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
// Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
||||||
exports.compile = function compile(code, options) {
|
exports.compile = function compile(code, options) {
|
||||||
return (parser.parse(lexer.tokenize(code))).compile(options);
|
return (parser.parse(lexer.tokenize(code))).compile(options);
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
"description": "Unfancy JavaScript",
|
"description": "Unfancy JavaScript",
|
||||||
"keywords": ["javascript", "language"],
|
"keywords": ["javascript", "language"],
|
||||||
"author": "Jeremy Ashkenas",
|
"author": "Jeremy Ashkenas",
|
||||||
"version": "0.5.2"
|
"version": "0.5.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ parser.lexer: {
|
|||||||
showPosition: -> @pos
|
showPosition: -> @pos
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.VERSION: '0.5.2'
|
exports.VERSION: '0.5.3'
|
||||||
|
|
||||||
# Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
# Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
||||||
exports.compile: (code, options) ->
|
exports.compile: (code, options) ->
|
||||||
|
|||||||
Reference in New Issue
Block a user