Compiler I WS 2001/2002 - Slide 39
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?
©2001 by Prof. Dr. Uwe Kastens
Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 10.04.2006