A.9 Edinburgh Syntax

Common Prolog provides a translator from Edinburgh syntax to allow users to port pre-existing code.

The consult predicate operates only on .pl files:

The reconsult predicate can operate on a Lisp source file, since compile_and_reconsult('') produces a Lisp binary file xxx.?fasl . That is, reconsult will load fasl and lisp files as well as .pl files:

Loading a compiled file is equivalent to reconsult .

compile_and_reconsult compiles a file and reconsults the result.

Edinburgh syntax may also be used to interact with Common Prolog through the use of a different read-query-print loop. To use Edinburgh syntax, use (erqp) instead of (rqp) to start your command loop.

KnowledgeWorks and Prolog User Guide (Macintosh version) - 4 Apr 2005