📄 misclns3.exp
字号:
TRUECLIPS> (batch "misclns3.bat")TRUECLIPS> (clear)CLIPS> (defrule foo (factoid $?x&:(> (length$ ?x) 3)) =>)CLIPS> (assert (factoid a) (factoid a b c) (factoid a b c d e))<Fact-2>CLIPS> (agenda)0 foo: f-2For a total of 1 activation.CLIPS> (clear)CLIPS> (defglobal ?*x* = 0)CLIPS> (bind ?*x* (assert (this)))<Fact-0>CLIPS> (assert (that ?*x*))<Fact-1>CLIPS> (bind ?*x* (assert (what)))<Fact-2>CLIPS> (assert (that ?*x*))<Fact-3>CLIPS> (defrule foo ?f <- (this) (that ?f) =>)CLIPS> (agenda)0 foo: f-0,f-1For a total of 1 activation.CLIPS> (get-dynamic-deftemplate-checking) ;; CR0191[EXPRNPSR3] Missing function declaration for get-dynamic-deftemplate-checking.CLIPS> (set-dynamic-deftemplate-checking)[EXPRNPSR3] Missing function declaration for set-dynamic-deftemplate-checking.CLIPS> (crsv-trace-on) ;; CR0207[EXPRNPSR3] Missing function declaration for crsv-trace-on.CLIPS> (crsv-trace-off)[EXPRNPSR3] Missing function declaration for crsv-trace-off.CLIPS> (defexternal) ;; CR0219[EXPRNPSR3] Missing function declaration for defexternal.CLIPS> (defrelation) [EXPRNPSR3] Missing function declaration for defrelation.CLIPS> (defrule foo (?x ?y) =>) ;; CR0220[PRNTUTIL2] Syntax Error: Check appropriate syntax for the first field of a pattern.ERROR:(defrule MAIN::foo (?xCLIPS> (defrule foo (red | blue) =>)[PRNTUTIL2] Syntax Error: Check appropriate syntax for the first field of a pattern.ERROR:(defrule MAIN::foo (red |CLIPS> (clear) ;; CR0222CLIPS> (remove blah.clp)FALSECLIPS> (load blah.clp)[ARGACCES2] Function load was unable to open file blah.clp.FALSECLIPS> (save blah.clp)TRUECLIPS> (load blah.clp)TRUECLIPS> (remove blah.clp)TRUECLIPS> (remove blah.bin)FALSECLIPS> (bload blah.bin)[ARGACCES2] Function bload was unable to open file blah.bin.FALSECLIPS> (bsave blah.bin)TRUECLIPS> (bload blah.bin)TRUECLIPS> (remove blah.bin)TRUECLIPS> (clear) ;; CR0223CLIPS> (assert (a =(+ 3 4)))<Fact-0>CLIPS> (assert (a (+ 5 6)))<Fact-1>CLIPS> (facts)f-0 (a 7)f-1 (a 11)For a total of 2 facts.CLIPS> (remove) ;; CR0240[ARGACCES4] Function remove expected exactly 1 argument(s)CLIPS> (remove 7)[ARGACCES5] Function remove expected argument #1 to be of type symbol or stringCLIPS> (remove blah.txt 7)[ARGACCES4] Function remove expected exactly 1 argument(s)CLIPS> (open "blah.txt" blah "w")TRUECLIPS> (printout blah "(printout t Greetings from blah.txt crlf)" crlf)CLIPS> (close blah)TRUECLIPS> (batch blah.txt)TRUECLIPS> (printout t Greetings from blah.txt crlf)Greetingsfromblah.txtCLIPS> (remove blah.txt)TRUECLIPS> (batch blah.txt)[ARGACCES2] Function batch was unable to open file blah.txt.FALSECLIPS> (remove yuck.txt)FALSECLIPS> (rename)[ARGACCES4] Function rename expected exactly 2 argument(s)CLIPS> (rename 7)[ARGACCES4] Function rename expected exactly 2 argument(s)CLIPS> (rename blah.txt 7)[ARGACCES5] Function rename expected argument #2 to be of type symbol or stringCLIPS> (rename blah.txt yuck.txt 7)[ARGACCES4] Function rename expected exactly 2 argument(s)CLIPS> (open "blah.txt" blah "w")TRUECLIPS> (printout blah "(printout t Greetings from blah.txt crlf)" crlf)CLIPS> (close blah)TRUECLIPS> (rename blah.txt yuck.txt)TRUECLIPS> (remove blah.txt)FALSECLIPS> (batch yuck.txt)TRUECLIPS> (printout t Greetings from blah.txt crlf)Greetingsfromblah.txtCLIPS> (remove yuck.txt)TRUECLIPS> (apropos) ;; CR0241[ARGACCES4] Function apropos expected exactly 1 argument(s)CLIPS> (apropos 7)[ARGACCES5] Function apropos expected argument #1 to be of type symbolCLIPS> (apropos "dynamic" 7)[ARGACCES4] Function apropos expected exactly 1 argument(s)CLIPS> (apropos "dynamic")[ARGACCES5] Function apropos expected argument #1 to be of type symbolCLIPS> (apropos dynamic)set-dynamic-constraint-checkingget-dynamic-constraint-checkingdynamic-getdynamic-putCLIPS> (list-watch-items 7) ;; CR0263[ARGACCES5] Function list-watch-items expected argument #1 to be of type symbolCLIPS> (unwatch all)CLIPS> (list-watch-items)facts = offinstances = offslots = offrules = offactivations = offmessages = offmessage-handlers = offgeneric-functions = offmethods = offdeffunctions = offcompilations = offstatistics = offglobals = offfocus = offCLIPS> (clear) ;; CR0264CLIPS> (assert (foo))<Fact-0>CLIPS> (list-deftemplates)initial-factfooFor a total of 2 deftemplates.CLIPS> (undeftemplate foo)[PRNTUTIL4] Unable to delete deftemplate foo.CLIPS> (retract 0)CLIPS> (undeftemplate foo)CLIPS> (clear) ;; CR0265CLIPS> (defglobal ?*x* = 3)CLIPS> (str-assert "(foo ?*x* (+ 3 4))")<Fact-0>CLIPS> (facts)f-0 (foo 3 7)For a total of 1 fact.CLIPS> (str-assert "(foo ?*x* (+ 3 4))")FALSECLIPS> (clear) ;; CR0269CLIPS> (remove blah.txt)FALSECLIPS> (load-facts blah.txt)[ARGACCES2] Function load-facts was unable to open file blah.txt.FALSECLIPS> (batch blah.txt)[ARGACCES2] Function batch was unable to open file blah.txt.FALSECLIPS> (assert (foo))<Fact-0>CLIPS> (list-deftemplates)initial-factfooFor a total of 2 deftemplates.CLIPS> (ppdeftemplate foo)CLIPS> (trunc) ;; CR0271[EXPRNPSR3] Missing function declaration for trunc.CLIPS> (clear) ;; CR0272CLIPS> (defmodule A)CLIPS> (defrule A::foo =>)[FACTLHS1] WARNING: Creating implied initial-fact deftemplate in module A. You probably want to import this deftemplate from the MAIN module.CLIPS> (deftemplate A::bar)CLIPS> (deffacts A::yak)CLIPS> (defglobal A ?*woz* = 3)CLIPS> (defrule-module)[ARGACCES4] Function defrule-module expected exactly 1 argument(s)CLIPS> (defrule-module 7)[ARGACCES5] Function defrule-module expected argument #1 to be of type symbolCLIPS> (defrule-module foo 7)[ARGACCES4] Function defrule-module expected exactly 1 argument(s)CLIPS> (defrule-module huh)[PRNTUTIL1] Unable to find defrule huh.FALSECLIPS> (defrule-module foo)ACLIPS> (deftemplate-module)[ARGACCES4] Function deftemplate-module expected exactly 1 argument(s)CLIPS> (deftemplate-module 7)[ARGACCES5] Function deftemplate-module expected argument #1 to be of type symbolCLIPS> (deftemplate-module bar 7)[ARGACCES4] Function deftemplate-module expected exactly 1 argument(s)CLIPS> (deftemplate-module huh)[PRNTUTIL1] Unable to find deftemplate huh.FALSECLIPS> (deftemplate-module bar)ACLIPS> (deffacts-module)[ARGACCES4] Function deffacts-module expected exactly 1 argument(s)CLIPS> (deffacts-module 7)[ARGACCES5] Function deffacts-module expected argument #1 to be of type symbolCLIPS> (deffacts-module yak 7)[ARGACCES4] Function deffacts-module expected exactly 1 argument(s)CLIPS> (deffacts-module huh)[PRNTUTIL1] Unable to find deffacts huh.FALSECLIPS> (deffacts-module yak)ACLIPS> (defglobal-module)[ARGACCES4] Function defglobal-module expected exactly 1 argument(s)CLIPS> (defglobal-module 7)[ARGACCES5] Function defglobal-module expected argument #1 to be of type symbolCLIPS> (defglobal-module woz 7)[ARGACCES4] Function defglobal-module expected exactly 1 argument(s)CLIPS> (defglobal-module huh)[PRNTUTIL1] Unable to find defglobal huh.FALSECLIPS> (defglobal-module woz)ACLIPS> (clear) ;; CR0280CLIPS> (assert-string "(a b c)")<Fact-0>CLIPS> (assert-string "d e f")[PRNTUTIL2] Syntax Error: Check appropriate syntax for RHS patterns.FALSECLIPS> (facts)f-0 (a b c)For a total of 1 fact.CLIPS> (dribble-off)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -