SE580: Homework 7

Deadline: 5.30pm, Thursday 30 October 2003.


Download and unpack the interpreter archive for this course, and make sure you can compile and run the interpreter.

When you run the interpreter, you will get messages saying "Tests failed". Your homework is to get rid of these messages!

This week, the problem is that the static semantics of Hobbes is not complete. It is missing most of the cases for subtyping in hobbes/statics/ In particular, it is missing code in the methods isSubType and checkSubMethod You should edit hobbes/statics/ to finish the typechecker.

You should add comments to the code, indicating which edits you made, for example:

  // Edited by Wilma Flintstone:
  print ("hello");
  // End of edits.

Once you have a working edited version of, create a zip archive containing that file, plus any other files you edited, and submit it using the Courses OnLine system.