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

  1. /*
  2.    Copyright (c) 1986, 90 by Prolog Development Center
  3. */
  4.  
  5. predicates
  6.    classify(integer, symbol)
  7.  
  8. clauses
  9.    classify(0, zero).
  10.    classify(X, negative) :- X < 0.
  11.    classify(X, positive) :- X > 0.