A Perl 6 TOML parser / serializer
Perl 6
Switch branches/tags
Nothing to show
Latest commit 287feac May 25, 2015 @Mouq Merge pull request #1 from atweiden/meta-provides
added provides section
Permalink
Failed to load latest commit information.
bin Get rudimentary encoding working Feb 1, 2015
lib
LICENSE Initial commit Aug 17, 2014
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