Context-Free Ambiguity Detection Using Multi-stack Pushdown Automata

被引:1
|
作者
Basten, H. J. S. [1 ,2 ]
机构
[1] Basten Sci & Software LLP, Zevenhuizen, Netherlands
[2] Ctr Wiskunde & Informat, Amsterdam, Netherlands
来源
关键词
BOUNDED MODEL-CHECKING;
D O I
10.1007/978-3-662-53132-7_1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose a method for detecting ambiguity in context-free grammars using multi-stack pushdown automata. Since the ambiguity problem is undecidable in general, we use restricted MPDAs that have a limited configuration space. The analysis might thus not be complete, but it is able to detect both ambiguity and unambiguity. Our method is general in the type of automata used. We discuss the suitability of existing MPDAs in our setting and present a new class called bounded-balance MPDAs. These MPDAs allow for infinitely deep nesting/nesting intersection, as long as the nesting depth differences within each scope stay within the balance bound. We compare our contributions to various related MPDAs and ambiguity detection methods.
引用
收藏
页码:1 / 12
页数:12
相关论文
共 50 条