Skip to main content

parse_grammar_surface

Function parse_grammar_surface 

Source
pub fn parse_grammar_surface(text: &str) -> Result<Grammar, GrammarSurfaceError>
Expand description

Parses meta-notation-derived grammar surface text into the grammar IR.

ยงErrors

Returns GrammarSurfaceError when the delimiter skeleton is malformed, surface nodes cannot be lowered, or non-terminal references are undefined.