Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bash-bastion/toml-subset
Defining a subset of TOML
https://github.com/bash-bastion/toml-subset
specification toml
Last synced: about 1 month ago
JSON representation
Defining a subset of TOML
- Host: GitHub
- URL: https://github.com/bash-bastion/toml-subset
- Owner: bash-bastion
- Created: 2022-04-12T01:57:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T02:02:37.000Z (over 2 years ago)
- Last Synced: 2024-10-12T02:07:08.086Z (about 1 month ago)
- Topics: specification, toml
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TOML Subset
The [TOML](https://toml.io) configuration format sports a myriad of useful features, but I found myself needing to define a subset of it.
My primary use case is for [Basalt](https://github.com/hyperupcall/basalt). The configuration format is written in TOML, but it is too expensive and slow to parse TOML in its entirety using Bash. Within the project, the TOML file is parsed with regular expressions line-by-line. Therefore, things like escape sequences within simple strings are not properly evaluated. TOML is still used though, since it is widely supported by editors and other programming languages
The subset is defined in [spec.md](./docs/spec.md). Each heading is a duplicate from the official [TOML page](https://toml.io/en/v1.0.0) describing any modifications (if any)