作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (06): 83-85.

• 论文 • 上一篇    下一篇

遗产软件的代码翻译

杨卫平,赵合计   

  1. 山东大学计算机科学与技术学院,山东大学计算机科学与技术学院 济南 250061, 济南 250061
  • 发布日期:2004-03-25

Code-to-code Translation of Legacy Software

YANG Weiping,,ZHAO Heji   

  1. (School of Computer Science and Technology, Shandong University, Jinan 250061)
  • Published:2004-03-25

摘要: 介绍了在遗产软件的基础上建立新系统的一种方法——代码翻译。讨论了代码翻译及在代码翻译中出现的问题,及怎样用再工程的思想来解决源语言和目标语言不兼容的问题。论述了面向对象的上下文无关文法的一些基本概念和一些限定规则,讨论了基于面向对象的上下文无关文法的元对象分析法。

关键词: 遗产软件, 代码翻译, 再工程, 面向对象的上下文无关文法, 元对象

Abstract: This paper introduces a method to establish a new system based on a legacy software——code-to-code translation. Code-to-code translation and its problems are argued, then re-engineering is introduced to solve the incompatibility between source language and target language. Then some conceptions of object-oriented context free grammar (OO-CFG) are introduced, as well as the restrict rules of OO-CFG. At last, metaobject parsing based on OO-CFG is discussed.

中图分类号: