I am trying to get my feet wet with some Prolog, as I have a project due in it relatively soon. How would I do something simple such as displaying some output text to the console? I am using the SWI shell, and attempting to consult a .pro file that looks like this
write_to_screen():-
write("Hello World").
However, when I try and consult this file, I come across compile errors. Anyone know how you would call this function from the SWI shell?
*the error I am getting is 'Syntax error: Illegal start of term'