Hello.
I need to get the body of a clause consulted from a .pl file.
By example, this file:
p(X):-q(X).
q(a).
I need a predicate like "clause":
Theoretically, "clause(p(_X),C)" should unify C with "q(_X)", but it doesn't work. It returns this error:
"Permission error: cannot access static user:p/1".
What can I do?
I'm programming in SICStus Prolog.
Thank you.
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









