Questions tagged [yap]

YAP is a Prolog system developed since 1985 at the Universities of Porto and Rio de Janeiro

YAP is a Prolog system developed since 1985 at the Universities of Porto and Rio de Janeiro.

33 questions
0
votes
1 answer

prolog delete head from a clause

I am using yap. Suppose I have this scenario: p(x,y) :- q(x), f(x,y), g(x). I need to put the body of the predicate in a list using the command listing(p). Expected output should be: [q,f,g]. How I can do that?
ameyer
  • 13
  • 4
0
votes
1 answer

Configure script failing

I just installed ubuntu 12.04 in a VMBox and now trying to install "YAP Prolog". Therefore I download the code using "git clone ..." and obtain the code, which i have to configure and build. Configuring and building works fine on my OSX, but…
Frempe
  • 269
  • 4
  • 11
-1
votes
2 answers

Prolog: comparing predicate value with constant

I have some problems with prolog, specifically I can't compare a value of a predicate with a constant. predicate(9). compare(X,Y) :- X
blinkettaro
  • 341
  • 6
  • 18
1 2
3