📄 strngfnx.exp
字号:
TRUECLIPS> (batch "strngfnx.bat")TRUECLIPS> (clear) ; 10.4.1CLIPS> (str-cat) ; 10.4.1[ARGACCES4] Function str-cat expected at least 1 argument(s)CLIPS> (str-cat (create$)) ; 10.4.1[ARGACCES5] Function str-cat expected argument #1 to be of type string, instance name, symbol, float, or integer""CLIPS> (str-cat a) ; 10.4.1"a"CLIPS> (str-cat "this one") ; 10.4.1"this one"CLIPS> (str-cat 8.25) ; 10.4.1"8.25"CLIPS> (str-cat 19838) ; 10.4.1"19838"CLIPS> (str-cat [this-instance]) ; 10.4.1"this-instance"CLIPS> (str-cat a "b c" 8.9 " " 78 [x]) ; 10.4.1"ab c8.9 78x"CLIPS> (str-cat "" "" "" "") ; 10.4.1""CLIPS> (str-cat "foo" bar) ; 10.4.1"foobar"CLIPS> (sym-cat) ; 10.4.2[ARGACCES4] Function sym-cat expected at least 1 argument(s)CLIPS> (sym-cat (create$)) ; 10.4.2[ARGACCES5] Function sym-cat expected argument #1 to be of type string, instance name, symbol, float, or integernilCLIPS> (sym-cat a) ; 10.4.2aCLIPS> (sym-cat "this one") ; 10.4.2this oneCLIPS> (sym-cat 8.5) ; 10.4.28.5CLIPS> (sym-cat 19838) ; 10.4.219838CLIPS> (sym-cat [this-instance]) ; 10.4.2this-instanceCLIPS> (sym-cat a "b c" 8.9 " " 78 [x]) ; 10.4.2ab c8.9 78xCLIPS> (sym-cat "" "" "" "") ; 10.4.2CLIPS> (sub-string) ; 10.4.3[ARGACCES4] Function sub-string expected exactly 3 argument(s)CLIPS> (sub-string 1) ; 10.4.3[ARGACCES4] Function sub-string expected exactly 3 argument(s)CLIPS> (sub-string 1 3) ; 10.4.3[ARGACCES4] Function sub-string expected exactly 3 argument(s)CLIPS> (sub-string 1 2 "acd" 3) ; 10.4.3[ARGACCES4] Function sub-string expected exactly 3 argument(s)CLIPS> (sub-string a 2 "abc") ; 10.4.3[ARGACCES5] Function sub-string expected argument #1 to be of type integerCLIPS> (sub-string 2 a "de") ; 10.4.3[ARGACCES5] Function sub-string expected argument #2 to be of type integerCLIPS> (sub-string 1 2 (create$ a b)) ; 10.4.3[ARGACCES5] Function sub-string expected argument #3 to be of type symbol, string, or instance nameCLIPS> (sub-string 1.0 2 "abc") ; 10.4.3[ARGACCES5] Function sub-string expected argument #1 to be of type integerCLIPS> (sub-string 1 2.0 "abc") ; 10.4.3[ARGACCES5] Function sub-string expected argument #2 to be of type integerCLIPS> (sub-string 1 2.5 "abc") ; 10.4.3[ARGACCES5] Function sub-string expected argument #2 to be of type integerCLIPS> (sub-string 2 2 abc) ; 10.4.3"b"CLIPS> (sub-string 1 3 "abc") ; 10.4.3"abc"CLIPS> (sub-string -1 3 "abc") ; 10.4.3"abc"CLIPS> (sub-string 1 4 "xyz") ; 10.4.3"xyz"CLIPS> (sub-string 3 1 "abc") ; 10.4.3""CLIPS> (sub-string 1 1 "xyz") ; 10.4.3"x"CLIPS> (sub-string 2 2 "xyz") ; 10.4.3"y"CLIPS> (sub-string 3 3 "xyz") ; 10.4.3"z"CLIPS> (sub-string 0 0 "abc") ; 10.4.3""CLIPS> (sub-string 4 4 "abc") ; 10.4.3""CLIPS> (sub-string 2 3 "xyzq") ; 10.4.3"yz"CLIPS> (sub-string 5 7 "abc") ; 10.4.3""CLIPS> (sub-string -1 0 "abc") ; 10.4.3""CLIPS> (sub-string 3 8 "abcdefghijkl") ; 10.4.3"cdefgh"CLIPS> (str-index) ; 10.4.4[ARGACCES4] Function str-index expected exactly 2 argument(s)CLIPS> (str-index "a") ; 10.4.4[ARGACCES4] Function str-index expected exactly 2 argument(s)CLIPS> (str-index "a" "b" 3) ; 10.4.4[ARGACCES4] Function str-index expected exactly 2 argument(s)CLIPS> (str-index 1 "a") ; 10.4.4[ARGACCES5] Function str-index expected argument #1 to be of type symbol, string, or instance nameCLIPS> (str-index "a" 7.3) ; 10.4.4[ARGACCES5] Function str-index expected argument #2 to be of type symbol, string, or instance nameCLIPS> (str-index "a" a) ; 10.4.41CLIPS> (str-index a "a") ; 10.4.41CLIPS> (str-index "" "") ; 10.4.41CLIPS> (str-index "" "xy") ; 10.4.43CLIPS> (str-index "xy" "") ; 10.4.4FALSECLIPS> (str-index "ab" "abcd") ; 10.4.41CLIPS> (str-index "ab" "cabd") ; 10.4.42CLIPS> (str-index "ab" "cdab") ; 10.4.43CLIPS> (str-index "b" "xyzq") ; 10.4.4FALSECLIPS> (str-index "ab" "axbayaazbbq") ; 10.4.4FALSECLIPS> (str-index [ab] [dabc]) ; 10.4.42CLIPS> (str-index "def" "abcdefghi") ; 10.4.44CLIPS> (str-index "qwerty" "qwertypoiuyt")1CLIPS> (str-index "qwerty" "poiuytqwer") ; 10.4.4FALSECLIPS> (eval) ; 10.4.5[ARGACCES4] Function eval expected exactly 1 argument(s)CLIPS> (eval "cat" "dog") ; 10.4.5[ARGACCES4] Function eval expected exactly 1 argument(s)CLIPS> (eval 7.8) ; 10.4.5[ARGACCES5] Function eval expected argument #1 to be of type symbol or stringCLIPS> (eval 900) ; 10.4.5[ARGACCES5] Function eval expected argument #1 to be of type symbol or stringCLIPS> (eval [abc]) ; 10.4.5[ARGACCES5] Function eval expected argument #1 to be of type symbol or stringCLIPS> (eval (create$ a x y)) ; 10.4.5[ARGACCES5] Function eval expected argument #1 to be of type symbol or stringCLIPS> (eval cat) ; 10.4.5catCLIPS> (eval "dog") ; 10.4.5dogCLIPS> (eval "7") ; 10.4.57CLIPS> (eval "893.34") ; 10.4.5893.34CLIPS> (eval "[ab]") ; 10.4.5[ab]CLIPS> (eval "(+ 3 (* 4 5))") ; 10.4.523CLIPS> (eval "(facts)") ; 10.4.5CLIPS> (eval "?x") ; 10.4.5[STRNGFUN2] Some variables could not be accessed by the eval function.FALSECLIPS> (eval "(defrule foo =>)") ; 10.4.5[EXPRNPSR3] Missing function declaration for defrule.FALSECLIPS> (eval "(+ 3 4)") ; 10.4.57CLIPS> (eval "(mv-append a b c)") ; 10.4.5(a b c)CLIPS> (build) ; 10.4.6[ARGACCES4] Function build expected exactly 1 argument(s)CLIPS> (build "(defrule foo =>)" "dog") ; 10.4.6[ARGACCES4] Function build expected exactly 1 argument(s)CLIPS> (build 7.8) ; 10.4.6[ARGACCES5] Function build expected argument #1 to be of type symbol or stringCLIPS> (build 900) ; 10.4.6[ARGACCES5] Function build expected argument #1 to be of type symbol or stringCLIPS> (build [abc]) ; 10.4.6[ARGACCES5] Function build expected argument #1 to be of type symbol or stringCLIPS> (build (create$ a x y)) ; 10.4.6[ARGACCES5] Function build expected argument #1 to be of type symbol or stringCLIPS> (build deftemplate) ; 10.4.6FALSECLIPS> (build "(defrule foo =>)") ; 10.4.6TRUECLIPS> (build "(defrule blah)") ; 10.4.6[PRNTUTIL2] Syntax Error: Check appropriate syntax for defrule.ERROR:(defrule MAIN::blah)FALSECLIPS> (build "(+ 3 4)") ; 10.4.6FALSECLIPS> (build "defrule foo =>)") ; 10.4.6FALSECLIPS> (rules) ; 10.4.6fooFor a total of 1 defrule.CLIPS> (clear) ; 10.4.6CLIPS> (upcase) ; 10.4.7[ARGACCES4] Function upcase expected exactly 1 argument(s)CLIPS> (upcase "abc" "def") ; 10.4.7[ARGACCES4] Function upcase expected exactly 1 argument(s)CLIPS> (upcase abc) ; 10.4.7ABCCLIPS> (upcase "xyz") ; 10.4.7"XYZ"CLIPS> (upcase 8993.34) ; 10.4.7[ARGACCES5] Function upcase expected argument #1 to be of type symbol, string, or instance nameCLIPS> (upcase 8993) ; 10.4.7[ARGACCES5] Function upcase expected argument #1 to be of type symbol, string, or instance nameCLIPS> (upcase [another-thingo]) ; 10.4.7[ANOTHER-THINGO]CLIPS> (upcase (create$ jkkj 78 3.45)) ; 10.4.7[ARGACCES5] Function upcase expected argument #1 to be of type symbol, string, or instance nameCLIPS> (upcase "this is a sentence") ; 10.4.7"THIS IS A SENTENCE"CLIPS> (upcase "THIS IS A SENTENCE") ; 10.4.7"THIS IS A SENTENCE"CLIPS> (upcase "aA1234567890zZ") ; 10.4.7"AA1234567890ZZ"CLIPS> (upcase "aA!@#$%^&*()zZ") ; 10.4.7"AA!@#$%^&*()ZZ"CLIPS> (upcase "`~-_=+[{]}|;:',<.>?") ; 10.4.7"`~-_=+[{]}|;:',<.>?"CLIPS> (upcase "This is a test of upcase")"THIS IS A TEST OF UPCASE"CLIPS> (upcase A_Word_Test_for_Upcase) ; 10.4.7A_WORD_TEST_FOR_UPCASECLIPS> (lowcase) ; 10.4.8[ARGACCES4] Function lowcase expected exactly 1 argument(s)CLIPS> (lowcase "ABC" "DEF") ; 10.4.8[ARGACCES4] Function lowcase expected exactly 1 argument(s)CLIPS> (lowcase ABC) ; 10.4.8abcCLIPS> (lowcase "XYZ") ; 10.4.8"xyz"CLIPS> (lowcase 8993.34) ; 10.4.8[ARGACCES5] Function lowcase expected argument #1 to be of type symbol, string, or instance nameCLIPS> (lowcase 8993) ; 10.4.8[ARGACCES5] Function lowcase expected argument #1 to be of type symbol, string, or instance nameCLIPS> (lowcase [another-thingo]) ; 10.4.8[another-thingo]CLIPS> (lowcase (create$ jkkj 78 3.45)) ; 10.4.8[ARGACCES5] Function lowcase expected argument #1 to be of type symbol, string, or instance nameCLIPS> (lowcase "this is a sentence") ; 10.4.8"this is a sentence"CLIPS> (lowcase "THIS IS A SENTENCE") ; 10.4.8"this is a sentence"CLIPS> (lowcase "aA1234567890zZ") ; 10.4.8"aa1234567890zz"CLIPS> (lowcase "aA!@#$%^&*()zZ") ; 10.4.8"aa!@#$%^&*()zz"CLIPS> (lowcase "`~-_=+[{]}|;:',<.>?") ; 10.4.8"`~-_=+[{]}|;:',<.>?"CLIPS> (lowcase "this is a test of lowcase")"this is a test of lowcase"CLIPS> (lowcase A_Word_Test_for_Lowcase) ; 10.4.8a_word_test_for_lowcaseCLIPS> (str-compare) ; 10.4.9[ARGACCES4] Function str-compare expected at least 2 argument(s)CLIPS> (str-compare "xyz") ; 10.4.9[ARGACCES4] Function str-compare expected at least 2 argument(s)CLIPS> (str-compare "zykk" "kkdfj" "df") ; 10.4.9[ARGACCES5] Function str-compare expected argument #3 to be of type integerCLIPS> (str-compare 783.9 "dlfj") ; 10.4.9[ARGACCES5] Function str-compare expected argument #1 to be of type symbol, string, or instance nameCLIPS> (str-compare [xyz] "ldf") ; 10.4.91CLIPS> (str-compare kkdm 9883) ; 10.4.9[ARGACCES5] Function str-compare expected argument #2 to be of type symbol, string, or instance nameCLIPS> (str-compare klkll (create$ a)) ; 10.4.9[ARGACCES5] Function str-compare expected argument #2 to be of type symbol, string, or instance nameCLIPS> (str-compare abc ABC) ; 10.4.91CLIPS> (str-compare ABC abc) ; 10.4.9-1CLIPS> (str-compare "abcd" "abce") ; 10.4.9-1CLIPS> (str-compare "ABCD" ABCE) ; 10.4.9-1CLIPS> (str-compare abc xyz) ; 10.4.9-1CLIPS> (str-compare xyz abc) ; 10.4.91CLIPS> (str-compare [a23] [a24]) ; 10.4.9-1CLIPS> (str-compare same "same") ; 10.4.90CLIPS> (str-compare "string1" "string2") ; 10.4.9-1CLIPS> (str-length) ; 10.4.10[ARGACCES4] Function str-length expected exactly 1 argument(s)CLIPS> (str-length "zykk" "kkdfj") ; 10.4.10[ARGACCES4] Function str-length expected exactly 1 argument(s)CLIPS> (str-length 783.9) ; 10.4.10[ARGACCES5] Function str-length expected argument #1 to be of type symbol, string, or instance nameCLIPS> (str-length [xyz]) ; 10.4.103CLIPS> (str-length 9883) ; 10.4.10[ARGACCES5] Function str-length expected argument #1 to be of type symbol, string, or instance nameCLIPS> (str-length (create$ a)) ; 10.4.10[ARGACCES5] Function str-length expected argument #1 to be of type symbol, string, or instance nameCLIPS> (str-length "") ; 10.4.100CLIPS> (str-length "x y z") ; 10.4.105CLIPS> (str-length a) ; 10.4.101CLIPS> (str-length "abcd") ; 10.4.104CLIPS> (str-length xyz) ; 10.4.103CLIPS> (dribble-off)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -