Created
January 8, 2017 13:05
-
-
Save lizmat/819e753b785d3ca7db4b884beac36f89 to your computer and use it in GitHub Desktop.
redo fix in grep
This file contains 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