cl-toml

2019-11-30

TOML v0.4.0 parser and encoder

Upstream URL

github.com/cxxxr/cl-toml

Author

cxxxr

License

MIT
README

cl-toml

Build Status

toml 0.4.0 parser and encoder

Usage

(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*)
=> #<EQUAL Hash Table{5} 40205D45A3>


(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

Dependencies (5)

  • alexandria
  • esrap
  • local-time
  • prove
  • trivial-types

Dependents (1)

  • GitHub
  • Quicklisp