nestedtext-ruby
| Project | |
|---|---|
| Name | NestedText Ruby Library |
| Tech | Ruby, Minitest, GitHub Actions, Simplecov, Rake, Rubocop |
| URL | https://github.com/erikw/nestedtext-ruby |
| Blog Post | /blog/tech/nestedtext-implementation-in-ruby/ |
A ruby library for the human friendly data format NestedText.
Support is provided for decoding a NestedText file or string to Ruby data structures, as well as encoding Ruby objects to a NestedText file or string. Furthermore, there is support for serialization and deserialization of custom classes. The supported language version of the data format can be seen in the badge above. This implementation passes all the official tests.
This library is inspired by Ruby stdlib modules JSON and YAML, as well as the Python reference implementation of NestedText. Parsing is done with an LL(1) recursive descent parser and dumping with a recursive DFS traversal of the object references.
