CLIPS-监视

一、监视命令:

watch ..

可以监视facts(事实)、rules(规则)等符号或all

(unwatch facts)撤销

二、操作

CLIPS> (watch facts)
CLIPS> (facts)
f-0(initial-fact)
f-4(person (name "zhouhua") (age 65) (eye-color blue) (hair-colorred))
f-6(person (name "zhangsan") (age 26) (eye-color blue) (hair-colorblack))
f-7(person (name "zhoudahua") (age 65) (eye-color blue) (hair-colorred))
For a total of 4 facts.
CLIPS> (modify 7 age 66)

[PRNTUTIL2] SyntaxError: Check appropriate syntax forduplicate/modify function.
CLIPS> (modify 7 (age 66))
<==f-7(person (name "zhoudahua") (age 65) (eye-color blue) (hair-colorred))
==>f-8(person (name "zhoudahua") (age 66) (eye-color blue) (hair-colorred))
<Fact-8>
CLIPS> (unwatch facts)

你可能感兴趣的:(F#)