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
Rakudo (nqp-rx) regexes won't backtrack properly into capturing parentheses or subrules #1606
Comments
From @masak<masak> rakudo: say "aaaab" ~~ /a*b/; say "aaaab" ~~ /.*b/; say Just to be extra clear, all four of the above should print 'aaaab' And it's not specific for the quantifiers, either. This should print 'ab': <masak> rakudo: say "ab" ~~ / (ab|a) b / So there's something wrong with backtracking and capturing in general. This is really a bug in nqp-rx, but I'm submitting it as a rakudobug. |
From @masak<masak> rakudo: grammar G { regex TOP { <foo> a }; regex foo { a* } }; say ?G.parse("aaa") |
From [Unknown Contact. See original ticket]<masak> rakudo: grammar G { regex TOP { <foo> a }; regex foo { a* } }; say ?G.parse("aaa") |
@masak - Status changed from 'new' to 'open' |
From @pmichaudNow fixed in 9005478: pmichaud@plum:~/rakudo$ ./perl6 Pm |
From @moritzI've just unfudged a few tests for that in S05-mass/recursive.t, so I |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#73608 (status was 'resolved')
Searchable as RT73608$
The text was updated successfully, but these errors were encountered: