dc.date.accessioned | 2013-03-12T08:13:33Z | |
dc.date.available | 2013-03-12T08:13:33Z | |
dc.date.issued | 2005 | en_US |
dc.date.submitted | 2005-01-31 | en_US |
dc.identifier.citation | Huynh, Quoc Hung Le. Comparing Java Programs: Syntactic and Contextual Semantic Differences. Hovedoppgave, University of Oslo, 2005 | en_US |
dc.identifier.uri | http://hdl.handle.net/10852/9232 | |
dc.description.abstract | This thesis describes the foundation for developing a tool that compares Java programs, or different versions of a program. The tool captures syntactic differences and contextual semantic differences as well. Syntactic differences are “ordinary” changes in the code. This tool works much in the same way as the Unix tool diff, but it is much smarter than diff. This is because it exploits the fact that programs are built differently than ordinary text. The tool diff’s purpose is to compare text, and it will therefore give imprecise or too verbose results. The tool described in this thesis can identify contextual semantic differences because it knows the contexts of methods, meaning that it knows whether methods are directly declared in the class, inherited from implemented interfaces or if methods override the class’ parent’s method.
The approach in this thesis for comparing Java programs is to transform the programs into abstract syntax trees. The transformation from source code to abstract syntax trees are done with the help Strafunski. Strafunski is a software bundle that supports generic programming. The implementation of the tool is done in Haskell. Haskell is a functional programming language.
The work of comparing abstract syntax trees can be broken down into the problem of finding the largest common subtree of two abstract syntax trees and further more, the problem of finding the longest common subsequence of two sequences. This thesis describes and presents new algorithms for doing this and it also describe working Haskell code of the implementation of the tool. | nor |
dc.language.iso | eng | en_US |
dc.title | Comparing Java Programs: Syntactic and Contextual Semantic Differences | en_US |
dc.type | Master thesis | en_US |
dc.date.updated | 2005-02-09 | en_US |
dc.creator.author | Huynh, Quoc Hung Le | en_US |
dc.subject.nsi | VDP::420 | en_US |
dc.identifier.bibliographiccitation | info:ofi/fmt:kev:mtx:ctx&ctx_ver=Z39.88-2004&rft_val_fmt=info:ofi/fmt:kev:mtx:dissertation&rft.au=Huynh, Quoc Hung Le&rft.title=Comparing Java Programs: Syntactic and Contextual Semantic Differences&rft.inst=University of Oslo&rft.date=2005&rft.degree=Hovedoppgave | en_US |
dc.identifier.urn | URN:NBN:no-10227 | en_US |
dc.type.document | Hovedoppgave | en_US |
dc.identifier.duo | 24301 | en_US |
dc.contributor.supervisor | Bjarte M. Østvold | en_US |
dc.identifier.bibsys | 050234943 | en_US |
dc.identifier.fulltext | Fulltext https://www.duo.uio.no/bitstream/handle/10852/9232/1/ComparingJava.pdf | |