This is a very basic demonstration of a use of my Pylog class. This "shrink"
is written in Prolog. The CGI wrapper is written in Python. Pylog allows
Python to interact with shrink.pl, which is running in interactive mode using
the SWI Prolog interpreter.
There are three main parts that make this CGI shrink work. First, the CGI code, which is written in Python, interacts with your web browser. Second, the CGI code uses the Pylog class, which is also written in Python, to interact with the SWI Prolog interpreter. Finally, the Prolog shrink code is loaded and executed, with the interpreter returning its results to the CGI code through the Pylog class.
The author.