sexpr v0.1.2
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
Repository
sexpr
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- almost 3 years ago
- October 18, 2021
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 01:13:22 GMT
Languages