clj-toml is TOML for Clojure. TOML is Tom's Obvious, Minimal Language.
TOML is like INI, only better (Tom Preston-Werner)
clj-toml uses Kern for parsing. Kern does all the heavy lifting, we're just sitting pretty.
clj-toml comes with a decent collection of tests. It successfully parses the TOML hard example. Easy peasy.
Supported TOML version: v0.1.0
Leiningen:
[clj-toml "0.3.1"]
Test:
lein test
Use:
(use 'clj-toml.core)
(parse-string "
title = \"TOML\"
[Foo]
bar=[1,2,3]")
;; {"title" "TOML" "foo" {"bar" [1 2 3]}}
The parser is pretty solid (thanks to Kern) and complete.
In a way it implements a superset of TOML, since it successfully parses
As the TOML specification stabilizes, we'll raise errors according to specification.
Copyright © 2013 Luca Antiga.
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close