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

LTM alternation captures the wrong stuff when backtracking in Rakudo #3056

Closed
p6rt opened this issue Feb 21, 2013 · 7 comments
Closed

LTM alternation captures the wrong stuff when backtracking in Rakudo #3056

p6rt opened this issue Feb 21, 2013 · 7 comments
Labels
Bug JVM Related to Rakudo-JVM testcommitted

Comments

@p6rt
Copy link

p6rt commented Feb 21, 2013

Migrated from rt.perl.org#116895 (status was 'resolved')

Searchable as RT116895$

@p6rt
Copy link
Author

p6rt commented Feb 21, 2013

From @masak

<TimToady> nr​: say "abcde" ~~ / (a | b | bc | cde)+»/
<p6eval> rakudo 9c59a1​: OUTPUT«「abcde」␤ 0 => 「a」␤ 0 => 「bc」␤ 0 => 「b」␤
0 => 「cde」␤␤»
<p6eval> ..niecza v24-23-g0520c7c​: OUTPUT«「abcde」␤ 0 => 「a」␤ 0 => 「b」␤
0 => 「cde」␤␤»
<TimToady> ooh, another bug
<TimToady> backtrack isn't taking out the [bc] in rakudo
<TimToady> (which can't happen in a pure Cursor model because the info
should be attached only to the cursor that is thrown away in order to
backtrack)
* masak submits rakudobug
<FROGGS> masak​: can you assign it to me?
<masak> FROGGS​: I'll try.

@p6rt
Copy link
Author

p6rt commented Nov 11, 2015

From @usev6

Looks like this was fixed for Moar (because of jnthn++'s work for RT #​125285).

$ perl6-m -e 'say "abcde" ~~ / (a | b | bc | cde)+»/'
「abcde」
0 => 「a」
0 => 「b」
0 => 「cde」

I added a test (fudged 'todo' for JVM) to S05-match/capturing-contexts.t with commit Raku/roast@82d271359f.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 11, 2015

From @usev6

Looks like this was fixed for Moar (because of jnthn++'s work for RT #​125285).

$ perl6-m -e 'say "abcde" ~~ / (a | b | bc | cde)+»/'
「abcde」
0 => 「a」
0 => 「b」
0 => 「cde」

I added a test (fudged 'todo' for JVM) to S05-match/capturing-contexts.t with commit Raku/roast@82d271359f.

@p6rt
Copy link
Author

p6rt commented Nov 11, 2015

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 30, 2017

From @usev6

This works now on the JVM backend as well (test in S05-match/capturing-contexts.t is passing). Fixed with nqp commit Raku/nqp@f22b0b2d0e

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 30, 2017

From @usev6

This works now on the JVM backend as well (test in S05-match/capturing-contexts.t is passing). Fixed with nqp commit Raku/nqp@f22b0b2d0e

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Nov 30, 2017

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 30, 2017
@p6rt p6rt added Bug JVM Related to Rakudo-JVM testcommitted labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug JVM Related to Rakudo-JVM testcommitted
Projects
None yet
Development

No branches or pull requests

1 participant