Skip to content
A Perl 6 TOML parser / serializer
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
LICENSE
META.info
README.md

README.md

TOML.pm6

A WIP ~250 line TOML parser and serializer written in Perl 6.

Synopsis

use TOML;

say from-toml q:/.../;
    [TOML]
    format = "simple"

    [TOML.types]
    bool = true
    strings = "true"
    dates = 1996-08-28T21:11:00Z
    arrays = [ "yep", "got 'em too" ]
    ...

Testing

Tests are currently done via toml-test. To test TOML.pm6, Go must be installed. Then, install toml-test via:

cd
export GOPATH=$HOME/go
go get github.com/BurntSushi/toml-test

And then test TOML.pm6 with:

cd -1
$HOME/go/bin/toml-test bin/toml2json

TODO

  • TOML encoding
  • Perl 6 test harness
  • Better errors
You can’t perform that action at this time.