[not loaded]
toplevel.pl
version is det- Print the Prolog banner message and messages registered using version/1.
version(+Message) is det- Add message to version/0
initialization :Goal- Runs Goal after loading the file in which this directive appears as well as after restoring a saved state.
initialize- Run goals registered with
:- initialization(Goal, program).. Stop with an exception if a goal fails or raises an exception.
thread_initialization :Goal- Run Goal now and everytime a new thread is created.
$thread_init- Called by
start_thread()from pl-thread.c before the thread's goal.
$initialise is semidet- Called from PL_initialise() to do the Prolog part of the initialization. If an exception occurs, this is printed and '$initialise' fails.
theme_changed(+Theme) is det- Called from C if the Prolog flag
themeis about to get the new value Theme. Calls all solutions of theme_hook/1. Our own hook loadslibrary(theme/Theme), unless Theme is already defined, i.e., theme/1 is true for it. This allows for a theme that is defined in memory, e.g., by a theme editor.
$toplevel- Called from PL_toplevel()
$compile- Toplevel called when invoked with -c option.
$config- Toplevel when invoked with --dump-runtime-variables
- prolog:repl_loop_hook(+BeginEnd, +BreakLevel) is nondet[multifile]
- Multifile hook that allows acting on starting/stopping the
interactive REPL loop. Called as
forall(prolog:repl_loop_hook(BeginEnd, BreakLevel), true)
prolog- Run the Prolog toplevel. This is now the same as break/0, which pretends to be in a break-level if there is a parent environment.
$query_loop- Run the normal Prolog query loop. Note that the query is not
protected by catch/3. Dealing with unhandled exceptions is done
by the C-function
query_loop(). This ensures that unhandled exceptions are really unhandled (in Prolog).
$answer_class(-Class) is semidet- Colour class for the answer that is being written, or fail if it
must not be decorated. Class is
answer(odd)oranswer(even), alternating over the answers of a single query. Using a different background colour for both stripes the answers, which separates the answers of a non-deterministic query.Only an answer that shows bindings, residual goals or delays is decorated:
true.andfalse.are not answers to stripe.Exported (and thus
$-prefixed) because it is used byboot/messages.pl. It is not intended for use by applications.
$execute_query(Goal, Bindings, -Truth) is det- Execute Goal using Bindings.
residual_goals(:NonTerminal)- Directive that registers NonTerminal as a collector for residual goals.
prolog:residual_goals// is det- DCG that collects residual goals that are not associated with the answer through attributed variables.
prolog:translate_bindings(+Bindings0, -Bindings, +ResidueVars, +ResidualGoals, -Residuals) is det- Translate the raw variable bindings resulting from successfully completing a query into a binding list and list of residual goals suitable for human consumption.