Project

wexpr

0.0
Low commit activity in last 3 years
No release in over a year
Wexpr is a simple configuration language, similar to lisps's S expressions or JSON. Designed to be readable, while being quick and easy to parse. This is a ruby library to parse and emit wexpr.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 5.0
~> 12.3
 Project Readme

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.