NAME ^

POST::Compiler - Compiler for POST trees

DESCRIPTION ^

POST::Compiler defines a compiler that converts a POST tree into PIR or an Eval PMC (bytecode).

METHODS ^

code([str])

Get/set the code generated by this compiler.

pir_children(node)

Return generated PIR for node and all of its children.

pir(Any node)

Return generated pir for any POST::Node. Returns the generated pir of node's children.

pir(POST::Op node)

Return pir for an operation node.

pir(POST::Label node)

Generate a label.

pir(POST::Sub node)

Generate PIR for node, storing the result into the compiler's $!code attribute and returning any code needed to look up the sub.

AUTHOR ^

Patrick Michaud <pmichaud@pobox.com> is the author and maintainer. Please send patches and suggestions to the Parrot porters or Perl 6 compilers mailing lists.

HISTORY ^

2007-11-21 Significant refactor as part of Parrot Compiler Toolkit

COPYRIGHT ^

Copyright (C) 2006-2008, The Perl Foundation.


parrot