https://github.com/twilightcoders/erle
Ruby Erlang Expressions Parser
https://github.com/twilightcoders/erle
Last synced: 10 months ago
JSON representation
Ruby Erlang Expressions Parser
- Host: GitHub
- URL: https://github.com/twilightcoders/erle
- Owner: TwilightCoders
- License: mit
- Created: 2018-01-30T00:30:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T20:44:24.000Z (about 7 years ago)
- Last Synced: 2025-08-09T17:54:54.362Z (12 months ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://rubygems.org/gems/erle)
[](https://travis-ci.org/TwilightCoders/erle)
[](https://codeclimate.com/github/TwilightCoders/erle/maintainability)
[](https://codeclimate.com/github/TwilightCoders/erle/coverage)
[](https://gemnasium.com/github.com/TwilightCoders/erle)
# ERLE::Parser
http://erlang.org/doc/reference_manual/data_types.html
Erlang Expressions are a bit different from your typical programming language. ERLE::Parser helps by parsing a string of expressions into a rich (or otherwise) data-structure for Ruby to consume.
## Requirements
Ruby 2.2+
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'erle'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install erle
## Usage
```ruby
ERLE.parse(" {a,[{a_foo,'ABCDE',\"ABCDE\",<<\"ABCDE\">>}]} ")
$ {:a=>[{:a_foo=>["ABCDE", "ABCDE", "ABCDE"]}]}
```
## Development
After checking out the repo, run `bundle` to install dependencies. Then, run `bundle exec rspec` to run the tests.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/TwilightCoders/erle. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).