This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/Logtalk/examples/metainterpreters/database.lgt
pmoura 2d7ccc1278 Logtalk 2.28.2 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1712 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-11-07 18:11:49 +00:00

24 lines
276 B
Plaintext

:- object(database,
imports(solver, proof_tree, tracer)).
:- public(p/1).
:- private(q/2, r/1, s/1, t/2).
:- dynamic(p/1, q/2, r/1, s/1, t/2).
p(X) :- q(X, Y), r(Y).
q(X, Y) :- s(X), t(X, Y).
r(a).
r(b).
s(1).
s(2).
s(3).
t(1, a).
t(2, b).
:- end_object.