-
Notifications
You must be signed in to change notification settings - Fork 77
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
two regular expressions in the same comprehension breaks #101
Comments
This works now:
|
This reproduces the bug:
|
This does not have the bug, even though it should be functionality equivalent (replaced
|
@menego that gives you a workaround for today, and we have an hypothesis for the cause of the bug: an buggy interaction between the backtracking behavior of the |
Thank you very much, always super responsive :-) |
simplified. |
another delta gives some insight (replace implicit group by explicit group):
gives:
|
Flip the conditional and change the match:
still produces:
means that the difference between |
Ok, this is a complex issue. The difference is still made by replacing The trouble with fixing this issue is that the code around So this requires some further study. |
this is still an issue. |
See #1900 for progress; that fix is not correct yet. |
In the code below Rascal complains about a redeclared variable n, but only if the second regular expression is there (
/rascal/ := f
). A nested comprehension for the same computation works nicely.The text was updated successfully, but these errors were encountered: