home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l217 / 2.ddi / EXAMPLES / CH04EX06.PRO < prev    next >
Encoding:
Prolog Source  |  1990-03-26  |  380 b   |  17 lines

  1. /*
  2.    Copyright (c) 1986, 90 by Prolog Development Center
  3. */
  4.    
  5. domains
  6.    person = symbol
  7.  
  8. predicates
  9.    father(person)                                 /* This person is a father */
  10.    father(person, person)    /* One person is the father of the other person */
  11.  
  12. clauses
  13.    father(Man) :- 
  14.       father(Man,_).
  15.    father(adam, seth).
  16.    father(abraham, isaac).
  17.