计算机科学 > 程序设计语言
[提交于 2011年2月11日 (v1),最后修订于 2011年2月11日 (此版本, v2)]
标题:Parsing Reflective Grammars
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Paul Stansifer[v2] 2011年2月11日 星期五 17:03:17 UTC