CS712/CS812
Project Phase 3
Fall 2018
Due Sunday November 11


Add features to your T compiler:

  1. (25 points) declaration of classes that contain only fields (and not constructors, destructors or methods).

  2. (25 points) creation of class instances.

  3. (25 points) field access.

  4. (25 points) cast of class types.

Work items 1 and 2 should be done first, as they will be used to tests items 3 and 4. They will also be required for Phase 4.

When creating a class instance, you do not need to call a constructor. However, be sure that fields are properly initialized.

For work item 1, you should upgrade the class table dump facility (accessed by the -CT command-line option to tc) to display each field and its type.

There are some initial test files available on agate in ~cs712/public/tests/phase3.

To get full credit, your code must be adequately documented and structured. If I can't easily read and understand your code, you may lose points.

You must give me back the system in the same form that I gave it to you. I must be able to install it and run it in the exact same way as when it was delivered to you. I would also like you to keep the source code organized in the same directory hierarchy. If you fail to do this, a significant deduction will be made to your grade.

Note that there is a script, distribute.sh, in tc/bin, which will generate a tar file for you. This tar file is what I require you to submit to me for grading.

To turn in this assignment, type (on agate.cs.unh.edu):
~cs712/bin/submit phase3 tc.tar

Submissions can be checked by typing (on agate.cs.unh.edu):
~cs712/bin/scheck phase3

The assignment is due on Sunday November 11. There is a grace period to 8am on Monday November 12 when no late penalty will be assigned. Submissions between 8am November 12 and 8am November 13 will have a late penalty of 10 points. Submissions between 8am November 13 and 8am November 14 will have a late penalty of 30 points. No submissions will be accepted after 8am on Wednesday November 14.

Remember: you are expected to do your own work on this assignment.


Last modified on July 30, 2018.

Comments and questions should be directed to pjh@cs.unh.edu