docutils-ts
Version:
Port of the Python Docutils library to TypeScript
18 lines (17 loc) • 494 B
JavaScript
import Component from "./component.js";
class Parser extends Component {
constructor(args) {
super({ logger: args.logger });
this.debugFn = this.logger.debug.bind(this.logger);
this.componentType = 'parser';
this.configSection = 'parsers';
this.debug = args.debug || false;
if (args.debugFn !== undefined) {
this.debugFn = args.debugFn;
}
}
setupParse(inputstring, document) {
}
;
}
export default Parser;