DocumentCode :
2154710
Title :
Metric-based analysis of context-free grammars
Author :
Power, James F. ; Malloy, Brian A.
Author_Institution :
Dept. of Comput. Sci., Nat. Univ. of Ireland, Maynooth, UK
fYear :
2000
fDate :
2000
Firstpage :
171
Lastpage :
178
Abstract :
Recent advances in software engineering have produced a variety of well-established approaches, formalisms and techniques to facilitate the construction of large-scale applications. Developers who are interested in the construction of robust, extensible software that is easy to maintain should expect to deploy a range of these techniques, as appropriate to the task. In this paper, we provide a foundation for the application of established software metrics to the measurement of context-free grammars. The usual application of software metrics is to program code; we provide a mapping that allows these metrics to be applied to grammars. This allows us to interpret six software engineering metrics in a grammatical context, including T.J. McCabe´s (1976) complexity metric and N.E. Fenton et al.´s (1996) impurity metric. We have designed and implemented a tool to automatically compute the six metrics; as a case study, we use these six metrics to measure some of the properties of grammars for the Oberon, ISO C, ISO C++ and Java programming languages. We believe that the techniques that we have developed can be applied to estimating the difficulty of designing, implementing, testing and maintaining parsers for large grammars
Keywords :
context-free grammars; high level languages; programming theory; reverse engineering; software maintenance; software metrics; ISO C programming language; ISO C++ language; Java; Oberon programming language; case study; complexity metric; context-free grammars; easily maintainable software; impurity metric; large-scale applications; parser design; parser implementation; parser maintenance; parser testing; program code; robust extensible software; software engineering; software engineering metrics; software metric-based analysis; Application software; ISO; Impurities; Java; Large-scale systems; Robustness; Software engineering; Software maintenance; Software measurement; Software metrics;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Program Comprehension, 2000. Proceedings. IWPC 2000. 8th International Workshop on
Conference_Location :
Limerick
ISSN :
1092-8138
Print_ISBN :
0-7695-0656-9
Type :
conf
DOI :
10.1109/WPC.2000.852491
Filename :
852491
Link To Document :
بازگشت