Skip to content

error reporting for char class expansion#996

Merged
lsf37 merged 5 commits intomasterfrom
prim
Jan 1, 2023
Merged

error reporting for char class expansion#996
lsf37 merged 5 commits intomasterfrom
prim

Conversation

@lsf37
Copy link
Member

@lsf37 lsf37 commented Jan 1, 2023

Because we allow macros in the syntax for char class contents, we can get arbitrary regular expressions inside, not just char class content expressions.

This commit turns the previous "cannot happen" check for such a case into proper error reporting.

Fixes #888 and #939

@lsf37 lsf37 self-assigned this Jan 1, 2023
@lsf37 lsf37 added the bug Not working as intended label Jan 1, 2023
@lsf37 lsf37 added this to the 1.9.0 milestone Jan 1, 2023
@lsf37 lsf37 linked an issue Jan 1, 2023 that may be closed by this pull request
@lsf37 lsf37 force-pushed the prim branch 2 times, most recently from 8436f31 to 7a5a2dd Compare January 1, 2023 22:12
lsf37 added 4 commits January 2, 2023 09:22
Because we allow macros in the syntax for char class contents, we can
get arbitrary regular expressions inside, not just char class content
expressions.

This commit turns the previous "cannot happen" check for such a case
into proper error reporting.

Fixes #888 and #939
@lsf37 lsf37 merged commit f4f5fe3 into master Jan 1, 2023
@lsf37 lsf37 deleted the prim branch January 1, 2023 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected exception encountered. Not normalised type = CHAR Unexpected exception encountered in JFlex: Not normalised type = STAR

1 participant