Sunday, 15 September 2013

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



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

i started learning prolog. compiled file swi-prolog got error message: prolog error: total stop in clause-body?

my file:

loves( vincent , mia ) . loves( marsellus , mia ) . jealous(x,y) := loves(x,z) , loves(y,z) .

silly me realised should :-, not :=.

compiler-errors prolog

No comments:

Post a Comment