Dealing with Explicit Exceptions in Prolog

Luigi Liquori, Maria Luisa Sapino · 1994

Existing logic languages provide some simple "extra-logical" constructs for control manipulation, such as the cut of standard Prolog and the exception handling constructs of other versions of Prolog (e.g. SICStus Prolog). Aspects specifically concerning the flow of control in a language can be quite naturally modelled by means of the Denotational Semantics, and in particular the Denotational Semantics with Continuations. In this paper we define a Denotational Semantics with Continuations to model the flow of control of a small fragment of a logic language with an explicit exception handling mechanism. Finally we show how the cut operator can be simulated by an appropriate use of the characterized exception handling constructs. Keywords: Continuations, denotational semantics, exception handling, cut. 1

Read the paper · More papers on PaperTik