Skip to main content

A conservative approach to meta-programming in constraint logic programming

  • Conference paper
  • First Online:
Book cover Progamming Language Implementation and Logic Programming (PLILP 1993)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 714))

Abstract

Constraint Logic Programming [4] extends Logic Programming by generalizing the notion of unification to constraint solving. This is achieved by fixing the interpretation of some of the symbols in the language. The two alternative mechanisms used in the currently implemented CLP systems to achieve this operation are: (1) fix the interpretation before the program executes or (2) fix the interpretation at a point during program execution when it is used in a constraint. CLP(R) [5] and Prolog-III [1] take the first approach whereas CHIP [2] takes the second approach. The problem with the first approach is that interpreted terms cannot be manipulated syntactically. The problem with the second approach is that all constraint operations have to be made explicit and this increases the difficulty of programming. We propose a synthesis of both approaches that overcomes their individual difficulties. Our method is implemented in the ECLiPSe compiler system.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alain Colmerauer, “Opening the Prolog-III Universe”, BYTE Magazine, August, 1987.

    Google Scholar 

  2. Mehmet Dincbas, Pascal Van Hentenryck, Helmut Simonis, Abderrahmane Aggoun, Thomas Graf and Françoise Berthier, “The Constraint Logic Programming Language CHIP”, Proceedings of the 1988 International Conference on Fifth Generation Computer Systems, ICOT, 1988.

    Google Scholar 

  3. Nevin Heintze, Spiro Michaylov, Peter Stuckey and Roland Yap, “On Meta-Programming in CLP(R)”, Proceedings of the 1989 North American Conference on Logic Programming, Cleveland, Ohio, USA, October 16–20, 1989.

    Google Scholar 

  4. Joxan Jaffar and Jean-Louis Lassez, “Constraint Logic Programming”, Proceedings of the 1987 ACM Symposium on Principles of Programming Languages, Munich, January 1987, pp. 111–119.

    Google Scholar 

  5. Joxan Jaffar and Spiro Michaylov, “Methodology and Implementation of a CLP System”, Proceedings of the 4th International Conference on Logic Programming, Melbourne, 1987, pp. 196–218.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Maurice Bruynooghe Jaan Penjam

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Lim, P., Schimpf, J. (1993). A conservative approach to meta-programming in constraint logic programming. In: Bruynooghe, M., Penjam, J. (eds) Progamming Language Implementation and Logic Programming. PLILP 1993. Lecture Notes in Computer Science, vol 714. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57186-8_70

Download citation

  • DOI: https://doi.org/10.1007/3-540-57186-8_70

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57186-5

  • Online ISBN: 978-3-540-47945-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics