基于目标元模型的DSL开发。在文本DSL框架中使用AST转换自动进行语义分析
DSL development based on target meta-models. Using AST transformations for automating semantic analysis in a textual DSL framework
摘要:
本文描述了一种为领域特定语言(DSL)创建文本语法的方法。我们认为目标元模型是主要的工件,因此要首先开发。其核心思想是将文本语法分析表示为一系列转换。这是由显式操作抽象语法树(ATS),提出了一种简单的语言。文本到模型的转换分为两个部分:文本到AST(由openArchitectureWare [1]开发)和AST到模型(本文提出)。我们的方法简化了语义分析,并有助于生成尽可能多的。
英文摘要:
This paper describes an approach to creating textual syntax for Do- main-Specific Languages (DSL). We consider target meta-model to be the main artifact and hence to be developed first. The key idea is to represent analysis of textual syntax as a sequence of transformations. This is made by explicit opera- tions on abstract syntax trees (ATS), for which a simple language is proposed. Text-to-model transformation is divided into two parts: text-to-AST (developed by openArchitectureWare [1]) and AST-to-model (proposed by this paper). Our approach simplifies semantic analysis and helps to generate as much as possi- ble.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。