pub fn canonical_rule_definition(
rule: &GrammarRule,
) -> Result<String, GrammarRoundTripError>Expand description
The meaning-aware definition of a rule.
Every set of single characters is spelled as one unordered choice first: a
character class, a choice of its ranges and an ordered choice of them all
consume the same one character. Mirrors the JavaScript
canonicalRuleDefinition.
ยงErrors
A GrammarRoundTripError when the rule does not normalize.