Welcome to the Prolog Tutorial Program
Samples

INSTRUCTIONS

This version permits you to examine, edit, and execute sample Prolog programs to help you understand how Prolog operates. Click on any button below and run the program with the given query. Then make up some queries of your own to test your understanding of the example. It is recommended that if you make changes you highlight and copy the new program so that you can reinstate it later by pasting it back into the text area if necessary.


Copyright © Xinhuo Yang, 2001.
This Javascript is a conversion of the PASCAL program originally from Lloyd Allison at Monash University, Melbourne, Australia.
The description of the capabilities of this interpreter are available from Monash - click here.

Last updated 2002/03/13