arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2309.04347cs.SE
收藏

基于Xtext的文本DSL快速原型语言工作台:愿景与进展

A Rapid Prototyping Language Workbench for Textual DSLs based on Xtext: Vision and Progress

Weixing Zhang, Jan-Philipp Steghöfer, Regina Hebig, Daniel Strüber

AI总结:

本文提出了一个集成GrammarOptimizer的语言工作台,通过可视化配置优化规则、实时预览语法优化效果及基于实例推断语法等功能,支持基于Xtext的元模型DSL的快速原型设计与演化,提升了开发自动化水平。

摘要:

在Xtext等语言工作台中进行基于元模型的DSL开发,允许语言工程师更多地关注元模型和领域概念,而不是语法细节。然而,从元模型生成的语法通常需要手动修改,这可能既繁琐又耗时。特别是在快速原型设计和语言演化方面,语法将被反复生成,这意味着语言工程师需要来回重复这种手动修改。先前的工作引入了GrammarOptimizer,它使用优化规则自动改进生成的语法。然而,优化规则需要手动配置,缺乏用户友好性和便利性。在本文中,我们提出了一个语言工作台的愿景和当前进展,该工作台集成了GrammarOptimizer的语法优化规则,以支持基于元模型语言的快速原型设计和演化。它提供了优化规则的可视化配置和语法优化效果的实时预览,以解决GrammarOptimizer的局限性。此外,它支持基于模型实例的示例推断语法,并提供语言风格的选择。这些功能旨在提高使用Xtext进行基于元模型的DSL开发的自动化水平,并协助语言工程师进行迭代开发和快速原型设计。我们的论文讨论了该语言工作台的潜力和应用,以及它如何填补现有语言工作台的空白。

英文摘要:

Metamodel-based DSL development in language workbenches like Xtext allows language engineers to focus more on metamodels and domain concepts rather than grammar details. However, the grammar generated from metamodels often requires manual modification, which can be tedious and time-consuming. Especially when it comes to rapid prototyping and language evolution, the grammar will be generated repeatedly, this means that language engineers need to repeat such manual modification back and forth. Previous work introduced GrammarOptimizer, which automatically improves the generated grammar using optimization rules. However, the optimization rules need to be configured manually, which lacks user-friendliness and convenience. In this paper, we present our vision for and current progress towards a language workbench that integrates GrammarOptimizer's grammar optimization rules to support rapid prototyping and evolution of metamodel-based languages. It provides a visual configuration of optimization rules and a real-time preview of the effects of grammar optimization to address the limitations of GrammarOptimizer. Furthermore, it supports the inference of a grammar based on examples from model instances and offers a selection of language styles. These features aim to enhance the automation level of metamodel-based DSL development with Xtext and assist language engineers in iterative development and rapid prototyping. Our paper discusses the potential and applications of this language workbench, as well as how it fills the gaps in existing language workbenches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑