Quoting Jack Kerkhof <[EMAIL PROTECTED]>:

> Hi Mark,
> 
> This looks like a very interesting and useful utility you've put
> together here.
> 
> I could certainly use this output to do some introspection of my own
> rulebase.
> 
> Problem is, I haven't looked at lisp code for over a decade, and can
> barely follow it.
> 
> Three things might get me started, though:
> 
> 1) How do I envoke this? (process-jess-clp-file ?)
>     Can it be run with multiple .clp files (if not, I could just merge
> them).

There's a simple example at the beginning of the file:

    (index-clp-file "c:\\Projects\\Knots\\java\\knot-perimeter.clp")

INDEX-CLP-FILE is a simple function

    (defun index-clp-file (file)
      (let ((jess-info (process-jess-clp-file file)))
        (html-write jess-info
                    (make-pathname :type "html" :defaults file))))

PROCESS-JESS-CLP-FILE returns a JESS-INFO object.  This is where all
of the information is collected.  To process more files, this 
JESS-INFO object can be passed as a second argument to subsequent 
calls to PROCESS-JESS-CLP-FILE.  Once all files are processed, 
call HTML-WRITE on the JESS-INFO object to generate the output file.

Note that if you have a clp file the uses JESS's "batch" operator
to load other clp files, the utility will notice and process those
files as well.

> 2) Have you tried running this under emacs (the only lisp environment I
> have at my
> disposal)

Alas, this utility uses the CommonLisp object system, which I believe 
is not supported by Emacs Lisp.

> 3) Any other pointers welcome!

None off the top of my head, but feel free to ask more questions
and let me know how it works out for you.


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to