混合结构编辑:用于工具的结构,用于用户的文本
Hybrid Structured Editing: Structures for Tools, Text for Users
AI总结:
混合结构编辑通过提供结构保证支持工具构建,同时为用户提供一致的文本编辑体验,提升编程环境的扩展性和可靠性。
摘要:
在编程中,更好的工具往往能带来更好的结果。为此,现代编程环境提供了机制,允许其扩展性。工具越接近代码,程序员就越容易将工具提供的信息映射到该信息所涉及的代码。然而,现有的扩展机制并未促进工具与文本源代码的紧密集成。工具必须能够跨编辑跟踪程序结构以出现在正确的位置,但文本的解析步骤使跟踪结构变得复杂。我们提出了混合结构编辑,一种方法,它通过提供结构保证来支持工具构建者,同时为工具用户提供熟悉且一致的文本编辑界面。混合结构编辑允许工具构建者声明程序必须符合的结构约束,并确保其被遵守。我们展示了基于混合结构编辑的工具的实现和几个案例研究,以证明其有效性。混合结构编辑支持安全扩展编程环境,使在代码的结构化表示上工作的工具能够提供一致且可靠的用户体验。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。