MontiCore:文本领域特定语言的模块化开发
MontiCore: Modular Development of Textual Domain Specific Languages
摘要:
重用是提高开发效率和保证开发结果质量的关键技术。在对象技术中,显式封装、接口和继承是独立开发的公知原则,它们支持组合和重用已开发的工件。在本文中,我们应用模块化的概念,领域特定语言(DSL),并讨论他们如何帮助设计新的语言,扩展现有的和组成的片段,以新的DSL。我们使用一个扩展的语法格式与适当的工具支持,避免重新定义现有的功能,通过引入语言继承和嵌入作为第一类工件在DSL定义。语言嵌入和继承不仅由解析器辅助,还由编辑器和基于树遍历的算法(如上下文检查器、漂亮打印机和代码生成器)辅助。我们证明,新语言的组合工程成为一个有用的概念时,开始定义项目的个别DSL使用适当的工具支持。
英文摘要:
Reuse is a key technique for a more efficient development and ensures the quality of the results. In object technology explicit encapsulation, interfaces, and inheritance are well known principles for independent development that enable combination and reuse of developed artifacts. In this paper we apply modularity concepts for domain specific languages (DSLs) and discuss how they help to design new languages by extending existing ones and composing fragments to new DSLs. We use an extended grammar format with appropriate tool support that avoids redefinition of existing functionalities by introducing language inheritance and embedding as first class artifacts in a DSL definition. Language embedding and inheritance is not only assisted by the parser, but also by the editor, and algorithms based on tree traversal like context checkers, pretty printers, and code generators. We demonstrate that compositional engineering of new languages becomes a useful concept when starting to define project-individual DSLs using appropriate tool support.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。