How to Calculate Software Metrics for Multiple Languages Using Open Source Parsers - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Communication Dans Un Congrès Année : 2013

How to Calculate Software Metrics for Multiple Languages Using Open Source Parsers

Andrea Janes
  • Fonction : Auteur
  • PersonId : 1001491
Danila Piatov
  • Fonction : Auteur
  • PersonId : 1001492
Alberto Sillitti
  • Fonction : Auteur
  • PersonId : 1001484
Giancarlo Succi
  • Fonction : Auteur
  • PersonId : 989715

Résumé

Source code metrics help to evaluate the quality of the code, for example, to detect the most complex parts of the program. When writing a system which calculates metrics, especially when it has to support multiple source code languages, the biggest problem which arises is the creation of parsers for each supported language. In this paper we suggest an unusual Open Source solution, that avoids creating such parsers from scratch. We suggest and explain how to use parsers contained in the Eclipse IDE as parsers that support contemporary language features, are actively maintained, can recover from errors, and provide not just the abstract syntax tree, but the whole type information of the source program. The findings described in this paper provide to practitioners a way to use Open Source parsers without the need to deal with parser generators, or to write a parser from scratch.
Fichier principal
Vignette du fichier
978-3-642-38928-3_20_Chapter.pdf (236.52 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01467577 , version 1 (14-02-2017)

Licence

Paternité

Identifiants

Citer

Andrea Janes, Danila Piatov, Alberto Sillitti, Giancarlo Succi. How to Calculate Software Metrics for Multiple Languages Using Open Source Parsers. 9th Open Source Software (OSS), Jun 2013, Koper-Capodistria, Slovenia. pp.264-270, ⟨10.1007/978-3-642-38928-3_20⟩. ⟨hal-01467577⟩
352 Consultations
524 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More