Wamcompiler Save

Prolog implementation based on Warren's abstract machine

Project README

README

This is a prolog compiler written in Common Lisp which compiles prolog code to bytecode of Warren's abstract machine (WAM).

I recommend using Steel Bank Common Lisp (SBCL). To start REPL, eval the following expression:

(load "wamcompiler.lisp")
(repl)

Input ';' to show the next solution, 'y' to stop finding solutions, or 'a' to show all solutions.

To show the compiled bytecode, eval the following expression:

(show-wamcode "predicate-name" predicate-arity)

An article of this program (in Japanese): 「すごいPrologつくって学ぼう?!」 pp.23-37 http://www.kitcc.org/share/lime/lime56.pdf

References

Open Source Agenda is not affiliated with "Wamcompiler" Project. README Source: matsud224/wamcompiler
Stars
37
Open Issues
2
Last Commit
4 years ago

Open Source Agenda Badge

Open Source Agenda Rating