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.


  1. Outdated egg!
  2. toml
    1. Description
    2. API
    3. About this egg
      1. Source
      2. Author
      3. Version history


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


[procedure] (read-toml [port-or-string])

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:

TOML Scheme
string string
integer number
float number
boolean boolean
table alist
array vector
date rfc3339 record
[procedure] (write-toml data [port])

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

[procedure] (toml->string data)

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

About this egg


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


Caolan McMahon

Version history

Initial release, passsing toml-test sutie