摘要 |
The embodiment of the invention discloses a method and equipment for comparing program texts. The method comprises the steps of: performing program structure analysis on a first program text and a second program text to obtain first program structure description information and second program structure description information; comparing the first program structure description information with the second program structure description information; if the comparison results of the first program structure description information and the second program structure description information are the same, determining that the first program text is the same as the second program text; and if the comparison results are different, determining that the first program text is different from the second program text. By the technical scheme, the program texts with different text contents and same program structure can be judged; the intelligence and accuracy of comparing the program texts are improved; and the program development and management efficiency is increased. |