Comparison of context-free grammars based on parsing generated test data

21Citations
Citations of this article
16Readers
Mendeley users who have this article in their library.
Get full text

Abstract

There exist a number of software engineering scenarios that essentially involve equivalence or correspondence assertions for some of the context-free grammars in the scenarios. For instance, when applying grammar transformations during parser development-be it for the sake of disambiguation or grammar-class compliance-one would like to preserve the generated language. Even though equivalence is generally undecidable for context-free grammars, we have developed an automated approach that is practically useful in revealing evidence of nonequivalence of grammars and discovering correspondence mappings for grammar nonterminals. Our approach is based on systematic test data generation and parsing. We discuss two studies that show how the approach is used in comparing grammars of open source Java parsers as well as grammars from the course work for a compiler construction class. © 2012 Springer-Verlag.

Cite

CITATION STYLE

APA

Fischer, B., Lämmel, R., & Zaytsev, V. (2012). Comparison of context-free grammars based on parsing generated test data. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6940 LNCS, pp. 324–343). https://doi.org/10.1007/978-3-642-28830-2_18

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free