dent-parse 0.1.0

Duck's Extensible Notation for Things (DENT) parser
Documentation
  • Coverage
  • 43.48%
    10 out of 23 items documented6 out of 8 items with examples
  • Size
  • Source code size: 39.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Duckonaut/dent
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Duckonaut

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
    }
]