Expand description
§styx-parse
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:
…along with corporate sponsors:
…without whom this work could not exist.
§License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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§
- Token
Kind - The kind of a token.