0
나는 알레르기로 사람을 알레르기로 분해하고 각 알레르기를 일으키고 싶습니다. 이렇게하려면 do-backward-chaining
, assert-string
및 readline
을 사용합니다. 읽기 목록을 그 요소로 나눕니다.
(do-backward-chaining allergies)
(defrule ask-allergies
(need-allergies nil)
=>
(printout t "Tell me your allergies (tomato, cheese): ")
(assert-string (str-cat "(allergies " (readline) ")")))
(defrule assert-allergies
(allergies $? ?a $?)
=>
(assert (allergy ?a)))
(reset)
(run)
그러나이 오류 출력 :
Jess reported an error in routine Context.getVariable
while executing (reset).
Message: No such variable _blank_mf1.