chickadee » toml

toml

Description

A TOML reader and writer based on Comparse. Passes toml-test suites for encoding and decoding.

API

read-toml #!optional port-or-stringprocedure

Reads a TOML document from port-or-string which is (current-input-port) by default.

Parsed TOML data is mapped to scheme types as follows:

TOMLScheme
stringstring
integernumber
floatnumber
booleanboolean
tablealist
arrayvector
daterfc3339 record
write-toml data #!optional portprocedure

Writes the given TOML data to port which is (current-output-port) by default.

toml->string dataprocedure

Like write-toml but returns a string instead of writing to a port.

About this egg

Source

The source code is hosted on GitHub. Feel free to fork it and send pull requests there.

Author

Caolan McMahon

Version history

1.0.0
Initial release, passsing toml-test sutie

Contents »