Created
January 8, 2017 13:05
redo fix in grep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !! Seq.new(class :: does Grepper { | |
# method pull-one() is raw { | |
# nqp::stmts( | |
# nqp::until( | |
# nqp::eqaddr(($_ := $!iter.pull-one),IterationEnd) | |
# || nqp::stmts( | |
# (my int $redo = 1), | |
# nqp::while( | |
# $redo, | |
# nqp::stmts( | |
# ($redo = 0), | |
# (my $result = nqp::handle( | |
# $!test($_), | |
# 'LAST', ($_ := IterationEnd), | |
# 'REDO', ($redo = 1) | |
# )) | |
# ) | |
# ), | |
# $result | |
# ), | |
# nqp::null | |
# ), | |
# $_ | |
# ) | |
# } | |
# }.new(self, $test)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment