Skip to content

Instantly share code, notes, and snippets.

@timo
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/ac81c1ee775152202e23 to your computer and use it in GitHub Desktop.
Save timo/ac81c1ee775152202e23 to your computer and use it in GitHub Desktop.
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