计算机科学 > 形式语言与自动机理论
[提交于 2012年5月10日]
标题:Structured Grammars are Effective
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Top-down parsing has received much attention recently. Parsing expression grammars (PEG) allows construction of linear time parsers using packrat algorithm. These techniques however suffer from problem of prefix hiding. We use alternative formalism of relativized regular expressions REGREG for which top-down backtracking parser runs in linear time. This formalism allows to construct fast parsers with modest memory requirements for practical grammars. We show that our formalism is equivalent to PEG.
提交历史
来自:Ondřej Bílka[v1] 2012年5月10日 星期四 00:00:00 UTC