CS712/CS812
Project Phase 4
Fall 2018
Due Sunday December 9


Add features to your T compiler:

  1. (20 points) declaration of methods and constructors without parameters..

  2. (20 points) method call without parameters, including method overriding.

  3. (20 points) constructor call without parameters.

  4. (20 points) method and constructor declaration and call with parameters.

  5. (20 points) method and constructor overloading.

  6. (25 bonus points) support for the "this" keyword, the "super" keyword, the return statement, and destructors.

Work item 1 should be done first, as it will be used to test the other items.

For work item 1, you should upgrade the class table dump facility (accessed by the -CT command-line option to tc) to display each method name and its return type, and each constructor. For work iterm 4, update the class table dump to show each method or constructor parameter name and its type.

To get full credit for the bonus points, you will need to have fields implemented.

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

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 phase4 tc.tar

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

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

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


Last modified on November 14, 2018.

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