Prolog Tutorial

Module shebang

:- use_module(library(shebang)).

The first line of this file contains the „magic“ :)

It is both valid shell script as a prolog comment.

More infos can be found here

main

The main function is getting started because of

:- initialization(main).