Identifying syntactic differences between two programs
The work
| Authors | Wuu Yang |
|---|---|
| Editors | |
| Type | article |
| Year | 1991 |
| Citekey | yang1991identifying |
Where it appeared
| Published in | Software Practice and Experience |
|---|---|
| Publisher | Wiley |
| Volume | 21 |
| Issue | 7 |
| Pages | 739--755 |
Identifiers
| DOI | 10.1002/spe.4380210706 |
|---|---|
| OpenAlex | W2049461910 |
Access
| Landing page | https://doi.org/10.1002/spe.4380210706 |
|---|
From OpenAlex, which stores abstracts as an index of words and their positions: what is shown is rebuilt from that, and reads fluently whether or not it is what the author wrote.
Abstract
Abstract 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.
How it got here
| How it got here | agent via openalex |
|---|---|
| Added | 2026-10-26 11:41 UTC |
| Not denied by | a person 2026-10-29 17:12 UTC |
Cite it as
@article{yang1991identifying,
title = {Identifying syntactic differences between two programs},
author = {Wuu Yang},
year = {1991},
journal = {Software Practice and Experience},
publisher = {Wiley},
volume = {21},
number = {7},
pages = {739--755},
doi = {10.1002/spe.4380210706},
}
This record lives at https://refs.drheap.org/yang1991identifying/ and will keep doing so.