pub fn import_ebnf(text: &str) -> Result<Grammar, GrammarImportError>Expand description
Parses Extended Backus-Naur Form text into the grammar IR.
The parser accepts the ISO-style name = expression ; spelling used by the
issue fixtures and the ::= spelling accepted by the upstream ebnf crate.
ยงErrors
Returns GrammarImportError when the EBNF text cannot be parsed, when a
parsed construct cannot be represented, or when a non-terminal reference does
not resolve to a rule in the imported grammar.