Jump to content

Help with PROLOG's "clause" predicate.

- - - - -

  • Please log in to reply
No replies to this topic

#1
ageof

ageof

    Newbie

  • Members
  • Pip
  • 6 posts
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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users