Programming Languages and Compilers

 

Lecture 8

 

In this lecture we will look big more at programming language design, in particular we will discuss expressions, assignment statements, control structures and subprograms.

 

The slides for this lecture can be found here.

 

Literature

 

Sebesta, chapter 7, chapter 8 and chapter 9.

 

Exercises

 

Exercises for lecture 8 will be done from 12.30 till 14.15 before Lecture 9 on Tuesday the 23rd of March. 

 

The following exercises are best done as group discussions:

 

  1. Sebesta chapter 7, p 315, exercises 3 (discuss Java, SML, C/C++),4, 5 (e.g. in SML) and 6 (e.g. in SML),
  2. Sebesta chapter 8, p 349, exercises 1, 3 and 8
  3. Sebesta chapter 9, p 394-395, exercises 1, 4 and 7

 

You should limit the discussion to about 5 minutes per question.

 

The following exercises you may prefer to do on your own or in pairs and discuss the outcome with your group:

 

  1. Sebasta chapter 7, p 315-317, exercises 9,13, 19
  2. Sebesta chapter 7, p 317, programming exercises 1 and 2
  3. Sebesta chapter 8, p 350-351, programming exercises 1.c and 5
  4. Sebesta chapter 9, p 395, exercise 5