propella/prolog
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
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