Advertisement
Crazyvlad

Untitled

Dec 19th, 2022
1,909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defrule rson
  2. (person (name ?x) (gender male))
  3. (person (name ?y))
  4. (parent (parentname ?y) (childname ?x))
  5. =>
  6. (printout t ?x โ€œ is a son of โ€ ?y crlf)
  7. (assert (son (name1 ?x) (name2 ?y)))
  8. )
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement