Programming Languages and Compilers

 

Lecture 6

 

In this lecture we will look at the middle part of the compiler, the phase called Contextual Analysis also sometimes somewhat misleadingly called the Semantic Analysis phase.

 

The slides for this lecture can be found here.

 

Literature

 

Watt & Brown, Chapter 5.

Exercises

 

Exercises for lecture 6 will be done from 12.30 till 14.15 before Lecture 7 on Wednesday the 4th of March.

 

  1. Do Watt & Brown 5.2 on page 170.
  2. Do Watt & Brown 5.3 on page 170.
  3. Do Watt & Brown 5.4 on page 170.
  4. Do Watt & Brown 5.7 on page 171.
  5. Do Watt & Brown 5.9 on page 172.
  6. Do Watt & Brown 5.10 on page 172.
  7. Do a code walk through of the Triangle Contextual Analyzer in the Triangle Implementation.