Skip to main content

dropped_grammar_features

Function dropped_grammar_features 

Source
pub fn dropped_grammar_features(
    expected: &Grammar,
    actual: &Grammar,
) -> Result<Vec<String>, GrammarLoweringError>
Expand description

The features of expected that actual does not carry, as readable details: the rule names and their order, the start rule, and every rule’s kind, definition and documentation.

§Errors

Returns a GrammarLoweringError when a rule definition cannot be normalized for comparison.