Institutt for Informatikk
Universitetet i Bergen
I 125 - Innføring i Programoversettelse
Voluntary Exercise Set 5 (Gruppeøvelser. 5)
-
Exercise 4.8 parts b, c, d, and e on page 190 of the text.
Begin with your solution to part (a) from exercise set 3.
-
Exercise 4.10 parts b, c, d, and e on pages 190 and 191 of the text.
Begin with your solution to part (a) from exercise set 3.
-
Exercise 4.20 on page 191 of the text.
-
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.