pub fn parse_gram(input: &str) -> Result<Vec<Pattern<Subject>>, ParseError>Expand description
Parse gram notation text into a collection of Pattern structures.
This is the foundational parser for gram notation. It returns all top-level elements, including any leading record (which appears as a bare pattern with properties but no identity, labels, or elements).
§Arguments
input- Gram notation text to parse
§Returns
Ok(Vec<Pattern<Subject>>)- Successfully parsed patternsErr(ParseError)- Parse error with location information