Increasing the Applicability of LR Parsing
Increasing the Applicability of LR Parsing
复制标题
增加LR解析的适用性
DOI:
10.1007/978-94-010-9733-8_3
复制
发表时间:
1993
期刊:
影响因子:
--
通讯作者:
J. Sarbo
中科院分区:
文献类型:
--
作者:
M. Nederhof;J. Sarbo
In this paper we describe a phenomenon present in some context-free grammars, called hidden left recursion. We show that ordinary LR parsing according to hidden left-recursive grammars is not possible and we indicate a range of solutions to this problem. One of these solutions is a new parsing technique, which is a variant of traditional LR parsing. This new parsing technique can be used both with and without lookahead and the nondeterminism can be realized using backtracking or using a graph-structured stack.