firedoc
Version:
API Doc generator rewritten from [YUIDoc](https://github.com/yui/yuidoc). We use this tool to document a large JavaScript game engine [Fireball](http://github.com/fireball-x/fireball) at [docs-zh.fireball-x.com/api](http://docs-zh.fireball-x.com/api/) and
24 lines (19 loc) • 435 B
JavaScript
/**
* The firedoc module
* @module firedoc
*/
const debug = require('debug')('firedoc:parser');
const AST = require('./ast').AST;
/**
* parse and generate the `AST` object
*
* @method parse
* @param {String} syntaxtype
* @param {Array} files
* @param {Array} dirs
* @return {AST} the ast object
*/
function parse (syntaxtype, files, dirs) {
return AST.reset().create(files, dirs, syntaxtype);
}
exports.parse = parse;