RHODES UNIVERSITY


Computer Science 301 - 2010 - Programming Language Translation

You lucky people! Here is some more free information - a reasonably complete solution to the problem posed earlier, in fact.

A complete Parva system incorporating enumeration types has been supplied to you in a later version of the examination kit (FREE2J.ZIP or FREE2C.ZIP for the Java or C# versions).

Much of this code should be familiar, and hopefully is fairly similar to that which you should have developed earlier today. It is not fully commented - you will have to explore it yourselves to find what has changed from the system you were given some hours ago,

To prepare yourself to answer Section B of the examination tomorrow, you are encouraged to study it critically, and in depth. Search out the differences from this morning's system, and ensure that you understand the approach I have taken.

Questions in Section B tomorrow will probe this understanding, but we are giving few hints as to what to expect, other than that you might be called on to comment on the solution, and perhaps to make some modifications, improvements and extensions to the grammar, the support files, or even the virtual machine.

If the solution you have worked on for yourselves is very different to mine (it's hard to believe it could be very different, but some of you think in interesting ways), please make sure you understand mine too, as the questions tomorrow have had to be based on my solution, obviously!

During the examination you will receive a machine readable exam "kit" with this same code and some example Parva programs, as well as listings of the relevant parts of the system which can be used and handed in with your answer book.

As before, you are quite at liberty to experiment with the system and to discuss it with your prac partners, but not with staff or demonstrators.

In particular, spend some time thinking how any other ideas you had during the first part of today would need modification to fit in with the solution kit presented here.

You will receive listings of relevant parts of the attributed grammar and support files tomorrow, a copy in machine-readable form, and machine readable copies of the questions themselves.

A copy of the grammar document is available now, but you may not bring this copy to the exam!

I have a vivid imagination. Do you?

Have fun!


Home  © P.D. Terry