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.

Parse Actions<br />

expr:<br />

;<br />

mexpr ((PLUS^|MINUS^) mexpr)*<br />

mexpr<br />

: atom (TIMES^ atom)*<br />

;<br />

atom: INT^<br />

| LPAREN! expr RPAREN!<br />

;<br />

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

Abstract Syntax Trees 19

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

Saved successfully!

Ooh no, something went wrong!