Deterministic, Error-Correcting Combinator Parsers
Deterministic, Error-Correcting Combinator Parsers
复制标题
确定性、纠错组合器解析器
DOI:
10.1007/3-540-61628-4_7
复制
发表时间:
1996
期刊:
影响因子:
--
通讯作者:
L. Duponcheel
中科院分区:
文献类型:
--
作者:
S. Swierstra;L. Duponcheel
We show how error-correcting, deterministic, combinator parsers can be constructed for grammars which have the LL(1) property. The normal disadvantages of conventional combinator parsers, such as their lack of speed and their poor error reporting, are remedied. Parsers constructed with these combinators are implicitly specialised for the grammar they describe. Because of this property the combinators act as a parser generator for LL(1) grammars. The techniques used to construct the combinators illustrate how partial parametrisation and careful ordering of computations can be used to achieve implicit partial evaluation in a lazy language.