⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dfnxexe.exp

📁 NASA 开发使用的一个专家系统
💻 EXP
字号:
TRUECLIPS> (batch "dfnxexe.bat")TRUECLIPS> (deffunction print-args (?a ?b $?c)   (printout t ?a " " ?b " and " (length ?c) " extras: " ?c crlf))CLIPS> (print-args 1 2)1 2 and 0 extras: ()CLIPS> (print-args 1 2 3 4)1 2 and 2 extras: (3 4)CLIPS> (print-args 1 2 (mv-append a b c) (mv-append d e f) 1 2 3 4)1 2 and 10 extras: (a b c d e f 1 2 3 4)CLIPS> (deffunction test-return ()   (+ (eval "(gensym)") 2)   TRUE)CLIPS> (test-return)[ARGACCES5] Function + expected argument #1 to be of type integer or float[PRCCODE4] Execution halted during the actions of deffunction test-return.FALSECLIPS> (deffunction test-return ()  1 2 3 4)CLIPS> (test-return)4CLIPS> (deffunction factorial (?a)   (if (or (not (integerp ?a)) (< ?a 0)) then      (printout t "Factorial error!" crlf)    else      (if (= ?a 0) then         1       else         (* ?a (factorial (- ?a 1))))))CLIPS> (factorial 5)120CLIPS> (* 5 4 3 2)120CLIPS> (factorial 0)1CLIPS> (factorial 1)1CLIPS> (factorial abc)Factorial error!CLIPS> (defglobal ?*cnt* = 0)CLIPS> (deffunction foo ())CLIPS> (deffunction bar ()   (if (< ?*cnt* 10) then      (bind ?*cnt* (+ ?*cnt* 1))      (foo)))CLIPS> (deffunction foo ()  (bar))CLIPS> (foo)FALSECLIPS> (deffunction wildcard-test (?a $?rest)  (printout t ?rest crlf)  (bind ?rest 34)  (printout t ?rest crlf))CLIPS> (wildcard-test 1 2 3 4 5 6)(2 3 4 5 6)34CLIPS> (dribble-off)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -