首页> 外文会议>2017 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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号