Skip to content

Instantly share code, notes, and snippets.

@japhb
Created April 12, 2013 00:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save japhb/a2982ac96a6e25bea0ae to your computer and use it in GitHub Desktop.
Example of Rakudo AST output
$ perl6 --target=ast -e 'say "Hello"'
- QAST::CompUnit
- QAST::Block say \"Hello\"
- QAST::Stmts
- QAST::Op(call)
- QAST::Block
- QAST::Stmts
- QAST::Var(lexical GLOBALish :decl)
- QAST::Var(lexical EXPORT :decl)
- QAST::Var(lexical $?PACKAGE :decl)
- QAST::Var(lexical ::?PACKAGE :decl)
- QAST::Var(lexical $_ :decl)
- QAST::Var(lexical $/ :decl)
- QAST::Var(lexical $! :decl)
- QAST::Var(lexical $=pod :decl)
- QAST::Var(lexical !UNIT_MARKER :decl)
- QAST::VM
- QAST::Stmt
- QAST::Op(bind)
- QAST::Var(local ctxsave :decl)
- 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::Stmts
- QAST::WVal(Array)
- QAST::Stmts say \"Hello\"
- QAST::Stmt
- QAST::Want
- QAST::Op(call &say) say \"Hello\"
- QAST::Want Hello
- QAST::WVal(Str)
- Ss
- QAST::SVal(Hello)
- v
- QAST::Stmts
- QAST::Op(bind)
- QAST::Var(local sink_1 :decl)
- QAST::Op(call &say) say \"Hello\"
- QAST::Want Hello
- QAST::WVal(Str)
- Ss
- QAST::SVal(Hello)
- QAST::Op(if)
- QAST::Op(if)
- QAST::Op(isconcrete)
- QAST::Var(local sink_1)
- QAST::Op(can)
- QAST::Var(local sink_1)
- QAST::SVal(sink)
- QAST::Op(callmethod sink)
- QAST::Var(local sink_1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment