1.0.2 • Published 8 years ago
fly-peg v1.0.2
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 .