!
[ISO]
(
+P,
+Q)
[ISO]
(
Head -->
Body)
[Reserved]
(
+P ->
+Q ;
+R)
[ISO]
(
+P ->
+Q)
[ISO]
[]
[
:File|
+Files]
(:-
Directive)
[Reserved]
(?-
Query)
[Reserved]
(
Head :-
Body)
[Reserved]
(
+P;
+Q)
[ISO]
?X =
?Y
[ISO]
+Term =..
?List
[ISO]
?Term =..
+List
[ISO]
+X =:=
+Y
[ISO]
?Term1 ==
?Term2
[ISO]
+X =\=
+Y
[ISO]
+X =<
+Y
[ISO]
+X >
+Y
[ISO]
+X >=
+Y
[ISO]
?X \=
?Y
[ISO]
?X ^
:P
\+
+P
[ISO]
?Term1 \==
?Term2
[ISO]
+X <
+Y
[ISO]
?Term1 @=<
?Term2
[ISO]
?Term1 @>
?Term2
[ISO]
?Term1 @>=
?Term2 [ISO]
?Term1 @<
?Term2
[ISO]
?=(
?X,
?Y)
abolish(
:Preds)
[ISO]
abolish(
:Atom,
+Arity)
Atom/
Arity
undefined.
abort
absolute_file_name(
+RelativeName,
?AbsoluteName)
absolute_file_name(
+RelativeName,
?AbsoluteName,
+Options)
add_breakpoint(
:Conditions,
?BID)
arg(
+ArgNo,
+Term,
?Arg)
[ISO]
ask_query(
+QueryClass,
+Query,
+Help,
-Answer)
[Hookable]
assert(
:Clause)
assert(
:Clause,
-Ref)
asserta(
:Clause)
[ISO]
asserta(
:Clause,
-Ref)
assertz(
:Clause)
[ISO]
assertz(
:Clause,
-Ref)
at_end_of_line
at_end_of_line(
Stream)
at_end_of_stream
[ISO]
at_end_of_stream(
Stream)
[ISO]
atom(
?X)
[ISO]
atom_chars(
+Atom,
?CharList)
[ISO only]
atom_chars(
?Atom,
+CharList)
[ISO only]
atom_chars(
+Atom,
?CodeList)
[SICStus only]
atom_chars(
?Atom,
+CodeList)
[SICStus only]
atom_codes(
+Atom,
?CodeList)
[ISO]
atom_codes(
?Atom,
+CodeList)
[ISO]
atom_concat(
+Atom1,
+Atom2,
?Atom12)
[ISO]
atom_concat(
?Atom1,
?Atom2,
+Atom12)
[ISO]
atom_length(
+Atom,
?Length)
[ISO]
atomic(
?X)
[ISO]
bagof(
?Template,
:Goal,
?Bag)
[ISO]
block
Specs
[Declaration]
bb_delete(
+Key,
?Term)
bb_get(
+Key,
?Term)
bb_put(
+Key,
+Term)
bb_update(
:Key,
?OldTerm,
?NewTerm)
break
breakpoint_expansion(
+Macro,
-Body)
[Hook]
user:breakpoint_expansion(
+Macro,
-Body)
byte_count(
+Stream,
?N)
'C'(
?S1,
?Terminal,
?S2)
call(
:Term)
[ISO]
(
Module:
:Term)
call_cleanup(
:Goal,
:Cleanup)
call_residue(
:Goal,
?Residue)
callable(
?X)
character_count(
+Stream,
?Count)
catch(
:ProtectedGoal,
?Pattern,
:Handler)
[ISO]
throw(
Exception)
or
raise_exception(
Exception)
is called, and Exception
matches Pattern, the execution of ProtectedGoal aborts,
Pattern is unified with a copy of Exception and
Handler is called.
char_code(
+Char,
?Code)
[ISO]
char_code(
?Char,
+Code)
[ISO]
char_conversion(
+InChar,
+OutChar)
[ISO]
clause(
:Head,
?Body)
[ISO]
clause(
:Head,
?Body,
?Ref)
clause(
?Head,
?Body,
+Ref)
close(
+Stream)
[ISO]
close(
+Stream,
+Options)
[ISO]
compare(
?Op,
?Term1,
?Term2)
compile(
:Files)
compound(
?X)
[ISO]
consult(
:Files)
copy_term(
?Term,
?CopyOfTerm)
[ISO]
create_mutable(
+Datum,
-Mutable)
current_atom(
?Atom)
current_breakpoint(
:Conditions,
?BID,
?Status,
?Kind)
current_char_conversion(
?InChar,
?OutChar)
[ISO]
InChar is mapped to OutChar in the current
character-conversion mapping.
current_input(
?Stream)
[ISO]
current_key(
?KeyName,
?KeyTerm)
[Obsolescent]
current_module(
?Module)
current_module(
?Module,
?File)
current_op(
?Precedence,
?Type,
?Op)
[ISO]
current_output(
?Stream)
[ISO]
current_predicate(
?Name/
?Arity)
[ISO]
current_predicate(
?Name,
:Head)
current_predicate(
?Name,
-Head)
current_prolog_flag(
?FlagName,
?Value)
[ISO]
current_stream(
?AbsFileName,
?Mode,
?Stream)
debug
debugger_command_hook(
+DCommand,
?Actions)
[Hook]
user:debugger_command_hook(
+DCommand,
?Actions)
debugging
dif(
?X,
?Y)
disable_breakpoints(
+BIDs)
discontiguous
Specs
[Declaration,ISO]
display(
?Term)
dynamic
Specs
[Declaration,ISO]
enable_breakpoints(
+BIDs)
ensure_loaded(
:Files)
[ISO]
erase(
+Ref)
error_exception(
+Exception)
[Hook]
user:error_exception(
+Exception)
execution_state(
:Tests)
execution_state(
+FocusConditions,
:Tests)
expand_term(
+Term1,
?Term2)
fail
[ISO]
false
fcompile(
:Files)
[Obsolescent]
file_search_path(
Alias,
?Expansion)
[Hook]
user:file_search_path(
Alias,
?Expansion)
Alias(
File)
file names.
fileerrors
findall(
?Template,
:Goal,
?Bag)
[ISO]
findall(
?Template,
:Goal,
?Bag,
?Remainder)
float(
?X)
[ISO]
flush_output
[ISO]
flush_output(
+Stream)
[ISO]
foreign(
+CFunctionName,
+Predicate)
[Hook]
foreign(
+CFunctionName,
+Language,
+Predicate)
[Hook]
foreign_file(
+ObjectFile,
+Functions)
[Hook,obsolescent]
foreign_resource/2
instead.
foreign_resource(
+ResourceName,
+Functions)
[Hook]
format(
+Format,
:Arguments)
format(
+Stream,
+Format,
:Arguments)
freeze(
?Var,
:Goal)
nonvar(
Var)
holds.
frozen(
-Var,
?Goal)
functor(
+Term,
?Name,
?Arity)
[ISO]
functor(
?Term,
+Name,
+Arity)
[ISO]
garbage_collect
garbage_collect_atoms
gc
generate_message_hook(
+Message,
-L0,
-L)
[Hook]
user:generate_message_hook(
+Message,
-L0,
-L)
A way for the user to override the call to
'SU_messages':generate_message/3
in the message generation phase
in print_message/2
.
get(
?C)
[Obsolescent]
get(
+Stream,
?C)
[Obsolescent]
get0(
?C)
[Obsolescent]
get0(
+Stream,
?C)
[Obsolescent]
get_byte(
?Byte)
[ISO]
get_byte(
+Stream,
?Byte)
[ISO]
get_char(
?Char)
[ISO]
get_char(
+Stream,
?Char)
[ISO]
get_code(
?Code)
[ISO]
get_code(
+Stream,
?Code)
[ISO]
get_mutable(
?Datum,
+Mutable)
goal_expansion(
+Goal,
+Module,
-NewGoal)
[Hook]
user:goal_expansion(
+Goal,
+Module,
-NewGoal)
goal_source_info(
+AGoal,
?Goal,
?SourceInfo)
ground(
?X)
halt
[ISO]
halt(
Code)
[ISO]
help
[Hookable]
if(
+P,
+Q,
+R)
include
Specs
[Declaration,ISO]
incore(
+Term)
[Obsolescent]
initialization
:Goal
[ISO]
instance(
+Ref,
?Term)
integer(
?X)
[ISO]
?Y is
+X
[ISO]
is_mutable(
?X)
keysort(
+List1,
?List2)
leash(
+Mode)
length(
?List,
?Length)
library_directory(
?Directory)
[Hook]
user:library_directory(
?Directory)
library(
File)
file names.
line_count(
+Stream,
?N)
line_position(
+Stream,
?N)
listing
listing(
:Specs)
load(
:Files)
[Obsolescent]
.ql
file(s) Files.
load_files(
:Files)
load_files(
:Files,
+Options)
.po
or .ql
file(s) Files obeying Options.
load_foreign_files(
:ObjectFiles,
+Libraries)
[Hookable,obsolescent]
splfr
and load_foreign_resource/1
instead.
load_foreign_resource(
:Resource)
message_hook(
+Severity,
+Message,
+Lines)
[Hook]
user:message_hook(
+Severity,
+Message,
+Lines)
print_message_lines/3
in
print_message/2
. A way for the user to intercept the abstract
message term Message of type Severity, whose translation
is Lines, before it is actually printed.
meta_predicate
Specs
[Declaration]
mode
Specs
[Declaration]
module(
+Module)
module(
+Module,
+ExportList)
[Declaration]
module(
+Module,
+ExportList,
+Options)
[Declaration]
multifile
Specs
[Declaration,ISO]
name(
+Const,
?CharList)
[Obsolescent]
name(
?Const,
+CharList)
atom_chars/2
and number_chars/2
.
nl
[ISO]
nl(
+Stream)
[ISO]
nodebug
nofileerrors
nogc
nonvar(
?X)
[ISO]
nospy
:Spec
nospyall
notrace
nozip
number(
?X)
[ISO]
number_chars(
+Number,
?CodeList)
[SICStus only]
number_chars(
?Number,
+CodeList)
[SICStus only]
number_chars(
+Number,
?CharList)
[ISO only]
number_chars(
?Number,
+CharList)
[ISO only]
number_codes(
+Number,
?CodeList)
[ISO]
number_codes(
?Number,
+CodeList)
[ISO]
numbervars(
?Term,
+N,
?M)
once(
+P)
[ISO]
on_exception(
?Pattern,
:ProtectedGoal,
:Handler)
throw(
Exception)
or
raise_exception(
Exception)
is called, and Exception
matches Pattern, the execution of ProtectedGoal aborts,
Pattern is unified with a copy of Exception and
Handler is called.
op(
+Precedence,
+Type,
+Name)
[ISO]
open(
+FileName,
+Mode,
-Stream)
[ISO]
open(
+FileName,
+Mode,
-Stream,
+Options)
[ISO]
open_null_stream(
-Stream)
otherwise
peek_byte(
?N)
[ISO]
peek_byte(
+Stream,
?N)
[ISO]
peek_char(
?N)
[SICStus only]
peek_char(
+Stream,
?N)
[SICStus only]
peek_char(
?N)
[ISO only]
peek_char(
+Stream,
?N)
[ISO only]
peek_code(
?N)
[ISO]
peek_code(
+Stream,
?N)
[ISO]
phrase(
:Phrase,
?List)
phrase(
:Phrase,
?List,
?Remainder)
portray(
+Term)
[Hook]
user:portray(
+Term)
print/1
what to do.
portray_clause(
?Clause)
portray_clause(
+Stream,
?Clause)
portray_message(
+Severity,
+Message)
[Hook]
user:portray_message(
+Severity,
+Message)
print_message/2
what to do.
predicate_property(
:Head,
?Prop)
predicate_property(
-Head,
?Prop)
print(
?Term)
[Hookable]
print(
+Stream,
?Term)
[Hookable]
print_message(
+Severity,
+Message)
[Hookable]
print_message_lines(
+Stream,
+Severity,
+Lines)
profile_data(
:Spec,
?Selection,
?Resolution,
-Data)
profile_reset(
:Spec)
prolog_flag(
?FlagName,
?Value)
prolog_flag(
+FlagName,
?OldValue,
?NewValue)
prolog_load_context(
?Key,
?Value)
prompt(
?Old,
?New)
public
Specs
[Declaration,obsolescent]
put(
+C)
[Obsolescent]
put(
+Stream,
+C)
[Obsolescent]
put_byte(
+B)
[ISO]
put(
+Stream,
+B)
[ISO]
put_char(
+C)
[ISO]
put_char(
+Stream,
+C)
[ISO]
put_code(
+C)
[ISO]
put_code(
+Stream,
+C)
[ISO]
query_hook(
+QueryClass,
+Query,
+QueryLines,
+Help,
+HelpLines,
-Answer)
[Hook]
user:query_hook(
+QueryClass,
+Query,
+QueryLines,
+Help,
+HelpLines,
-Answer)
ask_query/4
before processing the query. If this
predicate succeeds, it is assumed that the query has been processed and
nothing further is done.
query_class_hook(
+QueryClass,
-Prompt,
-InputMethod,
-MapMethod,
-FailureMode)
[Hook]
user:query_class_hook(
+QueryClass,
-Prompt,
-InputMethod,
-MapMethod,
-FailureMode)
'SU_messages':query_class/5
in the preparation phase of query
processing. This way the default query class characteristics can be
changed.
query_input_hook(
+InputMethod,
+Prompt,
-RawInput)
[Hook]
user:query_input_hook(
+InputMethod,
+Prompt,
-RawInput)
'SU_messages':query_input/3
in the input phase of query
processing. This way the implementation of the default input methods
can be changed.
query_map_hook(
+MapMethod,
+RawInput,
-Result,
-Answer)
[Hook]
user:query_map_hook(
+MapMethod,
+RawInput,
-Result,
-Answer)
'SU_messages':query_map/4
in the mapping phase of query
processing. This way the implementation of the default map methods
can be changed.
raise_exception(
+Exception)
catch/3
or on_exception/3
invocation
with its first argument matching Exception.
read(
?Term)
[ISO]
read(
+Stream,
?Term)
[ISO]
read_term(
?Term,
+Options)
[ISO]
read_term(
+Stream,
?Term,
+Options)
[ISO]
reconsult(
:Files)
[Obsolescent]
recorda(
+Key,
?Term,
-Ref)
[Obsolescent]
recorded(
?Key,
?Term,
?Ref)
[Obsolescent]
recordz(
+Key,
?Term,
-Ref)
[Obsolescent]
reinitialise
remove_breakpoints(
+BIDs)
repeat
[ISO]
require(
:PredSpecs)
restore(
+File)
retract(
:Clause)
[ISO]
retractall(
:Head)
runtime_entry(
+Message)
[Hook]
user:runtime_entry(
+Message)
Message = start
.
save_program(
+File)
save_program(
+File,
:Goal)
save_modules(
+Modules,
+File)
save_predicates(
:Preds,
+File)
save_files(
+SourceFiles,
+File)
see(
+File)
seeing(
?File)
seek(
+Stream,
+Offset,
+Method,
-NewLocation)
seen
set_input(
+Stream)
[ISO]
set_output(
+Stream)
[ISO]
set_prolog_flag(
+FlagName,
?NewValue)
[ISO]
set_stream_position(
+Stream,
+Position)
[ISO]
setof(
?Template,
:Goal,
?Set)
[ISO]
simple(
?X)
skip(
+C)
[Obsolescent]
skip(
+Stream,
+C)
[Obsolescent]
skip_line
skip_line(
+Stream)
sort(
+List1,
?List2)
source_file(
?File)
source_file(
:Pred,
?File)
source_file(
-Pred,
?File)
spy
:Spec
spy(
:Spec,
:Conditions)
statistics
statistics(
?Key,
?Value)
stream_code(
+Stream,
?StreamCode)
stream_code(
?Stream,
+StreamCode)
stream_position(
+Stream,
?Position)
stream_position_data(
?Field,
?Position,
?Data)
stream_property(
?Stream,
?Property))
[ISO]
sub_atom(
+Atom,
?Before,
?Length,
?After,
?SubAtom)
[ISO]
tab(
+N)
[Obsolescent]
tab(
+Stream,
+N)
[Obsolescent]
tell(
+File)
telling(
?File)
term_expansion(
+Term1,
?TermOrTerms)
[Hook]
term_expansion(
+Term1,
+Layout1,
?TermOrTerms,
?Layout2)
[Hook]
user:term_expansion(
+Term1,
?TermOrTerms)
user:term_expansion(
+Term1,
+Layout1,
?TermOrTerms,
?Layout2)
expand_term/2
what to do.
throw(
+Exception)
[ISO]
catch/3
or on_exception/3
invocation
with its first argument matching Exception.
told
trace
trimcore
true
[ISO]
ttyflush
[Obsolescent]
ttyget(
?C)
[Obsolescent]
ttyget0(
?C)
[Obsolescent]
ttynl
[Obsolescent]
ttyput(
+C)
[Obsolescent]
ttyskip(
+C)
[Obsolescent]
ttytab(
+N)
[Obsolescent]
undo(
:Goal)
unify_with_occurs_check(
?X,
?Y)
[ISO]
unknown(
?OldState,
?NewState)
unknown_predicate_handler(
+Goal,
+Module,
-NewGoal)
[Hook]
user:unknown_predicate_handler(
+Goal,
+Module,
-NewGoal)
unload_foreign_resource(
:Resource)
update_mutable(
+Datum,
+Mutable)
use_module(
:Files)
use_module(
:File,
+Imports)
use_module(
+Module,
?File,
+Imports)
use_module(
?Module,
:File,
+Imports)
use_module/2
unifying Module to the module defined in
File.
user_help
[Hook]
user:user_help
help/0
what to do.
var(
?X)
[ISO]
version
version(
+Message)
volatile
Specs
[Declaration]
when(
+Condition,
:Goal)
write(
+Term)
[ISO]
write(
+Stream,
+Term)
[ISO]
write_canonical(
+Term)
[ISO]
write_canonical(
+Stream,
+Term)
[ISO]
write_term(
+Term,
+Options)
[ISO]
write_term(
+Stream,
+Term,
+Options)
[ISO]
writeq(
+Term)
[ISO]
writeq(
+Stream,
+Term)
[ISO]
zip