模型编译器通过词法和语法分析,解析出模型信息,并生成特定平台的模型框架代码,提高了模型框架代码生成的速度和质量。然而大多数模型编译器都是生成某一特定平台的框架代码,可扩展性和可维护性较差。文中提出了一种基于MDA的分布式对象模型编译器设计方法,该方法通过灵活的转换规则配置,可以生成多目标平台模型,进一步生成该平台框架代码,从而有效提高分布式对象模型编译器的扩展性和可维护性。%The model compiler parses model information of a file through the analysis of its lexicon, syntax and se-mantics, and generates model framework codes on a specific platform, thereby enhancing the speed and quality of writing the model framework codes.However, most of model compilers generate framework codes for only a specific platform and their scalability and maintainability are low.This paper proposes an MDA-based design method of a model compiler.The method generates one or more platform-specific models with flexible configuration of transfor-mation rules, automatically generates framework codes, and then effectively improves the scalability and maintain-ability of the distributed object model compiler.
展开▼