Skip to content
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

An alternation of literal strings doesn't backtrack properly in Rakudo #3055

Open
p6rt opened this issue Feb 21, 2013 · 3 comments
Open

An alternation of literal strings doesn't backtrack properly in Rakudo #3055

p6rt opened this issue Feb 21, 2013 · 3 comments
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented Feb 21, 2013

Migrated from rt.perl.org#116893 (status was 'open')

Searchable as RT116893$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Feb 21, 2013

From @masak

<TimToady> nr​: say "abcde" ~~ / | @​(<a b bc cde>)+»/
<p6eval> niecza v24-23-g0520c7c​: OUTPUT«「abcde」␤␤»
<p6eval> ..rakudo 9c59a1​: OUTPUT«「cde」␤␤»
<TimToady> wow
<masak> what's that » doing there?
<masak> word boundary, right?
<TimToady> nod
<TimToady> forcing backtracking
<TimToady> which n does but r doesn't for the literals
<masak> so... Niecza is right on the first one?
<TimToady> yes, because nothing committed to the current LTM inside the @​
* masak submits rakudobug

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 12, 2016

From @coke

On Thu Feb 21 08​:57​:24 2013, masak wrote​:

<TimToady> nr​: say "abcde" ~~ / | @​(<a b bc cde>)+»/
<p6eval> niecza v24-23-g0520c7c​: OUTPUT«「abcde」␤␤»
<p6eval> ..rakudo 9c59a1​: OUTPUT«「cde」␤␤»
<TimToady> wow
<masak> what's that » doing there?
<masak> word boundary, right?
<TimToady> nod
<TimToady> forcing backtracking
<TimToady> which n does but r doesn't for the literals
<masak> so... Niecza is right on the first one?
<TimToady> yes, because nothing committed to the current LTM inside the @​
* masak submits rakudobug

2016, behavior unchanged​:

10​:11 < [Coke]> m​: say "abcde" ~~ / | @​(<a b bc cde>)+»/
10​:11 <+camelia> rakudo-moar 1e5df4​: OUTPUT«「cde」␤»

--
Will "Coke" Coleda

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 12, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.