Semistructured Merge with Language-Specific Syntactic Separators
Guilherme Cavalcanti, Paulo Borba, Leonardo dos Anjos, Jonatas, Clementino

TL;DR
This paper introduces a semistructured merge tool that uses language-specific syntactic separators to improve merge accuracy by reducing spurious conflicts, while avoiding the complexity of full AST parsing.
Contribution
The proposed tool leverages syntactic separators to infer structure without parsing, balancing accuracy and computational efficiency in code merging.
Findings
Reduces spurious conflicts significantly
Lowers overall conflict reports and affected files
Improves merge accuracy over unstructured tools
Abstract
Structured merge tools exploit programming language syntactic structure to enhance merge accuracy by reducing spurious conflicts reported by unstructured tools. By creating and handling full ASTs, structured tools are language-specific and harder to implement. They can also be computationally expensive when merging large files.To reduce these drawbacks, semistructured merge tools work with partial ASTs that use strings to represent lower level syntactic structures such as method bodies, and rely on unstructured tools to merge them. This, however, results in merge accuracy loss. To improve accuracy without compromising semistructured merge benefits, we propose a tool that leverages language-specific syntactic separators to infer structure without parsing. We still resort to an unstructured tool to merge lower level structures, but only after preprocessing the code so that text in between…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMulti-Agent Systems and Negotiation
