Cirru::Parser
Cirru Parser in Ruby
Develop
ruby test.rb
Installation
Add this line to your application's Gemfile:
gem 'cirru-parser'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cirru-parser
Usage
require 'cirru/parser'
Cirru::Parser.parse 'code', 'filename'
# => returns tree
Cirru::Parser.pare 'code', 'filename'
# => returns simplified tree
Contributing
- Fork it ( https://github.com/[my-github-username]/cirru-parser/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request