-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect lexical ambiguity due to regex overlap #4271
Comments
|
Blocked on #4295. We need a structured representation in order to translate to the |
Also consider non-regular expression tokens. We may need to add prec attributes to tokens as well then |
6 tasks
Also consider user list separators |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If two regex terminals overlap and have the same
prec(_)
value, their precedence in the lexer is flaky and dependent on set iteration order (see #4255).We should detect such ambiguities, either during every kompilation if it can be done cheaply, or with a dedicated
-Wregex-overlap
flag.The text was updated successfully, but these errors were encountered: