![]() |
YAP 7.1.0
|
Prolog systems search follow a complex search on order to track down files. More...
Prolog systems search follow a complex search on order to track down files.
class library_directory/1 |
library_directory(?Directory:atom)
properties: nondeterministic
properties: dynamic
Dynamic, multi-file predicate that succeeds when Directory is a current library directory name Asserted in the user module
Library directories are the places where files specified in the form library( _File_ )
are searched by the predicates consult/1 , reconsult/1 , use_module/1 , ensure_loaded/1 , and load_files/2
This directory is initialized by a rule that calls the system predicate system_library/1
class commons_directory/1 |
commons_directory(? Directory:atom)
properties: nondeterministic
properties: dynamic
State the location of the Commons Prolog Initiative
This directory is initialized as a rule that calls the system predicate library_directories/2
class foreign_directory/1 |
foreign_directory(? Directory:atom)
properties: nondeterministic
properties: dynamic
State the location of the Foreign Prolog Initiative
This directory is initialized as a rule that calls the system predicate library_directories/2
class prolog_file_type/2 |
prolog_file_type(?Suffix:atom, ?Handler:atom)
properties: nondeterministic
properties: dynamic
This multifile/dynamic predicate relates a file extension Suffix to a language or file type Handler By default, it supports the extensions yap, pl, and prolog for prolog files and uses one of dll, so, or dylib for shared objects Initial definition is:
class file_search_path/2 |
file_search_path(+Name:atom, -Directory:atom)
properties: nondeterministic
Allows writing file names as compound terms The Name and DIRECTORY must be atoms The predicate may generate multiple solutions The predicate is originally defined as follows:
Thus, compile(library(A))
will search for a file using library_directory/1 to obtain the prefix, whereas 'compile(system(A))would look at the
host_type` flag