首页    期刊浏览 2024年09月19日 星期四
登录注册

文章基本信息

  • 标题:EXTENDING THE TRANSLATION FROM PSEUDOCODE TO SOURCE CODE WITH REUSABILITY
  • 本地全文:下载
  • 作者:SHEILA NURUL HUDA ; ZAINUDIN ZUKHRI ; TEDUH DIRGAHAYU
  • 期刊名称:Journal of Theoretical and Applied Information Technology
  • 印刷版ISSN:1992-8645
  • 电子版ISSN:1817-3195
  • 出版年度:2019
  • 卷号:97
  • 期号:5
  • 页码:1457-1466
  • 出版社:Journal of Theoretical and Applied
  • 摘要:Pseudocode is made of a set of words in a natural language and a set of conventions to define algorithms. Pseudocode is written in a natural language that is convenience for students. In our previous work, we have developed an automatic translation from pseudocode into source code. In this paper, we extend it to handle constructs which have not been covered yet, including two types of iteration, functions, and procedures call to complete all constructs for defining algorithms. Our translation approach uses an intermediate model in XML that benefits us with the reusability of translation modules. Using reusability, we develop a new translation from pseudocode in English to source code in C++. Pseudocode and the corresponding intermediate model are Platform-independent Models (PIMs). This allows us to translate them to source code in different programming languages. The source code resulted from the translation process is Platform-Specific Model (PSM). In the translation process, it must be ensured that all models, i.e. pseudocode, the corresponding intermediate model, and the resulted source code, represent the same algorithm. Therefore, we define a conceptual metamodel for defining all the models. This paper contributes a new approach that allows reusability based on a conceptual metamodel for preserving the behavioral equivalence between all the models.
  • 关键词:Pseudocode; Source Code; Conceptual Metamodel; Translation; Reusability
国家哲学社会科学文献中心版权所有