A WIP ~250 line TOML parser and serializer written in Perl 6.
say from-toml q:/.../;
format = "simple"
bool = true
strings = "true"
dates = 1996-08-28T21:11:00Z
arrays = [ "yep", "got 'em too" ]
Tests are currently done via toml-test.
To test TOML.pm6, Go must be installed. Then, install toml-test via:
go get github.com/BurntSushi/toml-test
And then test TOML.pm6 with:
- TOML encoding
- Perl 6 test harness
- Better errors