pest_meta

Function parse_and_optimize

Source
pub fn parse_and_optimize(
    grammar: &str,
) -> Result<(Vec<&'_ str>, Vec<OptimizedRule>), Vec<Error<Rule>>>
Expand description

Parses, validates, processes and optimizes the provided grammar.