Textual merge based on language-specific syntactic separators

  • Jônatas Clementino UFPE
  • Paulo Borba UFPE
  • Guilherme Cavalcanti IFAL

Abstract


In practice, developers mostly use purely textual, line-based, merge tools. Such tools, however, often report false conflicts. Researchers have then proposed AST-based tools that explore language syntactic structure to reduce false conflicts. Nevertheless, these approaches might negatively impact merge performance, and demand the creation of a new tool for each language. Trying to simulate the behavior of AST-based tools without their drawbacks, this paper proposes and analyzes a purely textual, separator-based, merge tool that aims to simulate AST-based tools by considering programming language syntactic separators, instead of just lines, when comparing and merging changes. The obtained results show that the separator-based textual approach might reduce the number of false conflicts when compared to the line-based approach. The new solution makes room for future studies and hybrid merge tools.
Published
2021-09-29
CLEMENTINO, Jônatas; BORBA, Paulo; CAVALCANTI, Guilherme. Textual merge based on language-specific syntactic separators. In: BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING (SBES), 35. , 2021, Joinville. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2021 . ISSN 2833-0633.