fly-peg
v1.0.2
Published
PEG.js plugin for Fly.
Downloads
7
Maintainers
Readme
fly-peg
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 .