Skip to main content

parse_cst

Function parse_cst 

Source
pub fn parse_cst(source: &Source) -> Result<Vec<Node>, YamlError>
Expand description

Parses a source buffer into a lossless CST node arena.

ยงErrors

Returns an error when the source contains YAML syntax the parser cannot accept or when parser events cannot be produced from the CST.