Prolog is a rule based programming language.

1. Installation

On MacOS - use:

$ brew install swi-prolog

For all other systems see: https://www.swi-prolog.org/Download.html

Alternatively:

$ brew install gnu-prolog
gprolog
?- halt.

2. Prolog CLI

  • start prolog and load code

$ swipl -s hello.pl

3. Quick Start

  • A prolog program file ends with a .pl

  • Prolog code statements end with . a period

  • Proglog statements are joined together with , a comma

4. Resources

5. Generating these Docs

$ asciidoctor -D docs/prolog code/prolog/adoc/*