Running a Prolog
program
Running a Prolog program involves
- creating a file containing the program
- saving the file
- loading the file into Prolog (called consulting, or
reconsulting, the file in Prolog jargon)
- finally, calling some goal defined in the program
The
version of Prolog we will be using is one which runs on a variety of different
platforms and is called SWI-Prolog. At York, it is accessible on the
university’s Windows network. (Information about how to get your own copy
is provided at the end of this documentation.)
After logging on to one of
the network computers, from the Start menu follow the path
Programs | Teaching | Language. This will
reveal a folder labelled SWI-Prolog. Open
this folder and you will find the icon for the application. Double-clicking this
will launch the program.