Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
README.md

libtoml

Fast C parser using Ragel to generate the state machine.

Currently targetted at toml 4f23be43e4

Usage

#include <toml.h>

struct toml_node *root;
struct toml_node *node;
char *buf = "[foo]\nbar = 1\n";

toml_init(&root);
toml_parse(toml_root, buf, len);

node = toml_get(toml_root, "foo.bar");

toml_dump(toml_root, stdout);
toml_free(root);

Building it

Building libtoml requires ragel (the parser generator) and libicu for unicode support.

> autoconf
> ./configure
> make

If you want to run the tests

> ./configure --with-cunit=<path_to_cunit>
> make test
> ./test

TODO

More tests

Something went wrong with that request. Please try again.