• DocumentCode
    251869
  • Title

    Spotting automatically cross-language relations

  • Author

    Tomassetti, Federico ; Rizzo, Gianluca ; Torchiano, Marco

  • Author_Institution
    Politec. di Torino, Turin, Italy
  • fYear
    2014
  • fDate
    3-6 Feb. 2014
  • Firstpage
    338
  • Lastpage
    342
  • Abstract
    Nowadays most of the software projects are coded using several formal languages, either spread on different artifacts or even embedded in the same one. These formal languages are linked each other using cross-language relations, mainly framework specific and established at runtime. In this work we present a language agnostic approach to automatically detect cross-language relations to ease re-factoring, validation and to allow navigation support to the developer. We map a project in a set of Syntax Trees (ASTs); pair-wise we compute the intersection of the nodes and we pre-select potential candidates that can hold cross-relations. We then factorize the ASTs according to the nodes which surround the candidate and pairwise we compute the semantic similarity of the factorized trees. We narrow down a set of statistically significant features and we map them into a predictive model. We apply such a procedure to an AngularJS application and we show that this approach spots cross-language relations at fine grained level with 93.2% of recall and a F-measure of 92.2%.
  • Keywords
    computational linguistics; formal languages; software engineering; AST; AngularJS application; cross-language relations; formal languages; language agnostic approach; navigation support; software projects; syntax trees; Benchmark testing; Computational modeling; Context; HTML; Java; XML;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance, Reengineering and Reverse Engineering (CSMR-WCRE), 2014 Software Evolution Week - IEEE Conference on
  • Conference_Location
    Antwerp
  • Type

    conf

  • DOI
    10.1109/CSMR-WCRE.2014.6747189
  • Filename
    6747189