卫红春, 贾笑蕊. 特定领域建模方法和代码生成的研究[J]. 微电子学与计算机, 2013, 30(9): 154-157.
引用本文: 卫红春, 贾笑蕊. 特定领域建模方法和代码生成的研究[J]. 微电子学与计算机, 2013, 30(9): 154-157.
WEI Hong-chun, JIA Xiao-rui. The Research of the Approach and Code Generation Based on Domain-Specific Modeling[J]. Microelectronics & Computer, 2013, 30(9): 154-157.
Citation: WEI Hong-chun, JIA Xiao-rui. The Research of the Approach and Code Generation Based on Domain-Specific Modeling[J]. Microelectronics & Computer, 2013, 30(9): 154-157.

特定领域建模方法和代码生成的研究

The Research of the Approach and Code Generation Based on Domain-Specific Modeling

  • 摘要: 特定领域建模(Domain-Specific Modeling,DSM)提高了软件的抽象水平,DSM 用模型表示用户的需求,然后通过生成器,直接把模型中的信息提取出来并转换成代码,实现了代码的自动生成。研究了特定领域建模语言、生成器和领域框架,总结了M etaEdit+下实现DSM的一般过程及其使用的相关技术,并介绍了代码生成的具体过程。基于M etaEdit+,实现了电子万年历的元建模和领域建模,并通过提出的深度优先遍历的代码生成算法,实现了电子万年历代码的自动生成。

     

    Abstract: Domain-Specific Modeling (DSM) raises the abstract level of the software, it represents the user requirements by models,and with generators,information is directly extracted from the models and transformed into code,the code can be automatically generated.Based on the research of domain -specific modeling language, generator,domain framework,summarizes the general process of implementing DSM under the tool of MetaEdit +, related technologies,and introduces the process of code generation in detail.Based on M etaEdit+,the metamodeling and domain-specific modeling of Electronic calendar are implemented,and with the algorithm of the depth-first traverse proposed,code of the electronic calendar is generated automatically.

     

/

返回文章
返回