Apocrypha

nanoprolog

Very small interpreter for a Prolog-like language

This package was developed to demonstrate the ideas behind the Prolog language. It contains a very small interpreter (@Language.Prolog.Nanoprolog@) which can be run on its own. It reads a file with definitions, and then prompts for a goal. All possibe solutions are printed, preceded by a tree showing which rules were applied in which order. The file @royals.pro@ contains a description of part of the Dutch royal family, whereas the file @tc.pro@ shows unification at work in a very small type inferencer.

Available in

OverlayNewestEbuildsLast activity
haskell GitHub ↗ 0.3-r2 1 2 d details ›

Versions & arches

VersionOverlay amd64 Committed
0.3-r2 haskell amd64 testing 6 mo view · download · history ↗