返回
摘要
En 中文
Despite all advances in parsing, parser size, conflict resolution and error recovery are still of important consideration. In this research, we propose a predictive bottom-up parser. The parser is implemented in two versions. Both versions constitute an algorithm that simulates the run of a shift-reduce automaton, defined and constructed in a way that integrates its parsing actions with reduction prediction, conflict resolution and error recovery. However, the first implementation version performs explicit shift-reduce parsing actions based on implicit prediction of the reduction sequences. The second one performs parsing actions based on explicit prediction of the reduction sequences with implied shift-reduce actions. The proposed parser has been experimented against the ones based on similar approaches. 10-20% reduction of the parser size has been achieved, with a parsing behaviour proportional to a factor reflecting the grammar ambiguity.
Keyword:
LALR parsing
Predictive parsing
Conflicts
Error recovery
Algorithms
期刊
C
IF:
2.8
论文数:
2.3K
被引数:
4.2K
机构
暂无机构信息

