Following is an example of the use of the FRL, in CL, with inheritance
through several A-KIND-OF frame slots, ie. taxonomy categories:
------------------------------------------------------------
; SLIME 2014-10-10
CL-USER> (load "FRL.lisp")
; file: /home/antti/Documents/FRL/FRL.lisp
; in: DEFUN FPUT
; (FGET-FRAME FRAME)
;
; caught STYLE-WARNING:
; undefined function: FGET-FRAME
;
; compilation unit finished
; Undefined function:
; FGET-FRAME
; caught 1 STYLE-WARNING condition
; in: DEFUN FGET-I
; (FGET-CLASSES FRAME)
;
; caught STYLE-WARNING:
; undefined function: FGET-CLASSES
; (FGET-I1 (FGET-CLASSES FRAME) SLOT)
;
; caught STYLE-WARNING:
; undefined function: FGET-I1
;
; compilation unit finished
; Undefined functions:
; FGET-CLASSES FGET-I1
; caught 2 STYLE-WARNING conditions
; in: DEFUN FGET-CLASSES
; (FGET-CLASSES-AUX FRAME)
;
; caught STYLE-WARNING:
; undefined function: FGET-CLASSES-AUX
;
; compilation unit finished
; Undefined function:
; FGET-CLASSES-AUX
; caught 1 STYLE-WARNING condition
; in: DEFUN FGET-N
; (FGET-D FRAME SLOT)
;
; caught STYLE-WARNING:
; undefined function: FGET-D
; (FGET-P FRAME SLOT)
;
; caught STYLE-WARNING:
; undefined function: FGET-P
;
; compilation unit finished
; Undefined functions:
; FGET-D FGET-P
; caught 2 STYLE-WARNING conditions
T
CL-USER> (fput 'antti 'a-kind-of 'value 'man)
MAN
CL-USER> (fput 'man 'a-kind-of 'value 'human)
HUMAN
CL-USER> (fput 'human 'a-kind-of 'value 'mammal)
MAMMAL
CL-USER> (fput 'mammal 'a-kind-of 'value 'vertebrate)
VERTEBRATE
CL-USER> (fput 'vertebrate 'organism 'value 'endothermic)
ENDOTHERMIC
CL-USER> (fget-i 'antti 'organism)
(ENDOTHERMIC)
CL-USER>
------------------------------------------------------------
Following comes the same exercise with the Shen/CL connection:
------------------------------------------------------------
antti@mydebian:~/Documents/FRL$ file ./Shen
./Shen: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=4a4c4bc33cfb455f42358132ed1de8eeae24c999, stripped
antti@mydebian:~/Documents/FRL$ ls -l Shen
-rwxr-xr-x 1 antti antti 68976688 Sep 30 02:19 Shen
antti@mydebian:~/Documents/FRL$ ./Shen
(1-) (load-cl "FRL.lisp")
PRESERVE
(2-) (FPUT 'ANTTI 'A-KIND-OF 'VALUE 'MAN)
'MAN
(3-) (FPUT 'MAN 'A-KIND-OF 'VALUE 'HUMAN)
'HUMAN
(4-) (FPUT 'HUMAN 'A-KIND-OF 'VALUE 'MAMMAL)
'MAMMAL
(5-) (FPUT 'MAMMAL 'A-KIND-OF 'VALUE 'VERTEBRATE)
'VERTEBRATE
(6-) (FPUT 'VERTEBRATE 'ORGANISM 'VALUE 'ENDOTHERMIC)
'ENDOTHERMIC
(7-) (FGET-I 'ANTTI 'ORGANISM)
[]
(8-) ((protect QUIT))
antti@mydebian:~/Documents/FRL$
antti@mydebian:~/Documents/FRL$
------------------------------------------------------------
When comparing these two runs, one can see that there is there
genuinely something wrong, somewhere.
(No criticism for Dr Tarver, really. Both the books and the program
are truly fine.)
yours sincerely, Dr A. J. Y.
HELSINKI
Finland, the Continental Europe