Perl 6 Perl 6 #43

Transforming parse tree to AST

Once we can parse a program's syntax, we convert it into a semantic representation called an "abstract syntax tree" (AST).

Parrot Compiler Toolkit provides a set of generic AST nodes:

Each node may have attributes and other PAST nodes as children.

Copyright © 2008 Patrick Michaud