!
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)
development
arg(
+ArgNo,
+Term,
?Arg)
ISO,meta-logical
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,meta-logical
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,meta-logical
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
development
breakpoint_expansion(
+Macro,
-Body)
hook,development
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)
meta-logical
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,meta-logical
consult(
:Files)
copy_term(
?Term,
?CopyOfTerm)
ISO,meta-logical
create_mutable(
+Datum,
-Mutable)
current_atom(
?Atom)
meta-logical
current_breakpoint(
:Conditions,
?BID,
?Status,
?Kind,
?Type)
development
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
development
debugger_command_hook(
+DCommand,
?Actions)
hook,development
user:debugger_command_hook(
+DCommand,
?Actions)
debugging
development
dif(
?X,
?Y)
disable_breakpoints(
+BIDs)
development
discontiguous
Specs
declaration,ISO
display(
?Term)
dynamic
Specs
declaration,ISO
enable_breakpoints(
+BIDs)
development
ensure_loaded(
:Files)
ISO
erase(
+Ref)
error_exception(
+Exception)
hook
user:error_exception(
+Exception)
execution_state(
:Tests)
development
execution_state(
+FocusConditions,
:Tests)
development
expand_term(
+Term1,
?Term2)
fail
ISO
false
fcompile(
:Files)
development,obsolescent
file_search_path(
Path,
?Expansion)
hook
user:file_search_path(
Path,
?Expansion)
Path(
File)
file names.
fileerrors
findall(
?Template,
:Goal,
?Bag)
ISO
findall(
?Template,
:Goal,
?Bag,
?Remainder)
float(
?X)
ISO,meta-logical
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,meta-logical
functor(
?Term,
+Name,
+Arity)
ISO,meta-logical
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)
meta-logical
halt
ISO
halt(
Code)
ISO
help
hookable,development
if(
+P,
+Q,
+R)
include
Specs
declaration,ISO
incore(
+Term)
obsolescent
initialization
:Goal
ISO
instance(
+Ref,
?Term)
integer(
?X)
ISO,meta-logical
?Y is
+X
ISO
is_mutable(
?X)
meta-logical
keysort(
+List1,
?List2)
leash(
+Mode)
development
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)
development,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
development
nofileerrors
nogc
nonvar(
?X)
ISO,meta-logical
nospy
:Spec
development
nospyall
development
notrace
development
nozip
development
number(
?X)
ISO,meta-logical
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)
meta-logical
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)
development
profile_reset(
:Spec)
development
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
remove_breakpoints(
+BIDs)
development
repeat
ISO
require(
:PredSpecs)
development
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)
meta-logical
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
development
spy(
:Spec,
:Conditions)
development
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
development
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)
development
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,meta-logical
version
development
version(
+Message)
development
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
development