All Projects → aeronavery → zig-toml

aeronavery / zig-toml

Licence: MIT license
A TOML parser written in Zig

Programming Languages

Zig
133 projects

Build Status

zig-toml

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.

Quickstart Guide

Zig Version Support

This table shows the project's current compatibility status with zig:

Zig Version Status
0.10.0 Supported
0.9.1 Supported
0.8.1 and below Not Supported

Features

  • 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

Building and Usage

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].