Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defrule rbrother
- (person (name ?x) (gender male))
- (person (name ?y))
- (parent (parentname ?z) (childname ?x))
- (parent (parentname ?z) (childname ?y))
- =>
- (if (<> (str-compare ?x ?y) 0) then
- (printout t ?x “ is a brother of ” ?y crlf)
- (assert (brother (name1 ?x) (name2 ?y))))
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement