Final handout

You lucky people! Here is some more free information - a solution to the problem posed earlier today that will allow the example programs in the examination kit to be compiled and interpreted.

The website now contains versions of the grammar and support files that will allow you to build and execute an enhanced Parva compiler, in the file free2.zip, which you are free to copy and unpack.

The code generator and PVM classes have been extended, as has the Parva.atg grammar. There is also a completed TurtleLib class, adequate for handling the sample programs in the kit.

Moving right along ....

I appreciate that the approach some of you have adopted today may differ 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 strongly encouraged to study this grammar and the modified classes in depth and, indeed, to make up this version of Parva and experiment with it further.

Questions in the examination will probe your understanding of the system, and you might be called on to make some modifications and extensions to one or other or all of the grammar, code generator, interpreter and library.

During today you may well have thought of important issues that you find 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 part of this same compiler tomorrow, as well as machine readable copies of the entire system, and simple text files containing the questions themselves. You could use these (question) files to create your solutions in machine readable form if you wish.


Home  © P.D. Terry