prolog_load_context/3¶
prolog_load_context(? Key, Value)*
Obtain information on the current compilation process.
The predicate allows the following keys:
directory
(prolog_load_context//22 option)
Full name for the directory where YAP is currently consulting the file.
- file (prolog_load_context//22 option)
Full name for the file currently being read in. It can be: 1. the file being included, if YAP is executing an include//22 directive;
-
the file being consulted;
-
the current
user_input
, -
module (prolog_load_context//22 option)
Current source module.
source
(prolog_load_context//22 option)
Full name for the file currently being read in, which may be consulted, reconsulted, or included
2 + stream
(prolog_load_context//22 option)
Stream currently being read in.
term_position
(prolog_load_context//22 option)
q Stream position at the stream currently being read in. For SWI compatibility, it is a term of the form '$stream_position'(0,Line,0,0).
term
(prolog_load_context//22 option)
The term being processed, if any.
variable_names
(prolog_load_context//22 option)
The names of the variables in the term being processed, if any.
Obtain information on the current compilation process.
The predicate allows the following keys:
directory
(prolog_load_context//22 option)
Full name for the directory where YAP is currently consulting the file.
- file (prolog_load_context//22 option)
Full name for the file currently being consulted. Notice that included filed are ignored.
- module (prolog_load_context//22 option)
Current source module.
source
(prolog_load_context//22 option)
Full name for the file currently being read in, which may be consulted, reconsulted, or included
2 + stream
(prolog_load_context//22 option)
Stream currently being read in.
term_position
(prolog_load_context//22 option)
Stream position at the stream currently being read in. For SWI compatibility, it is a term of the form '$stream_position'(0,Line,0,0).
term
(prolog_load_context//22 option)
The term being processed, if any.
variable_names
(prolog_load_context//22 option)
The names of the variables in the term being processed, if any.