Institutt for Informatikk
Universitetet i Bergen
INF 225 - Innføring i Programoversettelse - H04


Voluntary Exercise Set 5 (Group meeting 04.10.2004)

  1. Exercise 4.21 on page 192 of the text.

  2. This exercise is a variant of the programming exercise 4.40 (a) on page 194 of the text. Here, you are asked to give only pseudo code for the procedures error, exp, term, and factor of the recursive-descent calculator program given in Figure 4.1 (pages 148-149). Your pseudo code should implement panic mode error recovery as outlined in Section 4.5.1. If you rely on any procedures other than match, scanto, or checkinput, provide pseudo code for those as well.