mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
// Generated by CoffeeScript 1.7.1
|
|
var fs;
|
|
|
|
fs = require('fs');
|
|
|
|
option('-o', '--output [DIR]', 'directory for compiled code');
|
|
|
|
task('build:parser', 'rebuild the Jison parser', function(options) {
|
|
var code, dir;
|
|
require('jison');
|
|
code = require('./lib/grammar').parser.generate();
|
|
dir = options.output || 'lib';
|
|
return fs.writeFile("" + dir + "/parser.js", code);
|
|
});
|