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

  1. /*
  2.    Copyright (c) 1986, 90 by Prolog Development Center
  3. */
  4.    
  5. predicates
  6.   isletter(char)
  7.  
  8. clauses
  9. /* When applied to characters, '<=' means */
  10. /* "alphabetically precedes or is the same as" */
  11.   isletter(Ch) :- 'a' <= Ch, Ch <= 'z'.
  12.   isletter(Ch) :- 'A' <= Ch, Ch <= 'Z'.
  13.  
  14.