GENERATING LR(1) PARSERS OF SMALL-SIZE

被引:0
|
作者
GALVEZ, JF [1 ]
机构
[1] UNIV NICE SOPHIA ANTIPOLIS, CNRS, LAB I3S, F-06560 VALBONNE, FRANCE
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Classic LR(1) parsing methods have the problem of producing too large parsing tables for programming language grammars. An alternative is to build an automaton that combines the lookahead symbol with reading the parsing stack from its top, to determine the next parsing action. The building procedure for such a parser and its use for parsing are presented through an example grammar. Results from an experimental implementation of the parser generator show important reductions in automaton size in comparison with standard LR methods. Some discussion is presented, suggesting that the theoretical drawbacks of the method are of relatively little practical importance.
引用
收藏
页码:16 / 29
页数:14
相关论文
共 50 条