Hybrid Structured Editing: Structures for Tools, Text for Users

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Beckmann, Tom, Thiede, Christoph, Lincke, Jens, Hirschfeld, Robert
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918373893341184
author Beckmann, Tom
Thiede, Christoph
Lincke, Jens
Hirschfeld, Robert
author_facet Beckmann, Tom
Thiede, Christoph
Lincke, Jens
Hirschfeld, Robert
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_05644
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Hybrid Structured Editing: Structures for Tools, Text for Users
Beckmann, Tom
Thiede, Christoph
Lincke, Jens
Hirschfeld, Robert
Programming Languages
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.
title Hybrid Structured Editing: Structures for Tools, Text for Users
topic Programming Languages
url https://arxiv.org/abs/2603.05644