Guard::Treetop

Gem Version Build Status Dependency Status Code Climate Coverage Status

Compiles your treetop grammars to ruby files using guard.

Tested under MRI 1.8, 1.9 and 2.0, JRuby and Rubinius.

Installation

Add this line to your application's Gemfile:

group :development do
  gem 'guard-treetop'
end

And then execute:

$ bundle

Or install it yourself:

$ gem install guard-treetop

Usage

$ bundle exec guard init treetop

And edit your Guardfile.

Options

:input => 'grammars'          # Relative path to the root directory.
                              # Will compile .tt and .treetop files inside
                              # default: nil

:output => 'lib/parsers'      # Relative path to the root directory.
                              # default: the same as :input

:all_on_start => false        # Run compilation when guard starts
                              # default: false

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request