An operational semantic approach to continuation style interpreter of logic programs

Research output: Contribution to journalArticlepeer-review

Abstract

A continuation represents the dynamic effect of the remainder of a program. We present a mechanism to save a Prolog program continuation as a label and the continuation can be invoked at a later point. The Vienna Definition Method (VDM) is used as the underlying mechanism to construct the operational semantics of Prolog language with labels. Besides the database predicates and the I/O predicates, our semantic also deals with continuation predicates which allow labels to be created and jumps to be made in the users program. Since most of the Prolog programs can be run as interactive processes, we also consider the user's input as it changes the variable binding. Based on the semantic functions, a metalevel interpreter is constructed showing the result of our work.

Original languageEnglish
Pages (from-to)15-36
Number of pages22
JournalInformation Sciences
Volume107
Issue number1-4
DOIs
StatePublished - Jun 1998

Keywords

  • Continuations
  • Logic programming
  • Prolog
  • VDM

Fingerprint

Dive into the research topics of 'An operational semantic approach to continuation style interpreter of logic programs'. Together they form a unique fingerprint.

Cite this