skip to main content
article
Free access

An environment for logic programming

Published: 25 June 1985 Publication History

Abstract

We describe a programming environment for Prolog, a common logic programming language. The services offered by our system assist a Prolog user in the tasks of composing, editing, and storing logic (rule-based) programs, as well as in the control of their execution for debugging purposes.
In order to facilitate effective debugging of Prolog programs, we propose a new model of computation that can handle both pure Prolog and impure (side-effect causing) Prolog operations quite gracefully. This model employs two stacks representing the state of a computation with respect to the two major activities of Prolog execution: recursion and backtracking. This representation, in addition to being quite clear and intuitive, is easy to display on a terminal's screen and can be further processed.
We also describe a Prolog oriented editor with which the user may easily create and update Prolog source programs and, further, inspect states of computation as generated by the debugger.

References

[1]
Alberga, C. N., A. L. Brown, G. B. Leeman, Jr., M. Mikelsons, M. N. Wegman, "A Program Development Tool", IBM Journal of Research and Development, 28, 1 (January 1984), pp. 60-73.
[2]
Allison, Lloyd, "Syntax Directed Program Editing", Software-Practice and Experience, 13, (1983), pp. 453-465.
[3]
Clocksin, W. F., and C. S. Mellish, Programming in Prolog, Springer Verlag, 1981.
[4]
Delisle, N. M., D. E. Menikosy, and M. D. Schwartz, "Viewing a Programming Environment as a Single Tool", Proceedings of the ACM SIGSOFT/SIGPLAN Software Engineering Symposium on Practical Software Development Environments, Peter Henderson, Ed., Pittsburgh. PA, April 1984.
[5]
Francez, N., B. Klebanski, and A. Pnueli, "Backtracking in Recursive Computations", Acta Informatica, 8 (1977), pp. 125-144.
[6]
Hammond, P., and M. Sergot, APES: Augmented Prolog for Expert Systems, Reference Manual (micro-Prolog version), July 1984.
[7]
Horgan, J. R., and D. J. Moore, "Techniques for Improving Language Based Editors", Proceedings of the ACM SIGSOFT/SIGPLAN Software Engineering Symposium on Practical Software Development Environments, Peter Henderson, Ed., Pittsburgh, PA, April 1984.
[8]
McCabe, F. G., K. L. Clark, and B. D. Steel, micro-Prolog 3.1 Programmer's Reference Manual (CP/M and MSDOS Versions), Fourth Edition, March 1984.
[9]
Pereira, L. M., and A. Porto, "Selective Backtracking", in Logic Programming (K. L. Clark and S.-A. Tarnlund, editors), Academic Press, New York, 1982, pp. 107-114.
[10]
Teitelbaum, T., and T. Reps, "A Syntax-directed Programming Environment", Communications of the ACM, 24, 9 (September 1981), pp. 563-573.
[11]
Weinreb, D., and D. Moon, Lisp Machine Manual (third edition), MIT AI Laboratory, 1982.
[12]
Zelkovitz, M. V., "A Small Contribution to Editing with a Syntax Directed Editor", Proceedings of the ACM SIGSOFT/SIGPLAN Software Engineering Symposium on Practical Software Development Environments, Peter Henderson, Ed., Pittsburgh, PA, April 1984.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGPLAN Notices
ACM SIGPLAN Notices  Volume 20, Issue 7
July 1985
251 pages
ISSN:0362-1340
EISSN:1558-1160
DOI:10.1145/17919
Issue’s Table of Contents
  • cover image ACM Conferences
    SLIPE '85: Proceedings of the ACM SIGPLAN 85 symposium on Language issues in programming environments
    June 1985
    257 pages
    ISBN:0897911652
    DOI:10.1145/800225
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 25 June 1985
Published in SIGPLAN Volume 20, Issue 7

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)68
  • Downloads (Last 6 weeks)15
Reflects downloads up to 03 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media