Language-Parametric Editor Services from Language Specifications
D.A.A. Pelsmaeker (TU Delft - Electrical Engineering, Mathematics and Computer Science)
A.E. Zaidman – Promotor (TU Delft - Electrical Engineering, Mathematics and Computer Science)
C. Bach – Promotor (TU Delft - Electrical Engineering, Mathematics and Computer Science)
More Info
expand_more
Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.
Abstract
In this dissertation, we investigate how editor services can be derived automatically from the formal static-semantic specification of a programming language, rather than implemented separately for each language and IDE. Our central research question is: how can we derive editor services from the static-semantic specification of a programming language?
We make several contributions. First, using the Spoofax language workbench and a design-science methodology, we model editor services as constraint-solving problems and develop a general blueprint for deriving language-parametric services such as finding references, code completion, and refactoring from a language's static-semantic specification.
Second, we implement a language-parametric code completion service that produces suggestions that are sound and complete with respect to the language's static semantics. Third, we develop a sound-by-construction reference synthesis technique for binding-preserving program transformations, also derived from the language's static-semantic specification.
Overall, we demonstrate that formal language specifications can serve not only to define programming languages, but also as a basis for reusable, language-parametric editor tooling. This reduces language-specific implementation effort while improving the correctness and reliability of semantic editor services.