All Manuals > KnowledgeWorks and Prolog User Guide > A Common Prolog

NextPrevUpTopContentsIndex

A.10 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('xxx.pl') 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) - 26 Feb 2015

NextPrevUpTopContentsIndex