A fork of the excellent https://github.com/cktan/tomlc17, but:
- Ported over to sp.h. This is more mechanical; the public API is a lot nicer, since you can actually pass an allocator to the parser, it trivially compiles on any reasonable platform or toolchain, and it does not depend on libc. Even still, I can't take too much credit for this. The guts of the code are strictly thanks to the original author.
- Wrote a TOML schema library with a declarative macro DSL plus auto-binding to structs. This is original code.
The current state of this repository is transient. Eventually, the TOML libraries will get combined into one and merged upstream with the other sp.h baseball libraries. For now, the schema library isn't integrated with the main TOML parser, because it was written first and before I figured to port the main parser. I've copied the source and tests into this repository in the meantime, but the tests are only compiled on a local copy I have.