mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
done for now
This commit is contained in:
@@ -27,10 +27,11 @@
|
||||
exports.VERSION = '0.5.0';
|
||||
// Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
||||
exports.compile = function compile(code) {
|
||||
var nodes, tokens;
|
||||
tokens = lexer.tokenize(code);
|
||||
nodes = parser.parse(tokens);
|
||||
return nodes.compile();
|
||||
return (parser.parse(lexer.tokenize(code))).compile();
|
||||
};
|
||||
// Just the tokens.
|
||||
exports.tokenize = function tokenize(code) {
|
||||
return lexer.tokenize(code);
|
||||
};
|
||||
//---------- Below this line is obsolete, for the Ruby compiler. ----------------
|
||||
// Executes the `coffee` Ruby program to convert from CoffeeScript to JavaScript.
|
||||
|
||||
Reference in New Issue
Block a user