Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Book {
- has Str $.title ;
- has Int $.pages ;
- has Bool $.hard-back ;
- method gist { "$.title ($.pages pages)" }
- }
- sub MAIN( Str $title , Int $pages , Bool :$hard-back ) {
- my Book $b .= new: :$title :$pages :$hard-back ;
- say $b
- }
- ===========================
- perl6 --target=ast book.p6
- ===========================
- - QAST::CompUnit
- [pre_deserialize]
- - QAST::Stmt
- - QAST::Stmt
- - QAST::Op(loadbytecode)
- - QAST::VM
- [jvm]
- - QAST::SVal(ModuleLoader.class)
- [moar]
- - QAST::SVal(ModuleLoader.moarvm)
- - QAST::Op(callmethod load_module)
- - QAST::Op(gethllsym)
- - QAST::SVal(nqp)
- - QAST::SVal(ModuleLoader)
- - QAST::SVal(Perl6::ModuleLoader)
- - QAST::Op(forceouterctx)
- - QAST::BVal(9)
- - QAST::Op(callmethod load_setting)
- - QAST::Op(getcurhllsym)
- - QAST::SVal(ModuleLoader)
- - QAST::SVal(CORE)
- [post_deserialize]
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Method)
- - QAST::WVal(Code)
- - QAST::BVal(1)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Method)
- - QAST::WVal(Code)
- - QAST::BVal(2)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Method)
- - QAST::WVal(Code)
- - QAST::BVal(3)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Method)
- - QAST::WVal(Code)
- - QAST::BVal(4)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Submethod)
- - QAST::WVal(Code)
- - QAST::BVal(5)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Block)
- - QAST::WVal(Code)
- - QAST::BVal(6)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Sub)
- - QAST::WVal(Code)
- - QAST::BVal(7)
- - QAST::Stmts
- - QAST::Op(bind)
- - QAST::Var(attribute $!do)
- - QAST::WVal(Block)
- - QAST::WVal(Code)
- - QAST::BVal(8)
- - QAST::Op(bindcurhllsym)
- - QAST::SVal(GLOBAL)
- - QAST::WVal(GLOBAL)
- [load]
- - QAST::Op(call)
- - QAST::BVal(9)
- [children]
- - QAST::Block(:cuid(9)) class Book {\n has Str $.title ;\n has Int $.pag...
- │ - QAST::Var(local __args__ :decl(param))
- │ - QAST::Stmts class Book {\n has Str $.title ;\n has Int $.pag...
- │ - QAST::Op(call)
- │ - QAST::Block(:cuid(8) :blocktype(declaration_static))
- │ │ - QAST::Stmts class Book {\n has Str $.title ;\n has Int $.pag...
- │ │ - QAST::Var(lexical $¢ :decl(contvar))
- │ │ - QAST::Var(lexical $! :decl(contvar))
- │ │ - QAST::Var(lexical $/ :decl(contvar))
- │ │ - QAST::Var(lexical $_ :decl(contvar))
- │ │ - QAST::Var(lexical GLOBALish :decl(static))
- │ │ - QAST::Var(lexical EXPORT :decl(static))
- │ │ - QAST::Var(lexical $?PACKAGE :decl(static))
- │ │ - QAST::Var(lexical ::?PACKAGE :decl(static))
- │ │ - QAST::Var(lexical $=finish :decl(static))
- │ │ - QAST::Var(lexical Book :decl(static))
- │ │ - QAST::Block(:cuid(2) :blocktype(declaration_static))
- │ │ │ - QAST::Stmts Book {\n has Str $.title ;\n has Int $.pages ;\n...
- │ │ │ - QAST::Var(lexical %_ :decl(var))
- │ │ │ - QAST::Var(local self :decl(param))
- │ │ │ - QAST::Var+{QAST::SpecialArg}(local _ :decl(param) :named<1>)
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(attribute $!title)
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(local self)
- │ │ │ - QAST::WVal(Book)
- │ │ - QAST::Block(:cuid(3) :blocktype(declaration_static))
- │ │ │ - QAST::Stmts Book {\n has Str $.title ;\n has Int $.pages ;\n...
- │ │ │ - QAST::Var(local self :decl(param))
- │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<1>)
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(attribute $!pages)
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(local self)
- │ │ │ - QAST::WVal(Book)
- │ │ - QAST::Block(:cuid(4) :blocktype(declaration_static))
- │ │ │ - QAST::Stmts Book {\n has Str $.title ;\n has Int $.pages ;\n...
- │ │ │ - QAST::Var(local self :decl(param))
- │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<1>)
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(attribute $!hard-back)
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(local self)
- │ │ │ - QAST::WVal(Book)
- │ │ - QAST::Block(:cuid(5) :blocktype(declaration_static))
- │ │ │ - QAST::Stmts
- │ │ │ - QAST::Var(lexical %_ :decl(var))
- │ │ │ - QAST::Var(local self :decl(param))
- │ │ │ - QAST::Var(local @auto :decl(param))
- │ │ │ - QAST::Var(local %init :decl(param))
- │ │ │ - QAST::Var(local init :decl(var))
- │ │ │ - QAST::Stmts Book {\n has Str $.title ;\n has Int $.pages ;\n...
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(local init)
- │ │ │ - QAST::Op(getattr)
- │ │ │ - QAST::Var(local %init)
- │ │ │ - QAST::WVal(Map)
- │ │ │ - QAST::SVal($!storage)
- │ │ │ - QAST::Op(if)
- │ │ │ - QAST::Op(existskey)
- │ │ │ - QAST::Var(local init)
- │ │ │ - QAST::SVal(title)
- │ │ │ - QAST::Op(assign)
- │ │ │ - QAST::Op(getattr)
- │ │ │ - QAST::Var(local self)
- │ │ │ - QAST::WVal(Book)
- │ │ │ - QAST::SVal($!title)
- │ │ │ - QAST::Op(callmethod AT-KEY)
- │ │ │ - QAST::Var(local %init)
- │ │ │ - QAST::SVal(title)
- │ │ │ - QAST::Op(if)
- │ │ │ - QAST::Op(existskey)
- │ │ │ - QAST::Var(local init)
- │ │ │ - QAST::SVal(pages)
- │ │ │ - QAST::Op(assign)
- │ │ │ - QAST::Op(getattr)
- │ │ │ - QAST::Var(local self)
- │ │ │ - QAST::WVal(Book)
- │ │ │ - QAST::SVal($!pages)
- │ │ │ - QAST::Op(callmethod AT-KEY)
- │ │ │ - QAST::Var(local %init)
- │ │ │ - QAST::SVal(pages)
- │ │ │ - QAST::Op(if)
- │ │ │ - QAST::Op(existskey)
- │ │ │ - QAST::Var(local init)
- │ │ │ - QAST::SVal(hard-back)
- │ │ │ - QAST::Op(assign)
- │ │ │ - QAST::Op(getattr)
- │ │ │ - QAST::Var(local self)
- │ │ │ - QAST::WVal(Book)
- │ │ │ - QAST::SVal($!hard-back)
- │ │ │ - QAST::Op(callmethod AT-KEY)
- │ │ │ - QAST::Var(local %init)
- │ │ │ - QAST::SVal(hard-back)
- │ │ │ - QAST::Var(local self)
- │ │ - QAST::Stmt
- │ │ - QAST::Block(:cuid(7) :blocktype(declaration_static)) <wanted> {\n my Book $b .= new: :$title :$pages :$hard-b...
- │ │ │ - QAST::Stmts
- │ │ │ - QAST::Var(lexical $b :decl(contvar))
- │ │ │ - QAST::Var(lexical $¢ :decl(contvar))
- │ │ │ - QAST::Var(lexical $! :decl(contvar))
- │ │ │ - QAST::Var(lexical $/ :decl(contvar))
- │ │ │ - QAST::Var(lexical $_ :decl(contvar))
- │ │ │ - QAST::Var(lexical $title :decl(var))
- │ │ │ - QAST::Var(lexical $pages :decl(var))
- │ │ │ - QAST::Var(lexical $hard-back :decl(var))
- │ │ │ - QAST::Var(local __lowered_param__3 :decl(param))
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(local __lowered_param__3)
- │ │ │ - QAST::Op(hllize)
- │ │ │ - QAST::Var(local __lowered_param__3)
- │ │ │ - QAST::ParamTypeCheck
- │ │ │ - QAST::Op(istype)
- │ │ │ - QAST::Var(local __lowered_param__3)
- │ │ │ - QAST::WVal(Str)
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(lexical $title) <wanted>
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(local __lowered_param__3)
- │ │ │ - QAST::Var(local __lowered_param__4 :decl(param))
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(local __lowered_param__4)
- │ │ │ - QAST::Op(hllize)
- │ │ │ - QAST::Var(local __lowered_param__4)
- │ │ │ - QAST::ParamTypeCheck
- │ │ │ - QAST::Op(istype)
- │ │ │ - QAST::Var(local __lowered_param__4)
- │ │ │ - QAST::WVal(Int)
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(lexical $pages) <wanted>
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(local __lowered_param__4)
- │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<hard-back>)
- │ │ │ [default]
- │ │ │ - QAST::WVal(Bool)
- │ │ │ [children]
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(local __lowered_param__5)
- │ │ │ - QAST::Op(hllize)
- │ │ │ - QAST::Var(local __lowered_param__5)
- │ │ │ - QAST::ParamTypeCheck
- │ │ │ - QAST::Op(istype)
- │ │ │ - QAST::Var(local __lowered_param__5)
- │ │ │ - QAST::WVal(Bool)
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(lexical $hard-back) <wanted>
- │ │ │ - QAST::Op(decont)
- │ │ │ - QAST::Var(local __lowered_param__5)
- │ │ │ - QAST::Var(lexical $*DISPATCHER :decl(var))
- │ │ │ - QAST::Op(takedispatcher)
- │ │ │ - QAST::SVal($*DISPATCHER)
- │ │ │ - QAST::Op(p6typecheckrv)
- │ │ │ - QAST::Op(handlepayload)
- │ │ │ - QAST::Op(p6decontrv)
- │ │ │ - QAST::WVal(Sub)
- │ │ │ - QAST::Stmts <wanted> \n my Book $b .= new: :$title :$pages :$hard-ba...
- │ │ │ - QAST::Stmt <sunk> my Book $b .= new: :$title :$pages :$hard-back
- │ │ │ - QAST::Op(callmethod dispatch:<.=>) <wanted nosink> :$title :$pages :$hard-back
- │ │ │ - QAST::Var(lexical $b) <wanted sinkok> $b
- │ │ │ - QAST::Want <wanted>
- │ │ │ - QAST::WVal(Str)
- │ │ │ - Ss
- │ │ │ - QAST::SVal(new)
- │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<title>) <wanted> $title
- │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<pages>) <wanted> $pages
- │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<hard-back>) <wanted> $hard-back
- │ │ │ - QAST::Stmt <wanted final> say $b\n
- │ │ │ - QAST::Want <wanted>
- │ │ │ - QAST::Op(call &say) <wanted> say $b\n
- │ │ │ - QAST::Var(lexical $b) <wanted> $b
- │ │ │ - v
- │ │ │ - QAST::Op(p6sink)
- │ │ │ - QAST::Op(call &say) <wanted> say $b\n
- │ │ │ - QAST::Var(lexical $b) <wanted> $b
- │ │ │ - RETURN
- │ │ │ - QAST::Op(lastexpayload)
- │ │ │ - QAST::WVal(Sub)
- │ │ │ - QAST::WVal(Nil)
- │ │ - QAST::Var(lexical &MAIN :decl(static))
- │ │ [value]
- │ │ - MAIN
- │ │ - QAST::Var(lexical $=pod :decl(static))
- │ │ [value]
- │ │ -
- │ │ - QAST::Var(lexical !UNIT_MARKER :decl(static))
- │ │ - QAST::VM
- │ │ [jvm]
- │ │ - QAST::Op(null)
- │ │ [moar]
- │ │ - QAST::Op(null)
- │ │ [loadlibs]
- │ │ - nqp_group nqp_ops perl6_ops bit_ops math_ops trans_ops io_ops obscure_ops os file sys_ops nqp_bigint_ops nqp_dyncall_ops
- │ │ - QAST::Stmts
- │ │ - QAST::Op(bind)
- │ │ - QAST::Var(local ctxsave :decl(var))
- │ │ - QAST::Var(contextual $*CTXSAVE)
- │ │ - QAST::Op(unless)
- │ │ - QAST::Op(isnull)
- │ │ - QAST::Var(local ctxsave)
- │ │ - QAST::Op(if)
- │ │ - QAST::Op(can)
- │ │ - QAST::Var(local ctxsave)
- │ │ - QAST::SVal(ctxsave)
- │ │ - QAST::Op(callmethod ctxsave)
- │ │ - QAST::Var(local ctxsave)
- │ │ - QAST::Op(call &MAIN_HELPER)
- │ │ - QAST::Stmts
- │ │ - QAST::WVal(Array)
- │ │ - QAST::Stmts <sunk> class Book {\n has Str $.title ;\n has Int $.pag...
- │ │ - QAST::Stmt <sunk> class Book {\n has Str $.title ;\n has Int $.pag...
- │ │ - QAST::Stmts <sunk>
- │ │ - QAST::Block(:cuid(6) :blocktype(immediate)) <sunk> {\n has Str $.title ;\n has Int $.pages ;\n has...
- │ │ │ - QAST::Stmts
- │ │ │ - QAST::Var(lexical $?PACKAGE :decl(static))
- │ │ │ - QAST::Var(lexical ::?PACKAGE :decl(static))
- │ │ │ - QAST::Var(lexical $?CLASS :decl(static))
- │ │ │ - QAST::Var(lexical ::?CLASS :decl(static))
- │ │ │ - QAST::Var(lexical $_ :decl(var))
- │ │ │ - QAST::Op(bind)
- │ │ │ - QAST::Var(lexical $_) <wanted>
- │ │ │ - QAST::Op(getlexouter) <wanted>
- │ │ │ - QAST::SVal($_)
- │ │ │ - QAST::Block(:cuid(1) :blocktype(declaration_static)) <wanted> { \"$.title ($.pages pages)\" }
- │ │ │ │ - QAST::Stmts
- │ │ │ │ - QAST::Var(lexical self :decl(var))
- │ │ │ │ - QAST::Var(lexical $¢ :decl(contvar))
- │ │ │ │ - QAST::Var(lexical $! :decl(contvar))
- │ │ │ │ - QAST::Var(lexical $/ :decl(contvar))
- │ │ │ │ - QAST::Var(lexical $_ :decl(contvar))
- │ │ │ │ - QAST::Var(lexical %_ :decl(var))
- │ │ │ │ - QAST::Var(local __lowered_param__1 :decl(param))
- │ │ │ │ - QAST::Op(bind)
- │ │ │ │ - QAST::Var(local __lowered_param__1)
- │ │ │ │ - QAST::Op(hllize)
- │ │ │ │ - QAST::Var(local __lowered_param__1)
- │ │ │ │ - QAST::ParamTypeCheck
- │ │ │ │ - QAST::Op(istype)
- │ │ │ │ - QAST::Var(local __lowered_param__1)
- │ │ │ │ - QAST::WVal(Book)
- │ │ │ │ - QAST::Op(bind)
- │ │ │ │ - QAST::Var(lexical self)
- │ │ │ │ - QAST::Op(decont)
- │ │ │ │ - QAST::Var(local __lowered_param__1)
- │ │ │ │ - QAST::Var+{QAST::SpecialArg}(:named<1>)
- │ │ │ │ - QAST::Op(bind)
- │ │ │ │ - QAST::Var(local __lowered_param__2)
- │ │ │ │ - QAST::Op(p6bindattrinvres)
- │ │ │ │ - QAST::Op(create)
- │ │ │ │ - QAST::WVal(Hash)
- │ │ │ │ - QAST::WVal(Map)
- │ │ │ │ - QAST::SVal($!storage)
- │ │ │ │ - QAST::Var(local __lowered_param__2)
- │ │ │ │ - QAST::Op(bind)
- │ │ │ │ - QAST::Var(lexical %_)
- │ │ │ │ - QAST::Op(decont)
- │ │ │ │ - QAST::Var(local __lowered_param__2)
- │ │ │ │ - QAST::Var(lexical $*DISPATCHER :decl(static))
- │ │ │ │ - QAST::Op(takedispatcher)
- │ │ │ │ - QAST::SVal($*DISPATCHER)
- │ │ │ │ - QAST::Op(p6typecheckrv)
- │ │ │ │ - QAST::Op(handlepayload)
- │ │ │ │ - QAST::Op(p6decontrv)
- │ │ │ │ - QAST::WVal(Method)
- │ │ │ │ - QAST::Stmts <wanted> \"$.title ($.pages pages)\"
- │ │ │ │ - QAST::Stmt <wanted final> \"$.title ($.pages pages)\"
- │ │ │ │ - QAST::Want <wanted>
- │ │ │ │ - QAST::Op(call &infix:<~>) <wanted> $.title ($.pages pages)
- │ │ │ │ - QAST::Op(call &infix:<~>) <wanted>
- │ │ │ │ - QAST::Op(call &infix:<~>) <wanted>
- │ │ │ │ - QAST::Op(callmethod Stringy) <wanted>
- │ │ │ │ - QAST::Op(callmethod item) <wanted>
- │ │ │ │ - QAST::Op(callmethod title) <wanted>
- │ │ │ │ - QAST::Var(lexical self) <wanted>
- │ │ │ │ - QAST::Want
- │ │ │ │ - QAST::WVal(Str)
- │ │ │ │ - Ss
- │ │ │ │ - QAST::SVal( ()
- │ │ │ │ - QAST::Op(callmethod Stringy)
- │ │ │ │ - QAST::Op(callmethod item) <wanted>
- │ │ │ │ - QAST::Op(callmethod pages) <wanted>
- │ │ │ │ - QAST::Var(lexical self) <wanted>
- │ │ │ │ - QAST::Want
- │ │ │ │ - QAST::WVal(Str)
- │ │ │ │ - Ss
- │ │ │ │ - QAST::SVal( pages))
- │ │ │ │ - v
- │ │ │ │ - QAST::Op(p6sink)
- │ │ │ │ - QAST::Op(call &infix:<~>) <wanted> $.title ($.pages pages)
- │ │ │ │ - QAST::Op(call &infix:<~>) <wanted>
- │ │ │ │ - QAST::Op(call &infix:<~>) <wanted>
- │ │ │ │ - QAST::Op(callmethod Stringy) <wanted>
- │ │ │ │ - QAST::Op(callmethod item) <wanted>
- │ │ │ │ - QAST::Op(callmethod title) <wanted>
- │ │ │ │ - QAST::Var(lexical self) <wanted>
- │ │ │ │ - QAST::Want
- │ │ │ │ - QAST::WVal(Str)
- │ │ │ │ - Ss
- │ │ │ │ - QAST::SVal( ()
- │ │ │ │ - QAST::Op(callmethod Stringy)
- │ │ │ │ - QAST::Op(callmethod item) <wanted>
- │ │ │ │ - QAST::Op(callmethod pages) <wanted>
- │ │ │ │ - QAST::Var(lexical self) <wanted>
- │ │ │ │ - QAST::Want
- │ │ │ │ - QAST::WVal(Str)
- │ │ │ │ - Ss
- │ │ │ │ - QAST::SVal( pages))
- │ │ │ │ - RETURN
- │ │ │ │ - QAST::Op(lastexpayload)
- │ │ │ │ - QAST::WVal(Method)
- │ │ │ │ - QAST::WVal(Nil)
- │ │ │ - QAST::Stmts <sunk> \n has Str $.title ;\n has Int $.pages ;\n has ...
- │ │ │ - QAST::Stmt <sunk> has Str $.title
- │ │ │ - QAST::WVal(Nil)
- │ │ │ - QAST::Stmt <sunk> has Int $.pages
- │ │ │ - QAST::WVal(Nil)
- │ │ │ - QAST::Stmt <sunk> has Bool $.hard-back
- │ │ │ - QAST::WVal(Nil)
- │ │ │ - QAST::Want <sunk final> method gist { \"$.title ($.pages pages)\" }\n
- │ │ │ - QAST::Op(p6capturelex)
- │ │ │ - QAST::Op(callmethod clone)
- │ │ │ - QAST::WVal(Method :cuid(1))
- │ │ │ - v
- │ │ │ - QAST::Op(null)
- │ │ - QAST::WVal(Book)
- │ │ - QAST::Want <sunk final> sub MAIN( Str $title , Int $pages , Bool :$hard-ba...
- │ │ - QAST::Op(p6capturelex)
- │ │ - QAST::Op(callmethod clone)
- │ │ - QAST::WVal(Sub :cuid(7))
- │ │ - v
- │ │ - QAST::Op(null)
- │ │ - QAST::WVal(Nil)
Add Comment
Please, Sign In to add comment