1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | (defrule readin ?f<-(initial-fact) => (retract ?f) (assert (number (read))) ) (defrule writeout ?f<-(number ?n)(test (<> ?n 42)) => (retract ?f) (printout t ?n crlf) (assert (initial-fact)) ) (reset) (run) (exit) |
-
upload with new input
-
result: Success time: 0s memory: 3080 kB returned value: 0
(defrule readin ?f<-(initial-fact) => (retract ?f) (assert (number (read))) ) (defrule writeout ?f<-(number ?n)(test (<> ?n 42)) => (retract ?f) (printout t ?n crlf) (assert (initial-fact)) ) (reset) (run) (exit)[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3080 kB returned value: 0
(defmodule MAIN (export ?ALL))
[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3080 kB returned value: 0
(defrule readin ?f <- (initial-fact) => (retract ?f) (assert (number (read)))
[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3080 kB returned value: 0
;;; ====================================================== ;;; CS440 Assignment 3 (Part 5) ;;; ;;; CLIPS Version 6.0 Example ;;; ;;; To execute, merely load, reset and run. ;;; ====================================================== (defrule readin ?f <- (initial-fact) => (retract ?f) (assert (number (read))) (printout t "Would you say you're introverted or extroverted? ") (bind ?rarity (read)) (printout t "Would you be able to start a fire using flint and steel? ") (bind ?utility (read)) (printout t "Are you more 'right brained' (artistic, visual, linguistic) or 'left brained' (analytical, logical, numeric)? ") (bind ?aesthetic (read)) (printout t "Are you the one being held up by your friends, or is it you doing the helping out? ") (bind ?humbug-usage (read)) (printout t "When talking with a group of friends, is the topic usually about you? ") (bind ?humbug-finding (read)) (printout t "Would you say you had a sheltered childhood? ") (bind ?drop-similarity (read))
[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3080 kB returned value: 0
(writeout 1 "Would you say you're introverted or extroverted? ") (bind ?rarity (read))
[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3080 kB returned value: 0
;;; ====================================================== ;;; CS440 Assignment 3 (Part 5) ;;; ;;; CLIPS Version 6.0 Example ;;; ;;; To execute, merely load, reset and run. ;;; ====================================================== (writeout "Would you say you're introverted or extroverted? ") (bind ?rarity (read)) (writeout "Would you be able to start a fire using flint and steel? ") (bind ?utility (read)) (writeout "Are you more 'right brained' (artistic, visual, linguistic) or 'left brained' (analytical, logical, numeric)? ") (bind ?aesthetic (read)) (writeout "Are you the one being held up by your friends, or is it you doing the helping out? ") (bind ?humbug-usage (read)) (writeout "When talking with a group of friends, is the topic usually about you? ") (bind ?humbug-finding (read)) (writeout "Would you say you had a sheltered childhood? ") (bind ?drop-similarity (read))
[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3080 kB returned value: 0
;;; ====================================================== ;;; CS440 Assignment 3 (Part 5) ;;; ;;; CLIPS Version 6.0 Example ;;; ;;; To execute, merely load, reset and run. ;;; ====================================================== (printout t "Would you say you're introverted or extroverted? ") (bind ?rarity (read)) (printout t "Would you be able to start a fire using flint and steel? ") (bind ?utility (read)) (printout t "Are you more 'right brained' (artistic, visual, linguistic) or 'left brained' (analytical, logical, numeric)? ") (bind ?aesthetic (read)) (printout t "Are you the one being held up by your friends, or is it you doing the helping out? ") (bind ?humbug-usage (read)) (printout t "When talking with a group of friends, is the topic usually about you? ") (bind ?humbug-finding (read)) (printout t "Would you say you had a sheltered childhood? ") (bind ?drop-similarity (read))
[ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin. -
result: Success time: 0s memory: 3032 kB returned value: 0
1 2 10 42 11
[CSTRCPSR1] Expected the beginning of a construct. 1 2 10



