Programming Languages and Compilers WS 2013/14 - Slide 303

Objectives:
Illustrate comparison of concrete and abstract syntax
In the lecture:
- Repeat concepts of "GdP" (slide GdP-2.5): Grammar expresses operator precedences and associativity.
- The derivation tree is constructed by the parser - not necessarily stored as a data structure.
- Chain productions have only one non-terminal symbol on their right-hand side.
Suggested reading:
Kastens / Übersetzerbau, Section 4.1
Suggested reading:
slide GdP-2.5
Questions:
- How does a grammar express operator precedences and associativity?
- What is the purpose of the chain productions in this example.
- What other purposes can chain productions serve?
©2009 by Prof. Dr. Uwe Kastens
Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 08.11.2013