Wexpr

Ruby parser for the Wexpr format. See libWexpr for more details of the format.

Installation

Add this line to your application's Gemfile:

gem 'wexpr'

And then execute:

$ bundle

Usage

For simple wexpr expression to an equivilant ruby hash (similar to yaml/json libraries):

require 'wexpr'

rubyHash = Wexpr.load("@(array #(1 2 3)")

For more complex, Wexpr::Expression acts like its libWexpr equivilant. See the files in test for examples.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/thothonegan/ruby-wexpr.

License

The gem is available as open source under the terms of the MIT License.