Crate styx_tree

Crate styx_tree 

Source
Expand description

§styx-tree

crates.io documentation MIT/Apache-2.0 licensed

High-level syntax tree for the Styx configuration language. Provides a convenient API for working with parsed Styx documents.

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§License

Licensed under either of:

at your option. Document tree representation for Styx configuration files.

This crate provides a high-level API for working with Styx documents, including parsing, accessing values by path, and serialization.

Structs§

Document
A Styx document (root is always an implicit object).
Entry
An entry in an object.
Object
An object (mapping of keys to values).
ParseError
A parser error with source location.
Scalar
A scalar value.
Sequence
A sequence of values.
Span
A span representing a range in the source text.
Tag
A tag on a value.
TreeBuilder
Builder that constructs a tree from parse events.
Value
A Styx value: optional tag + optional payload.

Enums§

BuildError
Error during tree building.
ParseErrorKind
Parse error kinds.
Payload
The payload of a value.
ScalarKind
Kind of scalar.
Separator
Separator mode for object entries.

Functions§

parse
Parse a Styx document into a tree.