03.01.2015 Views

Abstract Syntax Trees The Abstract Syntax Tree (AST) - Polaris

Abstract Syntax Trees The Abstract Syntax Tree (AST) - Polaris

Abstract Syntax Trees The Abstract Syntax Tree (AST) - Polaris

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

if statement<br />

a<br />

l<br />

condition then-part<br />

relation<br />

statement list<br />

l relop r<br />

1 s(1)<br />

s(2)<br />

<<br />

assignment stmt<br />

op r<br />

+ 1 lhs rhs<br />

x l<br />

op r<br />

x + 1<br />

...<br />

Simple Code Generation<br />

(From Compilers. Principles, Techniques, and Tools by A. Aho, R.<br />

Sethi, and J. Ullman).<br />

3<br />

4

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

Saved successfully!

Ooh no, something went wrong!