got the CoffeeScript-in-CoffeeScript REPL running, and boy is she fast

This commit is contained in:
Jeremy Ashkenas
2010-02-13 10:27:18 -05:00
parent b224d58a36
commit c88b1f6a15
6 changed files with 13 additions and 10 deletions

View File

@@ -26,8 +26,8 @@
};
exports.VERSION = '0.5.0';
// Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
exports.compile = function compile(code) {
return (parser.parse(lexer.tokenize(code))).compile();
exports.compile = function compile(code, options) {
return (parser.parse(lexer.tokenize(code))).compile(options);
};
// Just the tokens.
exports.tokenize = function tokenize(code) {