Next: pick_up_transform/2 Up: A sketch of Previous: process/2

swap/2

The idea here is that when the user writes a statement like:

then the response from the program might (only for example) be

This requires us to change ``i am'' to ``you are'' etc. Here are some examples of simple goals that should succeed:

Some more clauses are needed for swap/2. The guiding principle is that the program `echoes back' the original input. So, a statement ``i like music'' should get echoed back as ``you like music?''. This means that ``i' turns into ``you''.


paul@dream.dai.ed.ac.uk
Tue Jan 9 10:51:07 GMT 1996