You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
src | 1 year ago | |
.editorconfig | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 1 year ago | |
shard.yml | 1 year ago |
README.md
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