Skip to content

cameronhunter/rollup-plugin-pegjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-pegjs

Build Status NPM Version License

A rollup plugin allowing you to import PEG.js grammars as parsers directly in your code.

import { parse } from "grammar.pegjs";
console.log(parse("language to parse"));

Install

npm install --save-dev rollup-plugin-pegjs

Usage

import { rollup } from "rollup";
import pegjs from "rollup-plugin-pegjs";

rollup({
  entry: "main.js",
  plugins: [
    pegjs()
  ]
});

About

Import PEG.js grammars as parsers directly in your code

Resources

License

Stars

Watchers

Forks

Packages

No packages published