Make the simulator by typing `make'.  You must have graphics capability,
ie. be on a SUN workstation.  Run the simulator `gsim' when it is made.

Just type "read setup" to the gi interface, then stretch the tool
until everything fits.  It will need the full screen height.  What you
see is a bottom up chart parser.  The input units are along the
bottom.  In custom mode, a left click over these units will turn them
on.  You can also turn them on with a call to parse, e.g:

call parse noun verb det adj noun

The table contains nonterminal units, with the row representing length
and the columns represent starting position.  Small boxes represent
bottom-up priming.  Large boxes represent top-down confirmation.  Many
match units recognizing productions are not shown.

You can enter your own grammar using the syntax of the "grammar" file.
The layout will be made automatically (except for the instruction
sentences) with a call to drawit.   Here is a grammar file with
comments.  The comments must be edited out before the file can be used.
If the grammar requires more units than allocated, you will need to
change the call to AllocateUnits(<number>) in the build code.

The productions must have one of the two the forms (i.e. Chomsky
normal form).  

NONTERMINAL -> terminal
NONTERMINAL -> NONTERMINAL NONTERMINAL

----- data file (delete "%" and all following characters on the line) -----
6	% maximum length of input
S NP VP NP2 VERB PP DET PREP ADJ NOUN;	% all nonterminals
S;	% start symbol
noun verb adj prep det;		% all terminals

% productions     
S NP VP;
NP DET NP2;
NP noun;
NP2 ADJ NP2;
NP2 NOUN PP;
NP2 noun;
VP VERB PP;
VP VERB NP;
VP verb;
VERB verb;
PP PREP NP;
PREP prep;
DET det;
ADJ adj;
NOUN noun;
