跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 数据结构与算法

arXiv:1908.10888 (cs)
[提交于 2019年8月28日 (v1),最后修订于 2023年5月18日 (此版本, v5)]

标题:Eliminating Left Recursion without the Epsilon

作者:James Smith
查看论文《Eliminating Left Recursion without the Epsilon》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The standard algorithm to eliminate indirect left recursion takes a preventative approach, rewriting a grammar's rules so that indirect left recursion is no longer possible, rather than eliminating it only as and when it occurs. This approach results in many of the rules being lost, so that the parse trees that result are often devoid of the detail that the BNF was supposed to capture in the first place. Furthermore, the standard algorithm results in exponential blow-up as the BNF is rewritten, making it wholly unworkable in practice. To avoid these pitfalls, we revise the standard algorithm to eliminate direct left recursion and then take a graph-theoretic approach to eliminating indirect left recursion. We also extend the algorithm to rewrite the resultant parse trees in order to recover the parse trees that would have resulted if left recursion had not had to be eliminated in the first place. Therefore, aside from a couple of caveats, our algorithm works not just in theory but also in practice.
评论: 13 pages
主题: 数据结构与算法 (cs.DS)
引用方式: arXiv:1908.10888 [cs.DS]
  (或者 arXiv:1908.10888v5 [cs.DS] 对于此版本)
  https://doi.org/10.48550/arXiv.1908.10888

提交历史

来自:James Smith
[v1] 2019年8月28日 星期三 18:04:33 UTC
[v3] 2020年2月29日 星期六 09:01:06 UTC
[v4] 2023年5月11日 星期四 17:57:29 UTC
[v5] 2023年5月18日 星期四 15:50:33 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.DS
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-05
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站