10 lines
218 B
JavaScript
10 lines
218 B
JavaScript
var parser = require('./lib/parser');
|
|
var compiler = require('./lib/compiler');
|
|
|
|
module.exports = {
|
|
parse: function(input) {
|
|
var nodes = parser.parse(input.toString());
|
|
return compiler.compile(nodes);
|
|
}
|
|
};
|