Advertisement
Crazyvlad

Untitled

Dec 19th, 2022
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. (defrule rmother
  2. (person (name ?x) (gender female))
  3. (person (name ?y))
  4. (parent (parentname ?x) (childname ?y))
  5. =>
  6. (printout t ?x “ is a mother of ” ?y crlf)
  7. (assert (mother (name1 ?x) (name2 ?y)))
  8. )
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement