Interesting. I hadn't thought of that! However, I am sending Jesp.parse() a more complex set of expressions. The pair of asserts are just a simple way to illustrate the problem. Bob [EMAIL PROTECTED] wrote: > Hi! > > Is there any reason why you don't just say > > "(assert (one 1) (two 2))" > > instead of > > "(assert (one 1)) (assert (two 2))"? > > The first expression correctly asserts the two facts. > > Greetings > > Thomas Barnekow > > ________________________________ > > Dipl.-Inform. Thomas Barnekow > Fraunhofer IAO, Competence Center Software Technology > > mail: Nobelstra�e 12, D-70569 Stuttgart, > Germany > > phone: +49 (0) 711 / 970 - 2346 > > fax: +49 (0) 711 / 970 - 2300 > > email: [EMAIL PROTECTED] > > web: http://www.swt.iao.fhg.de > > > > Bob Johnson > <bob@streampoint. An: [EMAIL PROTECTED] > com> Kopie: > Gesendet von: Thema: Re: JESS: multiple s-expressions > owner-jess-users@ > sandia.gov > > > 09.11.99 17:07 > Bitte antworten > an Bob Johnson > > > > Ernest, > > I see. Can you give me a hint as to how I might modify Jesp so that > it will consume multiple s-expressions? Unfortunately, I am already > tracking > a couple of minor modifications to the release. > > Thanks again. > > Bob > > Ernest Friedman-Hill wrote: > > > Hi Bob, > > > > It works this way just because that's how the CLIPS command-line > > interface works, and CLIPS compatibility used to be a big driver for > > Jess. > > > > I think Bob Johnson wrote: > > > > > > > > > I am wondering why Console.class only evaluates one s-expression > per > > > > > > invocation. More precisely, why does Jesp.parse() seem to only process > > > one > > > s expression given the "while (!val.equals(Funcall.EOF))" control > > > structure? > > > > > > Example: > > > > --------------------------------------------------------------------------------- > > > > > > > Jess, the Java Expert System Shell > > > Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation > > > Jess Version 5.0b2 11/8/99 > > > > > > Jess> (assert (one 1)) (assert (two 2)) > > > <Fact-0> > > > Jess> (facts) > > > f-0 (one 1) > > > For a total of 1 facts. > > > Jess> > > > > --------------------------------------------------------------------------------- > > > > > > > Regards, > > > > > > Bob > > > > > > > --------------------------------------------------------- > > Ernest Friedman-Hill > > Distributed Systems Research Phone: (925) 294-2154 > > Sandia National Labs FAX: (925) 294-2234 > > Org. 8920, MS 9012 [EMAIL PROTECTED] > > PO Box 969 http://herzberg.ca.sandia.gov > > Livermore, CA 94550 > (See attached file: bob.vcf)
begin:vcard n:Johnson;Bob tel;fax:303 544 0373 tel;work:303 440 8833 x20 x-mozilla-html:FALSE url:www.streampoint.com org:Streampoint Financial Systems, Inc. version:2.1 email;internet:[EMAIL PROTECTED] title:V.P. of Product Development adr;quoted-printable:;;4940 Pearl East Circle=0D=0ASuite 200=0D=0A;Boulder;CO;80301; fn:Bob Johnson end:vcard
