writes a term to a stream ignoring operator definitions....
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 > write_canonical/1/2

write_canonical/1/2

writes a term to a stream ignoring operator definitions.

write_canonical(+Term)
write_canonical(+Stream, +Term)

write_canonical/1 writes a single term (Term) to the current outputstream.
write_canonical/2 writes a single term (Term) to the given stream(Stream).

write_canonical/1/2 quotes atoms or functor names and ignores operator definitions. The predicate corresponds to write_term with the option list [quoted(true), numbervars(false),ignore_ops(true)].

Arguments

Stream                 text output stream
Term                   term

Examples

?- write_canonical(a+b*c).
+(a,*(b,c))

Standard

These predicates are part of the ISO-Prolog Standard.

See also

current_op/3, op/3, print/1/2, println/1/2, read/1/2, read_term/2/3, write/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/write_canonical/home_en.html
published 2008/7/7 update 1998/8/11 (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