Skip to main content

parse_yaml_report

Function parse_yaml_report 

Source
pub fn parse_yaml_report(input: &str) -> YamlParseReport
Expand description

Parse prototype YAML tree structure and include diagnostics on failure.

Diagnostics flow through the structural [super::validator::validate_yaml] pass, which composes per-cluster check_* functions covering directive ordering, structural shape (unterminated flow, trailing content, invalid keys, indent anomalies, block-scalar header, etc.), and lex-level checks like LEX_INVALID_DOUBLE_QUOTED_ESCAPE.

The returned tree, when present, comes from the streaming scanner and builder.