On Structuring Contextual Logic Programs

Standardization for Prolog came during the 1990’s, initially and deliberately leaving out one aspect which is essential for real world application development: the modularity mechanism. This situation has in the meantime been remedied in the current ISO proposal for modules in Prolog. In this article we build on our previous work on Contextual Logic Programming (CxLP) and introduce mechanisms which provide much needed functionality: on one hand, a stricter specification for acceptable program structure when using contexts and, on the other, a mechanism which more effectively promotes OO-style code reuse and concealment, while retaining a lightweight syntax.

[1]  Salvador Abreu,et al.  Using a Logic Programming Language with Persistence and Contexts , 2005, INAP.

[2]  Manuel V. Hermenegildo,et al.  The Ciao Module System: A New Module System for Prolog , 1999, Parallelism and Implementation Technology for Logic Programming@ICLP.

[3]  Luís Monteiro,et al.  Contextual Logic Programming , 1989, ICLP.

[4]  Daniel Diaz,et al.  Objective: In Minimum Context , 2003, ICLP.