首页> 外文会议>Theory and Practice of Model Transformations >Code Generation by Model TransformationA Case Study in Transformation Modularity
【24h】

Code Generation by Model TransformationA Case Study in Transformation Modularity

机译:转换模块化中基于模型转换的案例生成代码研究

获取原文
获取原文并翻译 | 示例

摘要

The realization of model-driven software development requires effective techniques for implementing code generators. In this paper, we present a case study of code generation by model transformation with Stratego, a high-level transformation language based on the paradigm of rewrite rules with programmable strategies that integrates model-to-model, model-to-code, and code-to-code transformations. The use of concrete object syntax guarantees syntactic correctness of code patterns, and enables the subsequent transformation of generated code. The composability of strategies supports two dimensions of transformation modularity. Vertical modularity is achieved by designing a generator as a pipeline of model-to-model transformations that gradually transforms a high-level input model to an implementation. Horizontal modularity is achieved by supporting the definition of plugins which implement all aspects of a language feature. We discuss the application of these techniques in the implementation of WebDSL, a domain-specific language for dynamic web applications with a rich data model.
机译:模型驱动的软件开发的实现需要有效的技术来实现代码生成器。在本文中,我们将提供一个案例研究,其中介绍了使用Stratego进行模型转换以生成代码的方法,Stratego是一种基于重写规则范式的高级转换语言,采用了将模型间,模型间代码和代码集成在一起的可编程策略到代码的转换。具体对象语法的使用保证了代码模式的语法正确性,并使随后生成的代码得以转换。策略的可组合性支持转换模块化的两个维度。通过将生成器设计为模型到模型转换的管道来实现垂直模块化,该管道将高级输入模型逐渐转换为实现。通过支持实现语言功能所有方面的插件的定义,可以实现水平模块化。我们讨论了这些技术在WebDSL实现中的应用,WebDSL是具有丰富数据模型的动态Web应用程序的领域特定语言。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号