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


Term input

Author(s): First versions from SICStus 0.6 code; additional changes and documentation by Daniel Cabeza and Manuel Carro.

Version: 1.8#1 (2002/5/27, 19:57:48 CEST)

Version of last change: 1.7#196 (2002/4/17, 20:0:32 CEST)

Usage and interface (read)

Documentation on exports (read)

PREDICATE: read/1:

read(Term)

Like read(Stream,Term) with Stream associated to the current input stream.

PREDICATE: read/2:

Usage: read(+Stream,?Term) * ISO *

PREDICATE: read_term/2:

Usage: read_term(?Term,+Options) * ISO *

PREDICATE: read_term/3:

Usage: read_term(+Stream,?Term,+Options) * ISO *

PREDICATE: read_top_level/3:

No further documentation available for this predicate.

PREDICATE: second_prompt/2:

Usage: second_prompt(?Old,?New)

Documentation on multifiles (read)

PREDICATE: define_flag/3:

Defines flags as follows:

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

(See section Changing system behaviour and various flags).

If flag is on (it is off by default), a variable followed by a parenthesized lists of arguments is read as a call/N term, except if the variable is anonymous, in which case it is read as an anonymous predicate abstraction head. For example, P(X) is read as call(P,X) and _(X,Y) as "(X,Y).

The predicate is multifile.

Documentation on internals (read)

REGTYPE: read_option/1:

Usage: read_option(Option)


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