CSC 350 Assignment #3 — Prolog language recognizer

Due Friday, October 17 (scripted by midnight).

Be sure to create a script file (as described in the on-line document on scripting) after you've created your Prolog system. Do not edit the script files. Hard-copy of the script file should be handed in next class.

The Assignment

Modify the prolog grammars shown in v1.p [ script1.ts ]
and v2.p [ script2.ts ]
to create code to recognize your own language. Go through the two stages that these examples demonstrate, i.e., create an initial version and then a refinement.

  1. Be sure to get the current version of io.p .
  2. Create version 1.
    1. Test/debug version 1.
    2. Script version 1.
  3. Create version 2.
    1. Test/debug version 2.
    2. Script version 2.
  4. Print and hand in the two scripts.