home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1990-03-26 | 394 b | 22 lines |
- /*
- Copyright (c) 1986, 90 by Prolog Development Center
- */
-
- domains
- name, thing = symbol
-
- predicates
- likes(name, thing)
- reads(name)
- is_inquisitive(name)
-
- clauses
- likes(john, wine).
- likes(lance, skiing).
- likes(Z, books) :-
- reads(Z), is_inquisitive(Z).
- likes(lance, books).
- likes(lance, films).
-
- reads(john).
- is_inquisitive(john).