17.01.2015 Views

Compiler

Compiler

Compiler

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

External Form<br />

• Could produce pre-fix representation<br />

• We will produce an infix representation<br />

that fully-parenthesizes source expression<br />

i.e., a pretty printer<br />

• We exploit AST visitor structure<br />

Implement pretty() function in each node<br />

<strong>Compiler</strong><br />

Abstract Syntax Trees 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!