home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / EXAMPLES.ARC / CH04EX06.PRO < prev    next >
Encoding:
Prolog Source  |  1988-06-21  |  440 b   |  20 lines

  1. /*
  2.    Turbo Prolog 2.0 Chapter 4, Example Program 4
  3.    
  4.    Copyright (c) 1986, 88 by Borland International, Inc
  5.    
  6. */
  7.    
  8. domains
  9.    person = symbol
  10.  
  11. predicates
  12.    father(person)                                 /* This person is a father */
  13.    father(person, person)    /* One person is the father of the other person */
  14.  
  15. clauses
  16.    father(Man) :- 
  17.       father(Man,_).
  18.    father(adam, seth).
  19.    father(abraham, isaac).
  20.