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


I have started learning prologo so far. I compiled a file with SWI-Prolog, but found an error message: Prolog error: full stop in clause-body?

My file:

  loves (vincent, mia). Loves (Marsellus, Mia) Heartburn (X, Y): = Love (X, Z), Loves (Y, Z)    

I understand that it should be: -, not: =.

Comments

Post a Comment

Popular posts from this blog

java - Joda Time Interval Not returning what I expect -

sip - Call SipJs to Asterisk 12 -

javascript - Render HTML after each iteration in loop -