A small s-expression parser based on fast-sexpr.
-
Add the dependency to your
shard.yml
:dependencies: sexpr: github: grimmigerFuchs/sexpr
-
Run
shards install
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"]]]]]
- 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
- Dominic Grimm - creator and maintainer