Pergunta

I'm using SWI-Prolog and I have a .pl file but cannot load it correctly. Not sure if I'm looking in the right places but can't find any info running it on Mac OSX. I should be able to right click on my .pl file and open with Prolog and it should work right? It doesn't even work when I do this, always tells me "Undefined Procedure"

Using Mac OSX 10.9.2

SWI-Prolog Version 6.6.5

Foi útil?

Solução

Assuming you're using the SWI-Prolog.app application, open it, choose "Consult" from the "File" menu and select your Prolog file. I think the application doesn't (yet?) support consulting a Prolog file by right-clicking in it and selecting the SWI-Prolog.app application.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top