An environment for logic programming
暂无分享,去创建一个
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.
[1] William F. Clocksin,et al. Programming in Prolog , 1987, Springer Berlin Heidelberg.
[2] Mayer D. Schwartz,et al. Viewing a programming environment as a single tool , 1984, SDE 1.
[3] Thomas Reps,et al. A syntax-directed programming environment , 1981 .
[4] Joseph Robert Horgan,et al. Techniques for improving language-based editors , 1984, SDE 1.