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

探索Quorum程序设计语言的基于Java的循环动作模型的通用性

Exploring the Generality of a Java-based Loop Action Model for the Quorum Programming Language

Preetha Chatterjee

摘要:

许多算法步骤需要一个以上的语句来实现,但不足以成为一个方法(例如,添加元素、找到最大值、确定值等)。这些步骤通常通过循环来实现。循环的内部注释通常描述这些中间步骤,然而,不幸的是,只有很少一部分代码被很好地记录下来,以帮助新用户/程序员。因此,当前的源代码分析无法利用单个语句和整个方法之间的抽象级别上的信息,因为这些信息不容易在描述代码块的任何内部注释之外获得。因此,这个项目探讨了一种自动确定循环结构的高级操作的方法的通用性。该方法是在Quorum语言源代码的存储库中挖掘给定循环结构的循环特征,将其映射到(已经为Java开发的)动作识别模型,从而识别指定循环执行的动作。结果是有希望的,足以得出结论,这种方法可以适用于其他程序设计语言了。

英文摘要:

Many algorithmic steps require more than one statement to implement, but not big enough to be a method (e.g., add element, find the maximum, determine a value, etc.). These steps are generally implemented by loops. Internal comments for the loops often describe these intermediary steps, however, unfortunately a very small percentage of code is well documented to help new users/coders. As a result, information at levels of abstraction between the individual statement and the whole method is not leveraged by current source code analyses, as that information is not easily available beyond any internal comments describing the code blocks. Hence, this project explores the generality of an approach to automatically determine the high level actions of loop constructs. The approach is to mine loop characteristics of a given loop structure over the repository of the Quorum language source code, map it to an (already developed for Java) action identification model, and thus identify the action performed by the specified loop. The results are promising enough to conclude that this approach could be applied to other programming languages too.

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

↑