fly-peg

1.0.2 • Public • Published

fly-peg

fly badge npm badge download badge travisbadge license badge

PEG.js plugin for Fly .

Install

This plugin requires Fly .

npm i -D fly-peg

Usage

Async/Await flavored:

export async function pasa () {
  await this
    .source('src/myParser.pegjs')
    .peg({ // PEG.js options
        optimize: 'speed'
      })
    .target('dist')
}

Generator function flavored:

exports.pasa = function* () {
  yield this
    .source('src/myParser.pegjs')
    .peg({ // PEG.js options
        optimize: 'speed'
      })
    .target('dist')
}

See PEG.js JavaScript API for PEG.js options .

License

Do What The F*ck You Want To Public License

Package Sidebar

Install

npm i fly-peg

Weekly Downloads

2

Version

1.0.2

License

WTFPL

Last publish

Collaborators

  • frantic1048