2

I have to study Prolog for the AI course at school. My teacher uses Visual Prolog which is only available on Windows. I use MacOS so I downloaded SWI-Prolog thinking it's similar. However, I noticed that the syntax is not the same. For example: the keyword if is replaced by :- in SWI-Prolog, also my teacher used this syntax:

predicates  
  likes(symbol, symbol)   

clauses  
  likes(ellen, tennis).    
  likes(john, football).  

which gives me an error in SWI-Prolog. What do I have to download to use the same syntax?

false
  • 10,264
  • 13
  • 101
  • 209
  • 1
    drop the whole **predicates** *section* and the **clauses** *keyword* – CapelliC Oct 12 '20 at 05:39
  • @CapelliC is there any Prolog implementation I can download that uses that syntax? –  Oct 12 '20 at 05:57
  • 3
    I think on MacOS you cannot find any... beware that Visual Prolog and SWI-Prolog have deeper differences than the superficial change I suggested – CapelliC Oct 12 '20 at 06:03
  • 2
    Visual Prolog is not a Prolog, it extends Prolog quite a bit. This is NOT about syntax. If you must use Visual Prolog on MacOS, you might as well use a VM with windows on it. – TA_intern Oct 12 '20 at 10:55

0 Answers0