			TCL/TK with CLIPS

TCL is a scripting language which along with TK (X Toolkit for TCL) is
good for rapidly developing interactive programs. For a better
description of the language see http://www.scriptics.com

One feature of TCL is the capability of dynamically loading new
functionality. The are already a number of new packages that can be
added on to the basic TCL/TK. What has been done in the current case
is to:

1. add a single function: tclEval to CLIPS

2. create the proper TCL (in C) wrappers to add the following
   functions to TCL:

clipsReset 
        [ returns int  ]

clipsRun 
        [ returns int  ]

clipsHelp 
        [ returns int  ]

clipsClear 
        [ returns int  ]

clipsEval { char * } 
        [ returns int  ]

clipsLoad { char * } 
        [ returns int  ]

clipsAssert { char * } 
        [ returns int  ]

3. compile all of CLIPS plus the above functionality into a sharable
   library which is dynamically loadable by TCL.

All of the above has been accomplished (on Linux).

To test it, a TCL version of the popular mine sweeping game was found
and used. In this case, all of the rules for checking whether the
object uncovered is an empty space or a mine is controlled by CLIPS
rules. An added feature was to set up an additional set of rules which
would auto search for empty spaces. These rules are based on uncovered
information and not information hidden from the user.

Versions used:

TCL 8.0
TK  8.0
CLIPS 6.10

A version for Fuzzy Clips was also built.

Anybody interested contact:

Bill Wallace
rtxserv@metronet.com
