language: CLIPS (clips 6.24)
date: 840 days 6 hours ago
link:
visibility: public
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

    (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.