updates the definition of operators. ...
Move to
Next Prev
Up Top
See also
current_op/3
op/3
print/1/2
println/1/2
read/1/2
read_term/2/3
write/1/2
write_canonical/1/2
write_term/2/3
writeq/1/2
IF Computer > MINERVA > Manual > Reference > Predicates > Term input/output > op/3

op/3

updates the definition of operators.

op(+Priority, +Type, +Operators)

Operators give the possibility to write compound terms with arity 1 or 2 in operator notation (as prefix, suffix resp. infix operators). This allows a better readability.
The priority of an operator is defined by Priority. An operator can be deleted by giving him the priority 0.
Type defines the type of Operator. The possible types are:

fx prefix not associative
fy prefix right-associative
xf postfix not associative
yf postfix left-associative
xfx infix not associative
xfy infix right-associative
yfx infix left-associative

If Operators is a list of operators, its definition or deleting will be made in the given order.

Arguments

Priority               integer between 0 and ...
Type                   atom (xf | yf | fx | fy | xfx | xfy | yfx)
Operator               atom

Examples

op(75, xfx, @@). Succeeds. @@ is now a non-associative infix operator with priority 75.
op(80, xfx, @@). Succeeds. @@ is now a non-associative infix operator with priority 80.

Standard

This predicate is part of the ISO-Prolog Standard.

See also

current_op/3, print/1/2, println/1/2, read/1/2, read_term/2/3, write/1/2, write_canonical/1/2, write_term/2/3, writeq/2.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_io/op/home_en.html
published 2008/7/21 update 1998/8/7 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS