Open Unification for Program Query Languages
Authors:
- Johan BrichauJBJohan Brichau
- Coen De RooverCRCoen De Roover
- Kim MensKMKim Mens
- 1 November 2007
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 15224902,p. 92-101
Abstract
Logic-based programming languages are increasingly applied as 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.Keywords
This publication has 11 references indexed in Scilit:
- Combining fuzzy logic and behavioral similarity for non-strict program validation2006
- Inter-language reflection: A conceptual model and its implementationComputer Languages, Systems & Structures, 2006
- An Approach to High-Level Behavioral Program Documentation Allowing Lightweight Verification2006
- Language-independent detection of object-oriented design patternsComputer Languages, Systems & Structures, 2004
- Seamless integration of rule-based knowledge and object-oriented functionality with linguistic symbiosis2004
- Identifying refactoring opportunities using logic meta programming2003
- Navigating and querying code without getting lost2003
- FURY: fuzzy unification and resolution based on edit distance2002
- Approximate reasoning by similarity-based SLD resolutionTheoretical Computer Science, 2002
- Parsing and compiling using PrologACM Transactions on Programming Languages and Systems, 1987