(index ("read-toml" 0) ("write-toml" 606) ("toml->string" 790))
(def (sig (procedure "(read-toml [port-or-string])" (id read-toml))) (p "Reads a TOML document from " (tt "port-or-string") " which is " (tt "(current-input-port)") " by default.") (p "Parsed TOML data is mapped to scheme types as follows:") (table (tr (th "TOML") (th "Scheme")) "\n" (tr (td "string") (td "string")) "\n" (tr (td "integer") (td "number")) "\n" (tr (td "float") (td "number")) "\n" (tr (td "boolean") (td "boolean")) "\n" (tr (td "table") (td "alist")) "\n" (tr (td "array") (td "vector")) "\n" (tr (td "date") (td (link "http://wiki.call-cc.org/eggref/4/rfc3339" "rfc3339") " record"))))
(def (sig (procedure "(write-toml data [port])" (id write-toml))) (p "Writes the given TOML " (tt "data") " to " (tt "port") " which is " (tt "(current-output-port)") " by default."))
(def (sig (procedure "(toml->string data)" (id toml->string))) (p "Like " (tt "write-toml") " but returns a string instead of writing to a port."))
