Hi, I am looking for a way convert user-inputed rules into Jess rules. I am able to control the interface, but it is not trivial to convert the following user inputed statement: If ( (x=1) OR (fname=bo*)) Then (set priority=1).
The problem I am having is that I am using Dr. Leff's XML integration, which turns XML into Jess facts. The facts look like: (Tag (TagName x) (Text 1)) (Tag (TagName fname) (Text Bob)) The rule would then need to look something like: (defrule Rule1 (Tag (TagName x) (Text "1")) (Tag (TagName fname) (Text ?name&:(call startswith ?name "bo")) Has anyone worked on parsing readable user input into jess syntax? Thanks, Bob __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -------------------------------------------------------------------- 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] --------------------------------------------------------------------
