Homework 8
22C:18, Summer 1997
Due Tuesday, July 29
Douglas W. Jones
See the files
- /group/class/22c018/almostC.h
- /group/class/22c018/calcmain.h
- /group/class/22c018/calcrpn.h
- What's missing from almostC.h that would be needed to write a
Hello World program?
- Consider the problem of making our macros detect nesting errors, for
example, detecting LOOP/ENDSELECT or IF/ENDLOOP. What might you do to
solve this problem?
- What's missing from calcmain.h and calcrpn.h to make it correctly
implement the specifications of MP3 -- assuming that the macros are
all properly defined.
- Look back through the set of RPN and structured programming macros
used and defined in the above files and look back at Machine Problem 3.
What additional macros do we need to define in order to solve MP3 entirely
in our civilized "higher level" macro set. Hint: Between highlevel.h and
the RPN macros presented in the notes and in previous assignments, we've
defined all but a very few! Those few really matter.