TOML v0.4.0 parser and encoder
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml rename toml -> cl-toml Feb 15, 2018
LICENSE Create LICENSE Feb 13, 2018
README.md rename toml -> cl-toml Feb 15, 2018
cl-toml-test.asd fix system name Mar 16, 2018
cl-toml.asd add types.lisp Jun 8, 2018
encode.lisp fix *char-replacement* Oct 23, 2018
package.lisp add encode-literal-string Jun 8, 2018
parse.lisp fix #1 Jun 28, 2018
test.lisp fix #1 Jun 28, 2018
types.lisp add types.lisp Jun 8, 2018
util.lisp order the alist Jun 17, 2018

README.md

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