Common Prolog provides a translator from Edinburgh syntax to allow users to port pre-existing code.
predicate operates only on
consult('xxx.pl')means consult file
consult('xxx'). means find a file named
xxx.pland consult it.
predicate can operate on a Lisp source file, since
produces a Lisp binary file
. That is,
will load fasl and lisp files as well as
reconsult('xxx.pl')means reconsult file
reconsult('xxx')means look for a file named
xxx.?fasland load it, or if none found, look for
xxx.pland reconsult it, or if none found look for
xxx.lispand load it, or load
Loading a compiled file is equivalent to
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
to start your command loop.
KnowledgeWorks and Prolog User Guide (Unix version) - 6 Dec 2011