一种支持异构语言工程和投影编辑器的通用体系结构
A General Architecture for Heterogeneous Language Engineering and Projectional Editor Support
摘要:
对语言工程的工具支持通常通过提供元语言来表达具体语法,然后将具体映射到抽象结构,从而将具体语法优先于抽象语法。基于文本的语言通常使用类似BNF的语言来指定,该语言用于生成语法感知编辑器,该编辑器包括关键字补全等功能。类似地,图形语言使用声明性图形语法语言来定义,产生支持诸如形状、图形和边缘之类的特征的编辑器。投影编辑器通过将抽象语法优先于具体语法来颠倒传统方法。本文描述了一个投影元工具架构,包括通用的抽象和具体的元语言,使用声明性规则集成的语法和工具支持的范围内的异构语言。该体系结构已在Racket中实现,并通过具体实例说明了该体系结构。
英文摘要:
Tool support for language engineering has typically prioritises concrete syntax over abstract syntax by providing meta-languages for expressing concrete syntax and then mapping concrete to abstract structures. Text-based languages are usually specified using a BNF-like language used to generate a syntax-aware editor that includes features such as keyword completion. Similarly, graphical languages are defined using a declarative graphical syntax language, producing an editor that supports features such as shapes, graphs and edges. Projectional editors invert traditional approaches by prioritising abstract over concrete syntax. This paper describes a projectional meta-tool architecture, including general purpose abstract and concrete meta-languages, that uses declarative rules to integrate the syntax and tool support for a range of heterogeneous languages. The architecture has been implemented in Racket and the paper illustrates the architecture with concrete examples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。