Expand description
rlsp-yaml-parser — a spec-faithful YAML 1.2 parser.
This crate implements the full YAML 1.2 grammar by transliterating each of the 211 formal productions from the spec into a parser combinator function. Comments and spans are first-class data.
Re-exports§
pub use event::parse_events;pub use loader::load;pub use stream::tokenize;
Modules§
- block
- YAML 1.2 §8 block style productions [162]–[201].
- chars
- YAML 1.2 §5 character productions [1]–[62] and plain-scalar character productions [125]–[128], [57]–[60].
- combinator
- emitter
- YAML emitter — converts AST
Document<Span>values back to YAML text. - encoding
- event
- Token-to-event conversion layer.
- flow
- YAML 1.2 §7 flow style productions [104]–[161].
- loader
- Event-to-AST loader.
- node
- YAML AST node types.
- pos
- schema
- YAML schema resolution — tag resolution and scalar type inference.
- stream
- YAML 1.2 §9 document stream productions [202]–[211].
- structure
- YAML 1.2 §6 structural productions [63]–[103].
- token