You seem to be missing a closing bracket in the 'act' pattern
in your rule.

e.g.   (act (a ?x) (b ?y))     <---- need the extra ) here

Bob.

> -----Original Message-----
> From: Jeffrey Hau [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 30, 2003 12:48 PM
> To: [EMAIL PROTECTED]
> Subject: JESS: help with defrule
> 
> 
> i have defined a rule as follows,
> 
> (defrule goal-reached ""
>     (act (a ?x) (b ?y)
>     ?n <- (target (a ?x) (b ?y))
>     =>
>     (retract ?n)
> )
> 
> what i am trying to do to fire the rule when there is a act fact that 
> matches the target fact, and then retract the target but i 
> keep getting 
> "expected =>" when parsing my file,
> 
> can anyone help?
> 
> thanks very much
> 
> Jeff
> 
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
> 

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