The files in this directory show how output of the simulator can be interpreted
as UNIX commands.

The file "interpret" is a perl-script, which reads atomic actions from standard
input and executes the corresponding UNIX-commands.  The file "interpretations"
contains a list of atomic actions (as taken from the standard output of the
simulator) and a shell command.  The action and the command are separated by
a semi-colon.
The file "light.psf" contains a specification of a traffic light, which
displays the colors green, yellow and red alternatingly.  The files
"pic.green", "pic.yellow" and "pic.red" contain ascii pictures of a traffic
light.  The atom "display(green)" is interpreted by the shell commands
"/usr/5bin/tput home; cat pic.green" which directs the cursor to the upper
left corner and displays the corresponding picture.
If "/usr/5put/tput home" doesn't work on our system, try "tput home".  If that
doesn't work either, try "clear".

To demonstrate the example type

	clear; sim -o light.til | interpret

Select the process "start", followed by atom "display(green)", etc.  The
animation will appear in the window in which you started the simulator,
which is typically covered by the simulator's windows at this point.

If the system complains "interpret: Command not found", it probably means
that perl isn't installed as /usr/local/bin/perl on your system.  Try:

	clear; sim -o light.til | perl interpret

, or change the first line of the "interpret" script.  If the system then
complains "perl: Command not found", you may have to install perl first.

Note: To tailor this example for your own specification you only have to
create your own interpretations file.  The atoms can be copied from standard
output of the simulator (type "sim -o your-file.til").

If perl isn't installed as /usr/local/bin/perl, you might want to change
the first line of the "interpret" script.
