https://github.com/pyrmont/tomlin
A TOML parser written in Janet
https://github.com/pyrmont/tomlin
janet toml toml-parser
Last synced: 5 months ago
JSON representation
A TOML parser written in Janet
- Host: GitHub
- URL: https://github.com/pyrmont/tomlin
- Owner: pyrmont
- License: mit
- Created: 2021-01-17T01:06:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T21:58:05.000Z (over 1 year ago)
- Last Synced: 2025-03-07T03:30:40.922Z (10 months ago)
- Topics: janet, toml, toml-parser
- Language: Janet
- Homepage:
- Size: 58.6 KB
- Stars: 18
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tomlin
[![Build Status][icon]][status]
[icon]: https://github.com/pyrmont/tomlin/workflows/build/badge.svg
[status]: https://github.com/pyrmont/tomlin/actions?query=workflow%3Abuild
Tomlin is a [TOML][] parser for Janet. It aims to parse only valid TOML.
It currently supports [TOML v1.0.0][spec].
[TOML]: https://toml.io
[spec]: https://toml.io/en/v1.0.0
## Installation
Add the dependency to your `project.janet` file:
```janet
(declare-project
:dependencies ["https://github.com/pyrmont/tomlin"])
```
## Usage
Tomlin can be used like this:
```janet
(import tomlin)
(-> (slurp "input.toml")
(tomlin/toml->janet)
```
## API
Documentation for Tomlin's API is in [api.md][api].
[api]: https://github.com/pyrmont/tomlin/blob/master/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.
[toml-specs]: https://github.com/pyrmont/toml-specs
## 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.
[Issues]: https://github.com/pyrmont/tomlin/issues
## Licence
Tomlin is licensed under the MIT Licence. See [LICENSE][] for more details.
[LICENSE]: https://github.com/pyrmont/tomlin/blob/master/LICENSE