谷歌浏览器插件
订阅小程序
在清言上使用

Visual Replacements: Cross-Language Domain-Specific Representations in Structured Editors

PROCEEDINGS OF THE 2ND ACM SIGPLAN INTERNATIONAL WORKSHOP ON PROGRAMMING ABSTRACTIONS AND INTERACTIVE NOTATIONS, TOOLS, AND ENVIRONMENTS, PAINT 2023(2023)

引用 0|浏览4
暂无评分
摘要
To help developers work at the level of abstraction of their choice, some editors offer to replace parts of source code with domain-specific representations (DSRs). Typically, such replacements are language-specific and optimized to limited use-cases. In this paper, we extend a general-purpose structured editor with visual replacements , a mechanism to replace code of any programming language with DSRs. A visual replacement consists of language-dependent queries to map arbitrary syntax trees and a language-independent DSR of differing abstraction and interactivity, ranging from simple images to graphical user interfaces that modify source code. Our extension synchronizes source code and DSR automatically, while ensuring that language support such as autocompletion and error checking work even inside a replacement. We demonstrate the use and applicability of the replacement mechanism in three case studies.
更多
查看译文
关键词
domain-specific representation,visual replacements,structured editing
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要