Living Systems_

Prolog

A Hello World program in SWI-Prolog

Then you can load the program from inside prolog after you’ve started it. So, let’s start the prolog interactive GUI: prolog Then, in the Prolog GUI, load the file test.pl like so: ?- [test]. Now, if you had some prolog clauses in the test.pl file, you will be able to extract that information by querying. …