All Manuals > KnowledgeWorks and Prolog User Guide > 2 Tutorial

NextPrevUpTopContentsIndex

2.2 Loading the Tutorial

Figure 2.2 KnowledgeWorks Listener

First bring up a KnowledgeWorks Listener by choosing KnowledgeWorks > Listener from the KnowledgeWorks Podium. The KnowledgeWorks Listener accepts Lisp input as well as KnowledgeWorks input. Enter

(in-package "KW-USER")

into the KnowledgeWorks Listener, and then change the current directory to that of the animals demo by entering

(cd (system:lispworks-dir "examples/kw/animal/"))

If this fails, check the value of the Lisp variable *lispworks-directory* .

Load the tutorial by typing

(load "defsystem")

to load the tutorial system definition, and

(compile-system "ANIMAL" :load t)

to compile and load the rules and object base (CLOS objects). In interpreting these two commands, the KnowledgeWorks Listener has behaved just like a Lisp Listener. In general, whenever input has no specific KnowledgeWorks interpretation, the KnowledgeWorks Listener just accepts it as Lisp.


KnowledgeWorks and Prolog User Guide (Unix version) - 6 Dec 2011

NextPrevUpTopContentsIndex