Skip to content

WarblreEquiv: don't generate a Union with CdEmpty for each Class Ranges - #37

Merged
Aurele-Barriere merged 1 commit into
mainfrom
aurele/simplify-warblre-equiv
Jun 29, 2026
Merged

WarblreEquiv: don't generate a Union with CdEmpty for each Class Ranges#37
Aurele-Barriere merged 1 commit into
mainfrom
aurele/simplify-warblre-equiv

Conversation

@Aurele-Barriere

Copy link
Copy Markdown
Collaborator

Currently, when translating from Warblre to Linden, each Character Class Range (in between []) is translated to some Unions.
Because this is implemented as a fold on the list of elements in the Class Range, in the final case, the Unions contain CdEmpty.

This change detects when the remaining part of the list would be translated to CdEmpty, and removes this useless branch.

@Aurele-Barriere
Aurele-Barriere merged commit 19dfd2b into main Jun 29, 2026
2 checks passed
@Aurele-Barriere
Aurele-Barriere deleted the aurele/simplify-warblre-equiv branch June 29, 2026 13:40
@Aurele-Barriere
Aurele-Barriere restored the aurele/simplify-warblre-equiv branch June 29, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant