https://github.com/caolan/chicken-toml
A TOML parser for CHICKEN Scheme built with comparse
https://github.com/caolan/chicken-toml
Last synced: 4 months ago
JSON representation
A TOML parser for CHICKEN Scheme built with comparse
- Host: GitHub
- URL: https://github.com/caolan/chicken-toml
- Owner: caolan
- Created: 2015-04-20T15:31:50.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-06-12T14:03:08.000Z (about 7 years ago)
- Last Synced: 2025-02-13T16:46:19.898Z (over 1 year ago)
- Language: Scheme
- Size: 49.8 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TOML parser for CHICKEN Scheme
Built with [comparse](http://wiki.call-cc.org/eggref/4/comparse).
```scheme
(use toml)
(read-toml string/input-port) ;; => data
(write-toml data output-port)
(toml->string data) ;; => string
```
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
```
Passes [toml-test](https://github.com/BurntSushi/toml-test) suites for
encoding and decoding.