Haskell
Switch branches/tags
Nothing to show
Latest commit 43f5710 Dec 30, 2010 @propella added comments for haddock
Permalink
Failed to load latest commit information.
LICENSE
Main.hs
Prolog.hs
README typo Dec 11, 2010
Setup.hs added cabal Dec 11, 2010
aprolog.cabal
demo.prolog add prolog source Apr 29, 2009
note-ja.txt
note.html add moredocumentations May 1, 2009
test.hs Add README, test.hs, and copyright description May 1, 2009

README

A pure prolog interpreter

* Getting started

$ runhaskell Main.hs
or

$ hugs Prolog.hs 
Prolog> main

* Command

food(apple). -- Add a clause.
?- food(X).  -- Query.
??           -- Show all.

* Example

runhaskell Main.hs < demo.prolog

* Compile with ghc

ghc --make Main.hs