Activating the compiler
In fact, one can get the parse tree directly from the perl6 compiler:
.local pmc perl6, match perl6 = compreg 'Perl6' ## get the compiler match = perl6(code, 'target'=>'parse') ## return a parse tree
Or from the command line:
parrot perl6.pbc --target=parse hello.p6
There are also --target=PAST, --target=POST, and --target=PIR options.