View on GitHub

Tiny-Prolog-in-OCaml

A tiny implementation of a small subset of the Prolog language, 🐫 in OCaml. With small and fun examples.

This folder contains the examples code of Tiny-Prolog-in-OCaml

A tiny implementation of a small subset of the Prolog language, in OCaml. With small and fun examples.

WARNING: this project only has an educational purpose, for a real-world use of Prolog, please refer to GNU Prolog (gprolog).

List of examples

Basic examples

Other examples

How to run them?

cd exemples
../prolog/prolog ./pair.pl "pair(o)."  # load a theory and ask a question

:scroll: License ? GitHub license

This (small) repository is published under the terms of the MIT license (file LICENSE). © Lilian Besson, 2018.

Maintenance Ask Me Anything ! Analytics

made-with-OCaml made-for-teaching

ForTheBadge built-with-science ForTheBadge uses-badges ForTheBadge uses-git