定義された演算子の情報を検索する。...
移動
次へ 前へ
上へ 最上
参考
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
イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 項の入出力 > current_op/3

current_op/3

定義された演算子の情報を検索する。

current_op(-優先順位, -型, -演算子)

バックトラックによって、演算子 は、演算子の名前で単一化される。 は、その型で、優先順位は、その優先順位単一化される。

組み込み演算子は以下に示したものです。

1200, fx, (?-), (:-)
1200, xfx, (:-), (:--), (-->)
1100, fx, (dynamic)
1100, xfy, (;)
1050, xfy, (->)
1000, xfy, (',')
900, fy, (not), (\+)
700, xfx, (=), (\=)
700, xfx, (==), (\==), (@<), (@=<), (@>), (@>=)
700, xfx, (=..)
700, xfx, (is), (=:=), (=\=), (<), (=<), (>), (>=)
500, yfx, (+), (-), (\/), (/\)
400, yfx, (//), (/), (*), (mod), (rem), (<<), (>>)
200, xfx, (**)
200, xfy, (^)
200, fy, (\), (-)
100, xfx, (:)

指定子位置結合性
fx前置非結合性
fy前置右結合性
xfx挿入非結合性
xfy挿入右結合性
yfx挿入左結合性
xf後置非結合性
yf後置左結合性

引数

優先順位             整数(1 から 1200 まで)
型                   アトム (xf | yf | fx | fy | xfx | xfy | yfx)
演算子               アトム

current_op(X,fy,Y). (900, fy, not), (900, fy, \+), (200, fy, \)で4度、成功。

標準

この述語は、ISO-Prolog 標準に含まれる。

関連

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.

続く..
MINERVA
ifcomputer logo
f
Expert Services on the Web
言語
English
Japanese
サーバー
USA
Japan
サイトマップ
索引
目次
全体目次
全体索引
印刷向き
imode
PDA
探索
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_io/current_op/home_jp.html
published 2008/7/7 update 1998/8/11 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 ifcj@ifcomputer.co.jp
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
冒頭へ managed with ubiCMS