Skip to content

Commit

Permalink
Add postprocessor invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 28, 2012
1 parent 99f6013 commit 6fcac2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Perl6/Actions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5686,8 +5686,18 @@ class Perl6::QActions is HLL::Actions does STDActions {
for @asts {
$past := QAST::Op.new( :op('call'), :name('&infix:<~>'), $past, $_ );
}

if nqp::can($/.CURSOR, 'postprocessor') {
my $pp := $/.CURSOR.postprocessor;
$past := self."postprocess_$pp"($past);
}

make $past;
}

method postprocess_null($past) {
$past
}

method escape:sym<\\>($/) { make $<item>.ast; }
method backslash:sym<qq>($/) { make $<quote>.ast; }
Expand Down

0 comments on commit 6fcac2e

Please sign in to comment.