0
剪輯中是否有任何方法創建規則,其中RHS是函數調用?RHS中的呼叫函數規則中的片段
剪輯中是否有任何方法創建規則,其中RHS是函數調用?RHS中的呼叫函數規則中的片段
是:
CLIPS> (deffunction foo()
(printout t "The function was called." crlf))
CLIPS> (defrule calls-function
(trigger)
=>
(foo)
)
CLIPS> (reset)
CLIPS> (assert (trigger))
<Fact-1>
CLIPS> (run)
The function was called.
CLIPS>