TOML parser

Version: 0.4.0

Authors: Benedikt Reinartz (filmor@gmail.com), Stanislaw Klekot (dozzie@jarowit.net).

See also: tomerl.

tomerl is an Erlang library application for parsing TOML data. It supports parsing version 1.0.0-rc1 of the TOML specification.

Usage Example

Assuming an input file called config.toml with the following content:

lipsum = "lorem ipsum dolor sit amet"

[apples]
count = 2

[berry.black]
has_some = true

the data can be read in Erlang like this:

{ok, Data} = tomerl:read_file("config.toml").

>>> Data = #{
    <<"lipsum">> => <<"lorem ipsum dolor sit amet">>,
    <<"apples">> => #{ <<"count">> => 2 },
    <<"berry">> => #{ <<"black">> => #{ <<"has_some">> => true }}
}.

Generated by EDoc