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 and here.

 

Literature

 

Watt & Brown, Chapter 5.

Exercises

 

Exercises for lecture 6 will be done from 8.15 till 10.00 before Lecture 7 on Wednesday the 2nd of April.

 

  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.