Skip to content

Commit

Permalink
Detect and complain about missing pir::op signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 21, 2012
1 parent ed9292f commit 605574c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/QPerl6/Actions.pm
Expand Up @@ -3413,6 +3413,9 @@ class QPerl6::Actions is HLL::Actions {
nqp::die("pir::op forbidden in safe mode\n");
}
my $pirop := nqp::join(' ', nqp::split('__', ~$<op>));
unless nqp::index($pirop, ' ') > 0 {
nqp::die("pir::$pirop missing a signature");
}
my $past := QAST::VM.new( :pirop($pirop), :node($/) );
if $<args> {
for $<args>[0].ast.list {
Expand Down

0 comments on commit 605574c

Please sign in to comment.