gulp-peg
Gulp plugin for compiling PEG grammars
Last updated 6 years ago by lazutkin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-peg 
SYNC missed versions from official npm registry.

gulp-peg

Build Status

Gulp plugin for PEG parsers compilation.

Detailed documentation will be writen soon...

Installation

Install plugin

npm install gulp-peg --save-dev

Add peg-compilation task into your gulp-file:

paths =
  build: "build"
  scripts: peg: "src/**/*.peg"

gulp.task "peg:compile", ->
  gulp
    .src( paths.scripts.peg )
    .pipe( peg( ).on( "error", gutil.log ) )
    .pipe( gulp.dest( paths.build ) )

Finish

Options

Plugin redirects passed options directly to PEG, so read its documentation for details.

exportVar option

This option is inspired by grunt-peg plugin, and defines variable to which the generated parser will be assigned in the output file. Default value is module.exports.

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

4 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 9
Last Month 14
Dependencies (3)
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |