Ruby parser for the Wexpr format. See libWexpr for more details of the format.
Add this line to your application's Gemfile:
gem 'wexpr'
And then execute:
$ bundle
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.
Bug reports and pull requests are welcome on GitHub at https://github.com/thothonegan/ruby-wexpr.
The gem is available as open source under the terms of the MIT License.