Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add to QAST::VM so we can handle pir::const::foo.
  • Loading branch information
jnthn committed Jul 21, 2012
1 parent 876c9d5 commit 818b756
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/QAST/Compiler.nqp
Expand Up @@ -553,6 +553,12 @@ class QAST::Compiler is HLL::Compiler {
}
return $ops;
}
elsif $node.supports('pirconst') {
my $ops := self.post_new('Ops');
my $name := $node.alternative('pirconst');
$ops.result('.' ~ $name);
return $ops;
}
elsif $node.supports('loadlibs') {
$*BLOCK.add_loadlibs($node.alternative('loadlibs'));
self.post_new('Ops');
Expand Down Expand Up @@ -809,6 +815,9 @@ class QAST::Compiler is HLL::Compiler {
|| nqp::substr($inferee, 0, 1) eq '"' {
"s"
}
elsif nqp::substr($inferee, 0, 1) eq '.' {
"P"
}
elsif nqp::index($inferee, ".", 0) > 0 {
"n"
}
Expand Down

0 comments on commit 818b756

Please sign in to comment.