Go to the first, previous, next, last section, table of contents.


Term output

Author(s): Adapted from shared code written by Richard A. O'Keefe. Changes by Mats Carlsson, Daniel Cabeza, and Manuel Hermenegildo..

Version: 1.5#118 (2000/4/19, 18:13:43 CEST)

Version of last change: 0.5#49 (1998/7/14, 20:3:29 MET DST)

This library provides different predicates for term output, additional to the kernel predicates display/1- display/2 and displayq/1-displayq/2. All the predicates defined in ISO-Prolog are included, plus other traditionally provided by Prolog Implementations. Output predicates are provided in two versions: one that uses the current output stream and other in which the stream is specified explicitly, as an additional first argument.

Usage and interface (write)

Documentation on exports (write)

PREDICATE: write_term/3:

Usage: write_term(@(Stream),?(Term),+OptList) * ISO *

PREDICATE: write_term/2:

Usage: write_term(?(Term),+OptList) * ISO *

PROPERTY: write_option/1:

Opt is a valid write option which affects the predicate write_term/3 and similar ones. Possible write_options are:

.

Usage: write_option(Opt)

PREDICATE: write/2:

Usage: write(@(Stream),?(Term)) * ISO *

PREDICATE: write/1:

Usage: write(?(Term)) * ISO *

PREDICATE: write_list1/1:

Usage:

PREDICATE: writeq/2:

Usage: writeq(@(Stream),?(Term)) * ISO *

PREDICATE: writeq/1:

Usage: writeq(?(Term)) * ISO *

PREDICATE: write_canonical/2:

Usage: write_canonical(@(Stream),?(Term)) * ISO *

PREDICATE: write_canonical/1:

Usage: write_canonical(?(Term)) * ISO *

PREDICATE: print/2:

Usage: print(@(Stream),?(Term))

PREDICATE: print/1:

Usage: print(?(Term))

PREDICATE: portray_clause/2:

Usage: portray_clause(@(Stream),?(Clause))

PREDICATE: portray_clause/1:

Usage: portray_clause(?(Clause))

PREDICATE: numbervars/3:

Usage: numbervars(?(Term),+N,?(M))

PREDICATE: prettyvars/1:

Usage: prettyvars(?(Term))

PREDICATE: printable_char/1:

No further documentation available for this predicate.

Documentation on multifiles (write)

PREDICATE: define_flag/3:

Defines flags as follows:

define_flag(write_strings,[on,off],off).

(See section Changing system behaviour and various flags)

The predicate is multifile.

PREDICATE: portray_attribute/2:

No further documentation available for this predicate.

The predicate is multifile.

PREDICATE: portray/1:

The predicate is multifile.

Usage: portray(?(Term))


Go to the first, previous, next, last section, table of contents.