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

Abstract : 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.
Type de document :
Communication dans un congrès
Etiel Petrinja; Giancarlo Succi; Nabil Ioini; Alberto Sillitti. 9th Open Source Software (OSS), Jun 2013, Koper-Capodistria, Slovenia. Springer, IFIP Advances in Information and Communication Technology, AICT-404, pp.264-270, 2013, Open Source Software: Quality Verification. 〈10.1007/978-3-642-38928-3_20〉
Liste complète des métadonnées

Littérature citée [19 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01467577
Contributeur : Hal Ifip <>
Soumis le : mardi 14 février 2017 - 15:28:34
Dernière modification le : mardi 14 février 2017 - 15:32:34
Document(s) archivé(s) le : lundi 15 mai 2017 - 15:01:33

Fichier

978-3-642-38928-3_20_Chapter.p...
Fichiers produits par l'(les) auteur(s)

Licence


Distributed under a Creative Commons Paternité 4.0 International License

Identifiants

Citation

Andrea Janes, Danila Piatov, Alberto Sillitti, Giancarlo Succi. How to Calculate Software Metrics for Multiple Languages Using Open Source Parsers. Etiel Petrinja; Giancarlo Succi; Nabil Ioini; Alberto Sillitti. 9th Open Source Software (OSS), Jun 2013, Koper-Capodistria, Slovenia. Springer, IFIP Advances in Information and Communication Technology, AICT-404, pp.264-270, 2013, Open Source Software: Quality Verification. 〈10.1007/978-3-642-38928-3_20〉. 〈hal-01467577〉

Partager

Métriques

Consultations de la notice

371

Téléchargements de fichiers

80