pub fn deserialize_grammar(source: &str) -> Result<Grammar, GrammarImportError>Expand description
Reads a document serialize_grammar (or serializeGrammar of
js/src/grammar.js) wrote.
ยงErrors
Returns a GrammarImportError when the text is not JSON, is not a
schema version 1 grammar document, names a rule twice, holds an
expression or operation this runtime does not know, or has no start rule.