Tom Beckmann1 , Christoph Thiede2
, Jens Lincke3
, and Robert Hirschfeld4
The Art, Science, and Engineering of Programming, 2026, Vol. 11, Issue 1, Article 1
Submission date: 2025-10-01
Publication date: 2026-02-15
DOI: https://doi.org/10.22152/programming-journal.org/2026/11/1
Full text: t.b.a
In programming, better tools often yield better results. For that, modern programming environments offer mechanisms to allow for their extensibility. The closer those tools are to the code, the easier it is for programmers to map the information provided by a tool to the code this information is about.
However, existing extension mechanisms do not facilitate the close integration of tools with textual source code. Tools must be able to track program structures across edits to appear at the right positions but the parsing step of text complicates tracking structures.
We propose hybrid structured editing, an approach that supports tool builders by providing structural guarantees while providing tool users with a familiar and consistent text editing interface.
Hybrid structured editing allows tool builders to declare constraints on the structure that a program must conform to and ensures their observance.
We present an implementation and several case studies of tools based on hybrid structured editing to demonstrate its effectiveness.
Hybrid structured editing supports the safe extension of programming environments with tools that work on a structured representation of code and provide a consistent and reliable user experience.
Hasso Plattner Institute, Germany / University of Potsdam, Germany
https://orcid.org/0000-0003-0015-1717
Hasso Plattner Institute, Germany / University of Potsdam, Germany
https://orcid.org/0000-0002-7442-8216
Hasso Plattner Institute, Germany / University of Potsdam, Germany
https://orcid.org/0000-0002-3828-7778
Hasso Plattner Institute, Germany / University of Potsdam, Germany
https://orcid.org/0000-0002-4249-6003