6.7

Week 10 Set a

home work!

Programming Language ISL

Due Date Mon at 9pm (Week 10)

Purpose More practice withy the design of functions on mutually recursive data definitions

Finger Exercises

Exercise 1 From HtDP, 314 and 315.

Graded Exercises

Exercise 2 Your users are unhappy. The picture descriptions are too restrictive. Hence your management has modified the PD data representation as follows:

; A PD* (short for picture description) is one of:
;  'empty-image
;  String
;  (list 'circle Number String String)
;  (list 'rectangle Number Number String String)
;  (list 'beside LPD*)
;  (list 'above LPD*)
; 
; An LPD* is one of:
;  '()
;  (cons PD* LPD*)
Revise your solution to Week 9 Set a, problem 2. Call the revised function pd*-interpret.