mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
31 lines
918 B
JavaScript
31 lines
918 B
JavaScript
#!/usr/bin/env narwhal
|
|
|
|
var FILE = require("file"),
|
|
OS = require("os"),
|
|
jake = require("jake");
|
|
|
|
jake.task("build", ["build:bnf", "build:lex"]);
|
|
|
|
jake.task("build:bnf", function () {
|
|
OS.system(['./bin/jison', 'src/bnf.jison', 'src/bnf.jisonlex']);
|
|
OS.system(['mv', 'bnf.js', 'lib/jison/util/bnf-parser.js']);
|
|
});
|
|
|
|
jake.task("build:lex", function () {
|
|
OS.system(['./bin/jison', 'src/jisonlex.jison', 'src/jisonlex.jisonlex']);
|
|
OS.system(['mv', 'jisonlex.js', 'lib/jison/util/lex-parser.js']);
|
|
});
|
|
|
|
|
|
jake.task("test", function () {
|
|
OS.system(['narwhal', 'tests/all-tests.js']);
|
|
});
|
|
jake.task("test:parser", function () {
|
|
OS.system(['narwhal', 'tests/parser/parser-tests.js']);
|
|
});
|
|
jake.task("test:lexer", function () {
|
|
OS.system(['narwhal', 'tests/lexer/lexer-tests.js']);
|
|
});
|
|
jake.task("test:grammar", function () {
|
|
OS.system(['narwhal', 'tests/grammar/grammar-tests.js']);
|
|
});
|