ethers.js/packages/asm/generate.js
2020-01-30 21:26:46 -05:00

14 lines
296 B
JavaScript

"use strict";
const fs = require("fs");
const jison = require("jison")
const grammar = fs.readFileSync("grammar.jison").toString();
const parser = new jison.Parser(grammar);
const parserSource = parser.generate({ moduleName: "parser" });
fs.writeFileSync("./lib/_parser.js", parserSource);