skip to main content
article
Free Access

Toward integrating imperative and logic programming paradigms: WYSIWYG approach to PROLOG programming

Published:02 January 1991Publication History
Skip Abstract Section

Abstract

This paper presents an integration of imperative and logic programming, implemented on a PROLOG interpreter. The idea is to exploit the interpreter's execution model to support a procedural style of coding, and to imcorporate the notion of state by means of the use of the internal database. Both the coding style and some experimental structured-like programming constructs are discussed. The proposed integration provides hints to achieve an extensible language (i. e. iterative control structures that may be useful when tail recursion optimization is not possible) and also benefits in learning the equivalence between its declarative and operational semantics.

References

  1. {1} Arity PROLOG Language Reference Arity Corporation. 1986.Google ScholarGoogle Scholar
  2. {2} PROLOG Programming for Artifical Intelligence; Ivan Bralko Springer-Verlag, NY. 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. {3} Understanding Control Flow of PROLOG Programs Lawrence Byrd Proc. Workshop on Logic Programming, Decebren, Hungary, 1880.Google ScholarGoogle Scholar
  4. {4} Programming in PROLOG Clocksin W. F. & Mellish C. S. Springer-Verlag, NY, 1884.Google ScholarGoogle Scholar
  5. {5} Procedural Algorithms in PROLOG Michael Covington PC Techn. Journal 5-3 pp. 159-164.Google ScholarGoogle Scholar
  6. {6} Procedural Metapredicates for PROLOG Delrieux C., Azero, P. & Tohmé, F. Unpublished Report.Google ScholarGoogle Scholar
  7. {7} Toward Integration of the Imperative & Logic Programming Paradigms: Horn Clause Programming in the Pascal Environment Atanas Radensky SIGPLAN Notices 25(2). 15-24. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. {8} The Art of PROLOG Sterling L. & Shapiro E. MIT Press, MA, 1986.Google ScholarGoogle Scholar

Index Terms

  1. Toward integrating imperative and logic programming paradigms: WYSIWYG approach to PROLOG programming

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in

          Full Access

          • Published in

            cover image ACM SIGPLAN Notices
            ACM SIGPLAN Notices  Volume 26, Issue 3
            March 1991
            86 pages
            ISSN:0362-1340
            EISSN:1558-1160
            DOI:10.1145/122167
            Issue’s Table of Contents

            Copyright © 1991 Authors

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 2 January 1991

            Check for updates

            Qualifiers

            • article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader