pyrmont / tomlin

A TOML parser written in Janet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tomlin

Build Status

Tomlin is a TOML parser for Janet. It aims to parse only valid TOML. It currently supports TOML v1.0.0.

Installation

Add the dependency to your project.janet file:

(declare-project
  :dependencies ["https://github.com/pyrmont/tomlin"])

Usage

Tomlin can be used like this:

(import tomlin)

(-> (slurp "input.toml")
    (tomlin/toml->janet)

API

Documentation for Tomlin's API is in api.md.

Testing

Tomlin passes a suite of tests in the toml-specs repository. If you clone this repository to a directory called specs/, they will run as part of the jpm test process.

Bugs

Found a bug? I'd love to know about it. The best way is to report your bug in the Issues section on GitHub.

Licence

Tomlin is licensed under the MIT Licence. See LICENSE for more details.

About

A TOML parser written in Janet

License:MIT License


Languages

Language:Janet 100.0%