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) .
My mistake, I realized that it's should be :-, not :=.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With