arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1102.2003cs.PL
收藏

Parsing Reflective Grammars

Paul Stansifer, Mitchell Wand

英文摘要:

Existing technology can parse arbitrary context-free grammars, but only a single, static grammar per input. In order to support more powerful syntax-extension systems, we propose reflective grammars, which can modify their own syntax during parsing. We demonstrate and prove the correctness of an algorithm for parsing reflective grammars. The algorithm is based on Earley's algorithm, and we prove that it performs asymptotically no worse than Earley's algorithm on ordinary context-free grammars.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑