Analyzing Ambiguity of Context-Free Grammars
DOI:
https://doi.org/10.7146/brics.v14i10.21932Abstract
It has been known since 1962 that the ambiguity problem for context-free grammars is undecidable. Ambiguity in context-free grammars is a recurring problem in language design and parser generation, as well as in applications where grammars are used as models of real-world physical structures.We observe that there is a simple linguistic characterization of the grammar ambiguity problem, and we show how to exploit this to conservatively approximate the problem based on local regular approximations and grammar unfoldings. As an application, we consider grammars that occur in RNA analysis in bioinformatics, and we demonstrate that our static analysis of context-free grammars is sufficiently precise and efficient to be practically useful.
Downloads
Published
2007-05-12
How to Cite
Brabrand, C., Giegerich, R., & Møller, A. (2007). Analyzing Ambiguity of Context-Free Grammars. BRICS Report Series, 14(10). https://doi.org/10.7146/brics.v14i10.21932
Issue
Section
Articles
License
Articles published in DAIMI PB are licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.