Compilation of Disjunctive Logic Programs Using an Extended WAM
COMPSAC '96 Proceedings of the 20th Conference on Computer Software and Applications
Hi-index | 0.00 |
We describe a simple interpreter for {\em near-Horn Prolog (nH-Prolog)}, an extension of Prolog that allows multiple-head clauses and negated facts. Our interpreter demonstrates that the operational semantics of nH-Prolog is as simple as originally promised - indeed, quite close to Prolog. We present the inner loop of our interpreter in the form of a Prolog meta-interpreter. The performance of this simple interpreter (within a factor of 4 of the underlying Prolog system on interpreting definite clause programs) is sufficient to experiment with nH-Prolog programming. The design of the interpreter suggests that inner loop speed close to Prolog''s is possible.