Syntax Directed Translation
Syntax Directed Translation
Syntax Directed Translation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Syntax</strong> <strong>Directed</strong> Definitions (ASU Ch 5.1)<br />
• grammar + semantic rules<br />
• semantic rules<br />
– compute values of attributes associated with symbols in P<br />
– set up dependencies between attributes => evaluation order<br />
• synthesised attribute<br />
– value at parse tree node determined from attribute values at<br />
the children of the node (can be evaluated in bottom up traversal)<br />
• inherited attribute<br />
– value at parse tree node determined from attribute values at<br />
the parent and/or the left siblings of that node<br />
• annotated parse tree shows the values of attributes at each node<br />
2<br />
14/10/2014 DFR - CC - SDT