Skip to content

Commit

Permalink
Eliminate a couple of mentions of PAST from HLL::Compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 2, 2012
1 parent dd2cd29 commit 211d5b3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/HLL/Compiler.pm
Expand Up @@ -428,20 +428,14 @@ class HLL::Compiler {
method past($source, *%adverbs) {
my $ast := $source.ast();
self.panic("Unable to obtain ast from " ~ pir::typeof__SP($source))
unless $ast ~~ PAST::Node || $ast ~~ QAST::Node;
unless $ast ~~ QAST::Node;
$ast;
}

method post($source, *%adverbs) {
my $*PASTCOMPILER := pir::compreg__Ps('PAST');
if $source ~~ PAST::Node {
my $*PIRT := 0;
$*PASTCOMPILER.to_post($source, |%adverbs)
}
else {
my $*PIRT := 1;
QAST::Compiler.as_post($source)
}
my $*PIRT := 1;
QAST::Compiler.as_post($source)
}

method pirbegin() {
Expand Down

0 comments on commit 211d5b3

Please sign in to comment.