摘要
针对从软件模型到程序代码自动生成的问题,研究了特定领域建模生成器,把深度优先算法和广度优先算法运用到系统生成中。提出了MetaEdit+环境下,基于广度优先算法和基于深度优先算法的代码生成器实现方法。实现了代码自动生成,同时提高了生成代码的可读性,最后结合电子万年历的实例进行验证。
To the problem of code generated from software model automatically, domain-specific modeling generator is studied. Depth-first algorithm and breadth-first algorithm are applied in the generation of system, and the implementation methods of code generator based on the depth-first algorithm and breadth-first algorithm in environ- ment of MetaEdit + has been put forward. Code generation is implemented, and at the same time the readability of the generated code is improved, at last, combined with electronic calendar example for validation.
出处
《科学技术与工程》
北大核心
2014年第7期51-54,共4页
Science Technology and Engineering