This library provides a pure stanza implementation of a TOML format parser/writer.
The easiest way to use this library is:
- Use slm to manage dependencies in your stanza project.
- slm add -git StanzaOrg/slm
- Use a git submodule and manage dependencies manually.
defn get-name-version (path:String) -> [String, String] :
val tab = table $ parse-file(path)
val name = tab["name"] as String
val version = tab["version"] as String
[name, version]
This library currently does not support inline arrays.
# Not Supported:
args = [ "apple", "orange", "kiwi"]
It also does not support RFC 3339 date-time.
created = 1979-05-27T07:32:00
- Have stanza installed and available on your
$PATH
. - Have slm installed and available on your
$PATH
- You will also need
gcc
available on your$PATH
Run:
$> slm build test
$> ./toml-test