A small s-expression parser based on fast-sexpr
src | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
README.md | ||
shard.yml |
sexpr
A small s-expression parser based on fast-sexpr.
Installation
-
Add the dependency to your
shard.yml
:dependencies: sexpr: github: grimmigerFuchs/sexpr
-
Run
shards install
Usage
require "sexpr"
source = "
(test (arg1 arg2) something else)
(another object (with (nests (too))))
"
pp Sexpr.parse(source)
# [["test", ["arg1", "arg2"], "something", "else"],
# ["another", "object", ["with", ["nests", ["too"]]]]]
Contributing
- Fork it (https://github.com/grimmigerFuchs/sexpr/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
Contributors
- Dominic Grimm - creator and maintainer