Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for [[/eggref/5/toml|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 [[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]] == toml [[toc:]] === Description A [[https://github.com/toml-lang/toml|TOML]] reader and writer based on [[/egg/comparse|Comparse]]. Passes [[https://github.com/BurntSushi/toml-test|toml-test]] suites for encoding and decoding. === API <procedure>(read-toml [port-or-string])</procedure> 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: <table> <tr><th>TOML</th><th>Scheme</th></tr> <tr><td>string</td><td>string</td></tr> <tr><td>integer</td><td>number</td></tr> <tr><td>float</td><td>number</td></tr> <tr><td>boolean</td><td>boolean</td></tr> <tr><td>table</td><td>alist</td></tr> <tr><td>array</td><td>vector</td></tr> <tr><td>date</td><td>[[http://wiki.call-cc.org/eggref/4/rfc3339|rfc3339]] record</td></tr> </table> <procedure>(write-toml data [port])</procedure> Writes the given TOML {{data}} to {{port}} which is {{(current-output-port)}} by default. <procedure>(toml->string data)</procedure> Like {{write-toml}} but returns a string instead of writing to a port. === About this egg ==== Source The [[https://github.com/caolan/chicken-toml|source code is hosted on GitHub]]. Feel free to fork it and send pull requests there. ==== Author [[/users/caolan-mcmahon|Caolan McMahon]] ==== Version history ; 1.0.0: Initial release, passsing toml-test sutie
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 11 from 1?