A TOML parser written in Zig targeting TOML v0.5.0. The end goal is for the program to be robust, with no crashing given any situation. Though, in its current state this program is probably far from that goal.
There is currently a lack of documentation but the tests contained should give enough of an idea on how to use this.
This table shows the project's current compatibility status with zig:
Zig Version | Status |
---|---|
0.11.0 | ✅ Supported |
0.10.1 and below | ❌ Not Supported |
- Tables
- Keys (all kinds)
- Single-line strings
- Integers
- Booleans
- Arrays
- Comments
- Floats
- Hexadecimal, octal, and binary numbers
- Multi-line strings
- String escapes
- Inline tables
- Array of tables
- Time and date
This library is self-contained and requires no dependencies.
To build simply run zig build
and that will output a file called libtoml.a
that you can link with your program.
If you want to run the tests then use the zig build test
command.