17.01.2015 Views

S - Intranet - Department of Computer Science: Login

S - Intranet - Department of Computer Science: Login

S - Intranet - Department of Computer Science: Login

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Syntax Tree Classes for Prog<br />

For each non-terminal in the grammar, SableCC generates an<br />

abstract class, for example:<br />

abstract class PProg extends Node {}<br />

where Node is a pre-defined class <strong>of</strong> syntax tree nodes which<br />

provides some general functionality.<br />

Similarly we get abstract classes PStm and PStmlist.<br />

The names <strong>of</strong> these classes are systematically generated from<br />

the names <strong>of</strong> the non-terminals.<br />

70

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

Saved successfully!

Ooh no, something went wrong!