grammatica.grammar.group.And.simplify#
- grammar.group.And.simplify()[source]#
Simplify the grammar.
Attempts to reduce redundancy, remove empty subexpressions, and optimize the grammar.
Note
The resulting grammar and its parts are copies, and the original grammar is not modified.
- Returns:
Grammar | None – Simplified expression, or None if resolved to empty.