Open Unification for Program Query Languages

Printer-friendly version

Publication Type:

Conference Paper

Source:

Proceedings of the XXVI International Conference of the Chilean Computer Science Society (SCCC 2007) (2007)

Keywords:

logic meta programming, open unification, program queries

Abstract:

<p>Logic-based programming languages are increasingly applied as \emph{program query languages} which allow developers to reason about the structure and behaviour of programs. To achieve this, the queried programs are reified as logic values such that logic quantification and unification can be used effectively. However, in many cases, standard logic unification is inappropriate for program entities, forcing developers to resort to overly complex queries. In this paper, we argue that such incidental complexity can be reduced significantly by customizing the unification algorithm. We present a practical implementation approach through inter-language reflection and open unification. These techniques are at the core of the logic program query language SOUL, through which we demonstrate custom unification schemes for reasoning over Smalltalk and Java programs. Queries written in this tailored version of SOUL can exploit advanced program matching strategies without increasing the incidental complexity of the queries.</p>