Python on Parrot Python on Parrot - under the hood #48

Abstract Syntax Tree (PAST)

Once we have a parse tree, we convert it to an abstract syntax tree.

An abstract syntax tree is a de-sugared form of the program code.

Language translators in Parrot are rapidly converging on a common abstract syntax tree representation, known as "PAST-pm".

Common AST allows leveraging code generation, interoperability.

Copyright © 2007 Patrick Michaud