I think calvin pevee wrote:
> 
> r.executeCommand("(defrule show-adv-attributes" +
>             //"?fact <- (adv-attributes (id ?id)
...
> 
> Java throws me this exception:-
> 
> Jess reported an error in routine Jesp.parseDefrule.
>   Message: Expected '=>' .
>   Program text: ( defrule show-adv-attributes?fact <- 
> at line 1.
> 
> 

Look at the error message. See how "show-adv-attributes?fact" is
smooshed together? In assembling your String, you've neglected to put
a space or newline in between the name of the rule and the variable
that first pattern is bound to.  '?' is a legal character in names
(for better or for worse.) So anyway, that's why there's an error on
this rule. 

There no difference at all between the syntax accepted by
"executeCommand()" and the  syntax you use in a .clp file -- the same
parser reads them both.


---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

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