Download PDF

Principles and Practice of Declarative Programming, Date: 2012/09/19 - 2012/09/21, Location: Leuven

Publication date: 2012-09-01
Pages: 103 - 114
ISBN: 9781450315227
Publisher: ACM SIGPLAN; New York

Principles and Practice of Declarative Programming, 14th International symposium

Author:

Schrijvers, Tom
Triska, Markus ; Demoen, Bart ; King, Andy

Keywords:

disjunction, Prolog, search, modularity

Abstract:

Horn Clause Programs have a natural depth-first procedural semantics. However, for many programs this procedural semantics is ineffective. In order to compute useful solutions, one needs the ability to modify the search method that explores the alternative execution branches. Tor, a well-defined hook into Prolog disjunction, provides this ability. It is light-weight thanks to its library approach and efficient because it is based on program transformation. Tor is general enough to mimic search-modifying predicates like ECLiPSe's search/6. Moreover, Tor supports modular composition of search methods and other hooks. Our library is already provided and used as an add-on to SWI-Prolog.