Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Provide $*moreinput for the REPL.
  • Loading branch information
peschwa committed Mar 26, 2015
1 parent 91b292d commit d7b0597
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Perl6/Compiler.nqp
Expand Up @@ -46,6 +46,16 @@ class Perl6::Compiler is HLL::Compiler {
nqp::say(~$value);
}
}

method interactive(*%adverbs) {
my $*moreinput := sub ($cursor) {
my $more := nqp::readlineintfh(nqp::getstdin, '* ');
$cursor.orig($more);
$cursor.target($more);
}
my $super := nqp::findmethod(HLL::Compiler, 'interactive');
$super(self, |%adverbs);
}

method interactive_exception($ex) {
my $payload := nqp::getpayload($ex);
Expand Down

0 comments on commit d7b0597

Please sign in to comment.