Development of a Prolog Tracer by Stepwise Enhancement

Abstract

A Prolog tracer is essentially a Prolog interpreter extended to provide features, such as retry, fail, leap, skip, and quasi-skip, to trace the computational flow of a program. This paper describes how a Prolog tracer may be built by stepwise enhancement. Using this method, first a collection of partial-tracers are developed, each partial-tracer providing only a part of the tracer's functionality. The partial-tracers are then composed to yield a single tracer with the composite functionality of the partial-tracers. Stepwise enhancement provides an alternative to stepwise refinement and iterative enhancement in scenarios where the "natural" subproblems do not correspond to distinct subprograms. This typically happens, as in the case of a Prolog tracer, when different subprograms require the same program flow due to the contraint that their computations be performed simultaneously. Stepwise enhancement eases the development and extension of a tracer, and also makes it customizable. A use..

    Similar works

    Full text

    thumbnail-image