Skip to content

StanzaOrg/stanza-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOML Parser / Writer

This library provides a pure stanza implementation of a TOML format parser/writer.

Using this library

The easiest way to use this library is:

  1. Use slm to manage dependencies in your stanza project.
    1. slm add -git StanzaOrg/slm
  2. Use a git submodule and manage dependencies manually.

Example:

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]

Limitations

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

Running the tests

  1. Have stanza installed and available on your $PATH.
  2. Have slm installed and available on your $PATH
  3. You will also need gcc available on your $PATH

Run:

$> slm build test
$> ./toml-test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •