arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.06117cs.SE
收藏

使用基于规则的机器翻译从Python Source Code生成伪代码

Generation of Pseudo Code from the Python Source Code using Rule-Based Machine Translation

Sawan Rai, Atul Gupta

摘要:

伪代码是理解复杂程序代码的重要工具之一。由于编写伪代码的过程非常耗时,大部分源代码仍然没有等效的伪代码。在这项工作中,我们开发了一种方法来生成伪代码从Python源代码。在第一步中,我们将python代码转换为XML代码,以更好地进行代码信息抽取。接下来,从XML代码中提取重要信息,这些信息后来在伪代码模板的帮助下用于生成实际的伪代码。初步的性能结果进行了讨论。

英文摘要:

Pseudo code is one of the valuable artifacts to comprehending the complex program codes. Most of the source code still has no equivalent pseudo code, due to the time-consuming process of writing pseudo codes. In this work, we have developed an approach to generate pseudo code from the python source code. In the first step, we convert python code into XML code for better code information extraction. Next, Important information extracted from the XML code, which later on used to generate actual pseudo code with the help of pseudo code templates. Initial performance results have been discussed in this paper.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑