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
Regex engine doesn't publish match variables early enough in some cases in Rakudo #2662
Comments
From @masak<masak> nom: grammar G { regex TOP { (foo) <.panic: "!$0!"> }; method |
From @masak<TimToady> rn: say 1001110011 ~~ /^ (.+) $0+ @([\ |
@masak - Status changed from 'new' to 'open' |
From @usev6As a status update: The example from the original post still does not work: $ perl6-m -e 'grammar G { regex TOP { (foo) <.panic: "!$0!"> }; method panic($m) { die $m } }; G.parse("foo")' The first example from the added irclog gives the expected result now (the same, niecza gave): $ perl6-m -e 'say 1001110011 ~~ /^ (.+) $0+ @([\~] $0.comb)? $ /' |
1 similar comment
From @usev6As a status update: The example from the original post still does not work: $ perl6-m -e 'grammar G { regex TOP { (foo) <.panic: "!$0!"> }; method panic($m) { die $m } }; G.parse("foo")' The first example from the added irclog gives the expected result now (the same, niecza gave): $ perl6-m -e 'say 1001110011 ~~ /^ (.+) $0+ @([\~] $0.comb)? $ /' |
From @usev6On Thu Nov 12 11:49:18 2015, bartolin@gmx.de wrote:
Oops, I overlooked the warning! So, the problem seems to be still there. |
1 similar comment
From @usev6On Thu Nov 12 11:49:18 2015, bartolin@gmx.de wrote:
Oops, I overlooked the warning! So, the problem seems to be still there. |
Migrated from rt.perl.org#111518 (status was 'open')
Searchable as RT111518$
The text was updated successfully, but these errors were encountered: