UDC 004.4, DOI: 10.2298/CSIS1002309C

On Automata and Language Based Grammar Metrics

Matej Črepinšek1, Tomaž Kosar1, Marjan Mernik1, Julien Cervelle2, Rémi Forax2 and Gilles Rousse2

  1. University of Maribor, Faculty of Electrical Engineering and Computer Science
    Smetanova 17, 2000 Maribor, Slovenia
    {matej.crepinsek, tomaz.kosar, marjan.mernik}@uni-mb.si
  2. Université Paris-Est, Laboratoire d’Informatique Gaspard-Monge
    77454 Marne-la-Vallée, France
    {julien.cervelle, remi.forax, gilles.roussel}@univ-mlv.fr


Grammar metrics have been introduced to measure the quality and the complexity of the formal grammars. The aim of this paper is to explore the meaning of these notions and to experiment, on several grammars of domain specific languages and of general-purpose languages, existing grammar metrics together with the new metrics that are based on grammar LR automaton and on the language recognized. We discuss the results of this experiment and focus on the comparison between grammars of domain specific languages as well as of general-purpose languages and on the evolution of the metrics between several versions of the same language.

Key words

grammar metrics, software language engineering, grammar engineering, grammarware

Digital Object Identifier (DOI)


Publication information

Volume 7, Issue 2 (April 2010)
Advances in Languages, Related Technologies and Applications
Year of Publication: 2010
ISSN: 1820-0214 (Print) 2406-1018 (Online)
Publisher: ComSIS Consortium

Full text

DownloadAvailable in PDF
Portable Document Format

How to cite

Črepinšek, M., Kosar, T., Mernik, M., Cervelle, J., Forax, R., Rousse, G.: On Automata and Language Based Grammar Metrics. Computer Science and Information Systems, Vol. 7, No. 2, 309-329. (2010), https://doi.org/10.2298/CSIS1002309C