首页    期刊浏览 2025年03月04日 星期二
登录注册

文章基本信息

  • 标题:Analyzing Ambiguity of Context-Free Grammars
  • 本地全文:下载
  • 作者:Claus Brabrand ; Robert Giegerich ; Anders Møller
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:2007
  • 卷号:14
  • 期号:10
  • 出版社:Aarhus University
  • 摘要: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.
国家哲学社会科学文献中心版权所有