Compiler Lecture 2
Compiler Lecture 2
Errors
(from last lecture) The compiler:-
• must generate correct code.
• must recognise errors.
• analyses and synthesises.
In this lecture:
more details about the compiler’s structure.
expression - term
* *
Reading: Aho2, Sections 1.2, 1.3; Aho1, pp. 1-24; Hunter, pp. 1-15 (try the
exercises); Grune [rest of Chapter 1 up to Section 1.8] (try the exercises);
Cooper & Torczon (1st edition), Sections 1.4, 1.5.
CSE 359 - Compiler Masud Ibn Afjal, CSE, HSTU 15
Design