Skip to content

aeronavery/zig-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.11.0 ✅ Supported
0.10.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.

About

A TOML parser written in Zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages