Efficient Controlling of Parsing-Stack Operation for LR Parsers
Efficient Controlling of Parsing-Stack Operation for LR Parsers
复制标题
LR 解析器解析堆栈操作的有效控制
DOI:
10.1016/s0020-0255(99)00040-7
复制
发表时间:
1999
期刊:
影响因子:
--
通讯作者:
J. Aoe
中科院分区:
文献类型:
--
作者:
M. Fuketa;K. Morita;S. Lee;J. Aoe
This paper presents a new method of LR parsing based on the distinction of stack states and non-stack states. Non-stack states are states, which do not need to be pushed into the LR parsing stack, and stack states are states to be pushed into it. By using some properties based on the stack-controlling LR parser defined here, the parsing speed and the size of parsing tables can be remarkably improved and their improvement includes the traditional method eliminating unit productions. By empirical observations for a variety of programming languages, the efficiency is verified. Extending it to the generalized LR parsers for natural language is also discussed.