混合视觉与文本代码
Mixing visual and textual code
AI总结:
本文提出Hybrid ClojureScript,一种混合编程语言,允许开发者结合视觉和文本语法表达领域特定概念,同时保持静态推理和工作流程流畅。
摘要:
主流编程语言仅支持线性文本表达领域特定几何思想。需要混合语言允许开发者创建视觉语法构造,以混合文本和视觉语法表达想法。这种混合必须使两种语法地位平等,同时扩展语言不应干扰程序员的工作流程。这意味着任何新的视觉语法都应是适当的语言扩展,可与其他语言特性组合。此外,扩展应保留对程序的静态推理。本文提出了Hybrid ClojureScript,这是首个此类混合编程语言。Hybrid ClojureScript允许程序员添加视觉交互语法,并将此类语法实例嵌入程序文本中。增强的混合IDE可将这些嵌入实例显示为迷你GUI,程序员可与之交互,而其他IDE则显示文本表示。本文论证了此类扩展机制的必要性,展示了设计的可采用性,并讨论了在其他语言中使用该设计可能需要什么。
英文摘要:
The dominant programming languages support nothing but linear text to express domain-specific geometric ideas. What is needed are hybrid languages that allow developers to create visual syntactic constructs so that they can express their ideas with a mix of textual and visual syntax tailored to an application domain. This mix must put the two kinds of syntax on equal footing and, just as importantly, the extended language must not disrupt a programmer's typical workflow. This means that any new visual syntax should be a proper language extension that is composable with other language features. Furthermore, the extensions should also preserve static reasoning about the program. This paper presents Hybrid ClojureScript the first such hybrid programming language. Hybrid ClojureScript allows programmers to add visual interactive syntax and to embed instances of this syntax within a program's text. An enhanced hybrid IDE can then display these embedded instances as mini-GUIs that programmers interact with, while other IDEs will show a textual representation of the syntax. The paper argues the necessity of such an extensibility mechanism, demonstrates the adoptability of the design, and discusses what might be needed to use the design in other languages.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。