首页> 外文会议>IEEE International Conference on Cybernetics and Computational Intelligence >Automatic translation from pseudocode to source code: A conceptual-metamodel approach
【24h】

Automatic translation from pseudocode to source code: A conceptual-metamodel approach

机译:自动翻译伪代码源代码:概念元模型方法

获取原文

摘要

Pseudocode is commonly used to teach algorithms for computer science students in an introductory programming course. When an automatic translation tool is available, students can translate their pseudocode to source code and then execute the resulted source code to check whether their algorithm is correct. However, a large number of translation tools are needed to accomodate courses in different situations: (i) different natural languages to define pseudocode, (ii) different programming languages to implement pseudocode, and (iii) different templates to write pseudocode. Developing many tools from scratch requires large effort. This paper presents an approach for developing many translation tools in an efficient way. The approach uses an intermediate model to decouple pseudocode translation from source code translation. The approach is based on a conceptual metamodel that has to be realised by pseudocode and intermediate models. This approach allows the development of translation tools by reusing parts of already-developed translation tools.
机译:伪代码通常用于在介绍编程课程中教授计算机科学学生的算法。当自动翻译工具可用时,学生可以将其伪代码转换为源代码,然后执行产生的源代码以检查它们的算法是否正确。但是,需要大量的翻译工具在不同情况下加入课程:(i)不同的自然语言来定义伪代码,(ii)不同的编程语言来实现伪代码,(iii)不同的模板来写伪模板。从头划伤开发许多工具需要大量努力。本文以有效的方式提出了一种开发许多翻译工具的方法。该方法使用中间模型来与源代码转换解码伪代码转换。该方法基于概念性元模型,该概念元模型必须由伪代码和中间模型实现。这种方法允许通过重用已经开发的翻译工具的部分来开发翻译工具。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号