Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duckonaut/dent
A data format that does slightly more
https://github.com/duckonaut/dent
Last synced: 5 days ago
JSON representation
A data format that does slightly more
- Host: GitHub
- URL: https://github.com/duckonaut/dent
- Owner: Duckonaut
- Created: 2023-10-12T22:02:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T22:20:39.000Z (about 1 year ago)
- Last Synced: 2024-10-11T02:52:46.291Z (27 days ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dent
> Duckonaut's Extensible Notation for Things.## About
Dent is an extensible format for storing slightly-advanced data.It's basic notation is simplistic to be human friendly, but allows
for some basic operations at file parse time, such as:
- importing other `.dent` files as parts of your file,
- merging split-up dictionaries or lists.Many other operations you may need can be added with closures passed
to the `Dent` struct.## Features
- Simple syntax
- Integers, floats, bools, strings
- Dictionaries
- Lists
- Comments
- Extensible functions## Examples
```
# file: examples/dent/dict.dent# Mario
{
name: Mario
skills: [
jumps
grows
]
age: 35
alive: true
}# ...
# another file:
# Define a list of characters
[
@import "examples/dent/dict.dent"
{
name: Link
skills: [
swordfighting
reincarnation
]
age: 23
alive: true
}
]
```