parrotcode: A Perl 6 compiler. | |
Contents | Language Implementations | Perl6 |
perl6.pir - A Perl 6 compiler.
This is the base file for the Perl 6 compiler.
This file includes the parsing and grammar rules from the src/ directory, loads the relevant PGE libraries, and registers the compiler under the name 'Perl6'.
__onload()
compile(STR code [, 'target' =
target])>code
.
The target
named parameter allows the caller to specify the degree of compilation to be performed; a value of parse
returns the parse tree,
PAST
returns the abstract syntax tree,
PIR
returns the generated PIR code,
and other values return the compiled code as a PMC.
|