Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prolog Error: Full stop in clause-body? Cannot redefine ,/2

I just started learning prolog. I compiled a file with SWI-Prolog but got an error message: Prolog Error: Full stop in clause-body?

My file:

loves( vincent   , mia ) .
loves( marsellus , mia ) .

jealous(X,Y) :=
  loves(X,Z) ,
  loves(Y,Z) .
like image 221
user234159 Avatar asked Oct 06 '14 19:10

user234159


1 Answers

My mistake, I realized that it's should be :-, not :=.

like image 121
user234159 Avatar answered Sep 30 '22 22:09

user234159