Skip to main content

Module node

Module node 

Source
Expand description

A parsed YAML document as a tree of nodes, each with the line and column it was written at.

YAML is parsed by serde-saphyr, YAML 1.2 with strict booleans: only true and false are booleans, so yes, no, on and off stay strings. Duplicate keys are errors; merge keys (<<: *base) are expanded. Typed config is then read from the tree (see super::de), so every diagnostic can point at the exact line of the key or value it’s about.

Structs§

Key
A map key and its line.
Node
A YAML value and where it was written (1-based; 0 when unknown).
SyntaxError
A YAML syntax error, with its line when known.

Enums§

Kind

Constants§

COMPLEX_KEY
The message for a key that’s a list or a map.

Functions§

parse
Parse a YAML document. An empty document is a null node.