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

24 lines
276 B
Plaintext
Raw Normal View History

:- 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.