Top "Swi-prolog" questions

SWI-Prolog is an open source implementation of Prolog that runs on Unix, Windows and Mac.

Running prolog on a mac

I am having the hardest trouble trying to run SWI-prolog on my Mac. When I type: /opt/bin/local/swipl …

macos installation osx-mavericks swi-prolog
Prolog Programming in Ubuntu

I have an interest in playing and fuxing with prolog, I have installed the swi-prolog and added the repository, just …

linux ubuntu prolog swi-prolog
Prolog: Making a procedure to print Hello World

I want to load this simple something into my Editor: Write:-repeat,write("hi"),nl,fail. So that it prints "…

procedure swi-prolog prolog-toplevel
Read a file line by line in Prolog

I'd like to read a plain text file and apply a predicate to each line (the predicates contain write which …

io prolog swi-prolog dcg
SWI Prolog change working directory/get current working directory?

in SWI Prolog terminal how do I view the current working directory and change the current working directory? I found: …

swi-prolog
SWI-Prolog - show long list

I'm using SWI-Prolog and I'm trying to print a list but if the list has more than 9 items - it …

prolog swi-prolog prolog-toplevel
How to run SWI-Prolog from the command line?

Is there a way to just create a prolog script called hello.pl like this: #!/usr/local/bin/swipl -q …

shell command-line prolog executable swi-prolog
Random items in Prolog

I know I can do X is random(10). to get a random number from 0 to 10, but is there a similar …

random prolog swi-prolog
Why is this prolog query both true and false?

My SWI-Prolog knowledge base contains the following two facts: f(a,b). f(a,c). Now if I pose the …

prolog swi-prolog prolog-toplevel
how to split a sentence in swi-prolog

I am trying my hands on SWI-Prolog in win xp. I am trying to understand how to split a sentence …

prolog swi-prolog dcg