Thiên Nhạc Tâm
New member
How do I run a PL file in SWI Prolog?
Answer
Write a prolog program as a text file with a .
For example, program.pl . Open a terminal (Ctrl+Alt+T) and navigate to the directory where you stored your program.
Open SWI-Prolog by invoking swipl .In SWI-Prolog, type [program] to load the program, i.e. the file name in brackets, but without the ending.
Answer
Write a prolog program as a text file with a .
For example, program.pl . Open a terminal (Ctrl+Alt+T) and navigate to the directory where you stored your program.
Open SWI-Prolog by invoking swipl .In SWI-Prolog, type [program] to load the program, i.e. the file name in brackets, but without the ending.