Guard::Treetop
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request