Skip to main content

parse_text

Function parse_text 

Source
pub fn parse_text(text: &str) -> Result<Comprehension, TextParseError>
Expand description

Parse a YAML or JSON text block describing a comprehension into the algebra-layer AST.

Detection is leading-character based: {...} ⇒ JSON, otherwise YAML.