Adding constraint solving to Mercury
R Becket, MG de la Banda, K Marriott, Z Somogyi, PJ Stuckey, M Wallace, P VanHentenryck (ed.)
PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES | SPRINGER-VERLAG BERLIN | Published : 2006
The logic programming language Mercury is designed to support programming in the large. Programmer declarations in conjunction with powerful compile-time analysis and optimization allow Mercury programs to be very efficient. The original design of Mercury did not support constraint logic programming (CLP). This paper describes the extensions we added to Mercury to support CLP. Unlike similarly motivated extensions to Prolog systems, our objectives included preserving the purity of Mercury programs as much as possible, as well as avoiding any impact on the efficiency of non-CLP predicates and functions. © Springer-Verlag Berlin Heidelberg 2006.