The equivalence problem for LL- and LR-regular grammars

作者:

Highlights:

摘要

The equivalence problem for context-free grammars is “given two arbitrary grammars, do they generate the same language?” Since this is undecidable in general attention has been restricted to decidable subclasses of the context-free grammars. For example, the classes of LL(k) grammars and real-time strict deterministic grammars. In this paper it is shown that the equivalence problem for LL-regular grammars is decidable by reducing it to the equivalence problem for real-time strict deterministic grammars. Moreover, we show that the LL-regular equivalence problem is a special case of a more general equivalence problem which is also decidable. Our techniques can also be used to show that the equivalence problem for LR-regular grammars is decidable if and only if the equivalence problem for LR(0) grammars is decidable.

论文关键词:

论文评审过程:Received 17 March 1981, Revised 1 November 1981, Available online 2 December 2003.

论文官网地址:https://doi.org/10.1016/0022-0000(82)90044-7