Skip to main content

compile_feature_grammar

Function compile_feature_grammar 

Source
pub fn compile_feature_grammar(
    grammar: &Grammar,
    resolve_grammar: Option<GrammarResolver<'_>>,
    options: FeatureParseOptions,
) -> Result<FeatureGrammarParser, GrammarRuntimeError>
Expand description

Compiles grammar for the native executor. resolve_grammar(name) returns the grammar an import or an embedded language names; options are the defaults of every parse.

ยงErrors

A GrammarRuntimeError when an import, a macro, a parameterized rule, an operation, a mode, a Unicode property or an embedded language does not load; its reason names which.