main.pro
Loading editor…
ReadyLn 1, Col 1Prolog

Prolog

Prolog online compiler

Run Prolog online: load facts and rules, run a query and see the answers. Free, with no install or sign-up.

About this Prolog compiler

Prolog is the classic logic language. Load a small knowledge base and query it in the sandbox to explore unification and backtracking.

Questions and answers

How do I supply a query?
Follow the sample: facts and rules in the file, and a goal run by an initialization directive. The system is SWI-Prolog 10.0.