chickadee » toml

Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

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 »