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.

ANTLR Rule Rewriting<br />

• More powerfull and flexible than directives<br />

Supports new node types (imaginary tokens)<br />

compilationUnit :<br />

packageDefinition importDefinition* typeDefinition*<br />

-> ^(UNIT packageDefinition importDefinition* typeDefinition*)<br />

;<br />

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

Abstract Syntax Trees 21

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

Saved successfully!

Ooh no, something went wrong!