Common Prolog provides a translator from Edinburgh syntax to allow users to port pre-existing code.
consult predicate operates only on
consult('xxx.pl')means consult file
consult('xxx'). means find a file named
xxx.pland consult it.
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
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
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) - 24 Mar 2017