dent-parse

Crates.iodent-parse
lib.rsdent-parse
version0.1.0
sourcesrc
created_at2023-10-12 22:17:19.778661
updated_at2023-10-12 22:17:19.778661
descriptionDuck's Extensible Notation for Things (DENT) parser
homepagehttps://github.com/Duckonaut/dent
repositoryhttps://github.com/Duckonaut/dent
max_upload_size
id1001724
size40,012
Stanisław Zagórowski (Duckonaut)

documentation

https://docs.rs/dent-parse

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
    }
]
Commit count: 4

cargo fmt