-
-
Save timo/ac81c1ee775152202e23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
is_qast( | |
QAST::CompUnit.new( :hll<nqp>, | |
QAST::Block.new( | |
QAST::Var.new( :name<strloc>, :scope<local>, :decl<var>, :returns(str) ), | |
QAST::Var.new( :name<strref>, :scope<localref>, :decl<var> ), | |
QAST::Op.new( :op<bind>, | |
QAST::Var.new( :name<strref>, :scope<localref> ), | |
QAST::Var.new( :name<strloc>, :scope<localref> ) | |
), | |
QAST::Op.new( | |
:op<assign_s>, | |
QAST::Var.new( :name<strref>, :scope<local> ), | |
QAST::SVal.new( :value("hooray") ) | |
), | |
[...] | |
) | |
[...] | |
getregref_s r2(1), r0(0) | |
set r1(1), r2(1) | |
decont r2(2), r1(1) | |
const_s r3(1), lits(hooray) | |
assign_s r2(2), r3(1) | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment