Identifying syntactic differences between two programs

Wuu Yang*

*此作品的通信作者

研究成果: Article同行評審

250 引文 斯高帕斯(Scopus)

摘要

Programmers frequently face the need to identify the differences between two programs, usually two different versions of a program. Text‐based tools such as the UNIXr̀ utility diff often produce unsatisfactory comparisons because they cannot accurately pinpoint the differences and because they sometimes produce irrelevant differences. Since programs have a rigid syntactic structure as described by the grammar of the programming language in which they are written, we develop a comparison algorithm that exploits knowledge of the grammar. The algorithm, which is based on a dynamic programming scheme, can point out the differences between two programs more accurately than previous text comparison tools. Finally, the two programs are pretty‐printed ‘synchronously’ with the differences highlighted so that the differences are easily identified.

原文English
頁(從 - 到)739-755
頁數17
期刊Software: Practice and Experience
21
發行號7
DOIs
出版狀態Published - 1 1月 1991

指紋

深入研究「Identifying syntactic differences between two programs」主題。共同形成了獨特的指紋。

引用此