parse.js
const toAST = require("./toAST");
const tokenize = require("./tokenize");
function parse(script) {
const tokenReader = tokenize(script);
const ast = toAST(tokenReader);
return ast;
}
module.exports = parse;
const toAST = require("./toAST");
const tokenize = require("./tokenize");
function parse(script) {
const tokenReader = tokenize(script);
const ast = toAST(tokenReader);
return ast;
}
module.exports = parse;