0
は、どのように私はどのように我々はクリップ条件付きルール
if hotel = poor then stay
if hotel = poor and weather = raining then stay
if (hotel = poor and weather = sunny) or (hotel = good and weather = raining) then plan
おかげのようなルールを作成しない、例えばこの本Whith
(deftemplate holiday
(slot hotel (allowed-symbols nice good poor))
(slot weather (allowed-symbols sunny raining))
)
(deftemplate output
(slot option (allowed-symbols go plan stay))
)
を出力
を見つけるために、クリップに条件付きルールを作ることができます
ありがとうございます。エラーが表示されます:[EXPRNPSR3]オプションの関数宣言がありません。私は何か間違っているのですか? – Selrac
申し訳ありませんが、動作しています。あなたのコードを正しくコピーしませんでした。ありがとう – Selrac
変数をバインドしてeq関数を呼び出すのではなく、定数を直接照合することができます。たとえば、(休日(ホテルのホテル&:(悪い))(天気?天気&:(eq?天気予報)))、 –