结构化语法是有效的
Structured Grammars are Effective
摘要:
自顶向下解析最近受到了广泛的关注。解析表达式文法(PEG)允许使用packrat算法构造线性时间解析器。然而,这些技术遭受前缀隐藏的问题。我们使用替代形式主义的相对正则表达式REGREG自上而下的回溯解析器运行在线性时间。这种形式主义允许构造快速的语法分析器与实际的语法适度的内存需求。我们表明,我们的形式主义是等价的PEG。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。