Tomlin is a TOML parser for Janet. It aims to parse only valid TOML. It currently supports TOML v1.0.0.
Add the dependency to your project.janet
file:
(declare-project
:dependencies ["https://github.com/pyrmont/tomlin"])
Tomlin can be used like this:
(import tomlin)
(-> (slurp "input.toml")
(tomlin/toml->janet)
Documentation for Tomlin's API is in api.md.
Tomlin passes a suite of tests in the toml-specs repository. If you clone
this repository to a directory called specs/
, they will run as part of the
jpm test
process.
Found a bug? I'd love to know about it. The best way is to report your bug in the Issues section on GitHub.
Tomlin is licensed under the MIT Licence. See LICENSE for more details.