Final handout

You lucky people! Here is some more free information - a working solution to the problem posed earlier today.

The website now contains versions of the grammar and support files that will allow you to build and execute the enhanced Parva compiler, in the file free2.zip, which you are free to copy and unpack. And because I am feeling particularly generous, please grab a copy of a listing of the significant parts of these files, with the modifications that I made to derive my solution highlighted (but without further comment).

This compiler should be able to handle most, perhaps all, of the example test programs given to you earlier today.

Moving right along ....

I appreciate that some of you will have adopted a different approach from the route I have followed, but the questions in the examination itself have to be based on a common starting point.

So to prepare yourself to answer the examination tomorrow, you are encouraged to study the grammar, table handler, code generator and interpreter in depth and, if you like, to experiment with them further. Some of the questions in the examination will probe this understanding, and you might be called on to make some further modifications and extensions to one or other or all of the grammar, table handler, code generator and interpreter. You may well have thought of important issues that you might feel my solution overlooks, and you should spend some time comparing your work with mine to get to the bottom of this - perhaps by trying out any further test examples you may have derived, to see whether my system handles (or rejects) them correctly.

As before, you are quite at liberty to continue discussions with your class mates, but not with staff or demonstrators.

That gives me a lot of scope, does it not? And, as you know by now, I have a vivid imagination. Do you?

Have fun, but get a good night's sleep, and don't be late tomorrow!

You will receive printed copies of these listings again tomorrow, as well as machine readable copies of the entire system, and files with the questions themselves. You will be able to use these files to create your solutions in machine readable form if you wish. You will also be able to answer the questions in the spaces provided in the question paper, in the way that you did for tests during the course.


Home  © P.D. Terry