1.0.0 • Published 4 years ago

pegx-bundler v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

PegX Bundler

Simple Pegjs bundler that supports 'use' statements to include other .pegx files.

const peg = require("pegjs");
const PegxBundler = require("pegx-bundler");

(async function main() {
  if (process.argv.slice(2).length > 0) {
    let file = new PegxBundler("path", process.argv[2]);
    await file.build();
    peg.generate(file.program);
  }
})();
1.0.0

4 years ago