I've tried a couple different ways to match
on a blank character. The defclass of tRec uses an atom
to correspond to a char in the Java class. Matching by specifying
an atom in the rule works, but when trying to match with blank
it doesn't work.
(defrule checkBlank
(tRec (code " "))
and
(defrule checkBlank
(tRec (code "\ "))
and
(defrule checkBlank
(tRec (code ""))
the asserted fact prints out as:
(tRec (code ))
However, (tRec (code A)) matches a rule such as: (defrule checkA (tRec
(code A)).
I'm thinking of just changing the type in the java class from char to
string.
That way, I don't have to worry about this.
KathyLee Simunich
Argonne National Lab
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------