Analyzing Ambiguity of Context-Free Grammars

Claus Brabrand, Robert Giegerich, Anders Møller

    Research output: Contribution to book/anthology/report/proceedingArticle in proceedingsResearchpeer-review

    8 Citations (Scopus)

    Abstract

    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.

    Original languageEnglish
    Title of host publicationProc. 12th International Conference on Implementation and Application of Automata
    Number of pages15
    Publication date2007
    Publication statusPublished - 2007
    Event12th International Conference on Implementation and Application of Automata - Prague, Czech Republic
    Duration: 16 Jul 200718 Jul 2007

    Conference

    Conference12th International Conference on Implementation and Application of Automata
    Country/TerritoryCzech Republic
    CityPrague
    Period16/07/200718/07/2007

    Keywords

    • ambiguity
    • analysis
    • context-free grammars
    • deterministic finite automata
    • RNA analysis

    Fingerprint

    Dive into the research topics of 'Analyzing Ambiguity of Context-Free Grammars'. Together they form a unique fingerprint.

    Cite this