(type egg)
(signature "toml egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/toml" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg")) (section 2 "toml" (toc) (section 3 "Description" (p "A " (link "https://github.com/toml-lang/toml" "TOML") " reader and writer based on " (int-link "/egg/comparse" "Comparse") ". Passes " (link "https://github.com/BurntSushi/toml-test" "toml-test") " suites for encoding and decoding.")) (section 3 "API" (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."))) (section 3 "About this egg" (section 4 "Source" (p "The " (link "https://github.com/caolan/chicken-toml" "source code is hosted on GitHub") ". Feel free to fork it and send pull requests there.")) (section 4 "Author" (p (int-link "/users/caolan-mcmahon" "Caolan McMahon"))) (section 4 "Version history" (dl (dt "1.0.0") (dd "Initial release, passsing toml-test sutie")))))))
