Crate styx_parse

Crate styx_parse 

Source
Expand description

§styx-parse

crates.io documentation MIT/Apache-2.0 licensed

Event-based parser for the Styx configuration language. This crate provides low-level parsing primitives that other Styx crates build upon.

§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. Event-based parser for the Styx configuration language.

This crate provides a low-level lexer and event-based parser for Styx documents. It’s designed to be used by higher-level tools like styx-tree (document tree) and facet-styx (serde-like deserialization).

Re-exports§

pub use callback::ParseCallback;
pub use event::Event;
pub use event::ParseErrorKind;
pub use event::ScalarKind;
pub use event::Separator;
pub use parser::Parser;

Modules§

callback
Callback trait for event-based parsing.
event
Event types for the Styx event-based parser.
parser
Event-based parser for Styx.

Structs§

Lexer
A lexer that produces tokens from Styx source text.
Span
A span representing a range in the source text.
Token
A token with its kind, span, and source text slice.

Enums§

TokenKind
The kind of a token.