Happy Birthday, CoffeeScript-in-CoffeeScript, you just passed the entire test suite.

This commit is contained in:
Jeremy Ashkenas
2010-02-12 22:24:57 -05:00
parent e2f3c2259b
commit 1552470413
2 changed files with 5 additions and 16 deletions

View File

@@ -53,18 +53,7 @@
}
opts = this.options;
return posix.cat(source).addCallback(function(code) {
if (opts.tokens) {
return puts(coffee.tokenize(code).join(' '));
}
if (opts.tree) {
return puts(coffee.tree(code).toString());
}
if (opts.run) {
return eval(coffee.compile(code));
}
if (opts.print) {
return puts(coffee.compile(code));
}
opts.tokens ? puts(coffee.tokenize(code).join(' ')) : opts.tree ? puts(coffee.tree(code).toString()) : opts.run ? eval(coffee.compile(code)) : opts.print ? puts(coffee.compile(code)) : null;
return exports.compile_scripts();
});
};