Skip to content

johanvanl/SemDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SemDiff (Semantic Diff)

A semantic diff is a programming language aware diff that keeps the structure of the source code in mind when it computes the difference between two revisions of a source file. It displays the differences between the two files in a summary form so that the programmer can ignore the changes that has no effect on the behaviour of the source code, for example formatting changes, and focus on those that do have an effect on the behaviour of the code.

SemDiff is the base tool that computes a semantic diff between two Java source files. The tool SemDiffPlugin which is an Eclipse plugin uses SemDiff to provide the usability accompanying SemDiff.

SemDiff uses the Eclipse Java development tools (JDT) to be able to compute a semantic diff.

The SemDiff jar file (SemDiff.jar) is run on the command line as follows

$ java -jar SemDiff.jar original.java revised.java

SemDiff takes two arguments, namely the paths to the original and revised Java source files. This will output a semantic diff between the two files on the command line.

About

Semantic Diff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages