Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cxxxr/cl-toml
TOML v0.4.0 parser and encoder
https://github.com/cxxxr/cl-toml
Last synced: 4 days ago
JSON representation
TOML v0.4.0 parser and encoder
- Host: GitHub
- URL: https://github.com/cxxxr/cl-toml
- Owner: cxxxr
- License: mit
- Created: 2018-02-13T11:41:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T16:06:40.000Z (about 5 years ago)
- Last Synced: 2024-12-18T00:37:24.999Z (5 days ago)
- Language: Common Lisp
- Homepage:
- Size: 24.4 KB
- Stars: 12
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cl-toml
[![Build Status](https://travis-ci.org/cxxxr/cl-toml.svg?branch=master)](https://travis-ci.org/cxxxr/cl-toml)toml 0.4.0 parser and encoder
## Usage
```common-lisp
(defparameter *example-text*
"# This is a TOML document. Boom.
title = \"TOML Example\"
[owner]
name = \"Lance Uppercut\"
dob = 1979-05-27T07:32:00-08:00 # First class dates? Why not?
")(cl-toml:parse *example-text*)
=> #(cl-toml:parse *example-text* :table-as :alist)
=> (("owner" ("dob" . @1979-05-27T15:32:00.000000Z) ("name" . "Lance Uppercut"))
("title" . "TOML Example"))(cl-toml:encode '(("owner" ("dob" . @1979-05-27T15:32:00.000000Z) ("name" . "Lance Uppercut"))
("title" . "TOML Example")))"title" = "TOML Example"
[owner]
"dob" = 1979-05-27T15:32:00.000000Z
"name" = "Lance Uppercut"
```## License
MIT