TITLE ^

perl6.pir - A Perl 6 compiler.

Description ^

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'.

Functions ^

__onload()

Loads the PGE libraries needed for running the parser, and registers the "compile" subroutine as the "Perl6" compiler.

compile(STR code [, 'target' = target])>

Compile the Perl6 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.


parrot