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

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

计算机科学 > 计算机科学中的逻辑

arXiv:2001.04457 (cs)
[提交于 2020年1月13日]

标题:A Verified Packrat Parser Interpreter for Parsing Expression Grammars

作者:Clement Blaudeau, Natarajan Shankar
查看论文《A Verified Packrat Parser Interpreter for Parsing Expression Grammars》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Parsing expression grammars (PEGs) offer a natural opportunity for building verified parser interpreters based on higher-order parsing combinators. PEGs are expressive, unambiguous, and efficient to parse in a top-down recursive descent style. We use the rich type system of the PVS specification language and verification system to formalize the metatheory of PEGs and define a reference implementation of a recursive parser interpreter for PEGs. In order to ensure termination of parsing, we define a notion of a well-formed grammar. Rather than relying on an inductive definition of parsing, we use abstract syntax trees that represent the computational trace of the parser to provide an effective proof certificate for correct parsing and ensure that parsing properties including soundness and completeness are maintained. The correctness properties are embedded in the types of the operations so that the proofs can be easily constructed from local proof obligations. Building on the reference parser interpreter, we define a packrat parser interpreter as well as an extension that is capable of semantic interpretation. Both these parser interpreters are proved equivalent to the reference one. All of the parsers are executable. The proofs are formalized in mathematical terms so that similar parser interpreters can be defined in any specification language with a type system similar to PVS.
评论: 15 pages, 15 figures, Certified Proofs and Programs
主题: 计算机科学中的逻辑 (cs.LO)
引用方式: arXiv:2001.04457 [cs.LO]
  (或者 arXiv:2001.04457v1 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.2001.04457
相关 DOI: https://doi.org/10.1145/3372885.3373836

提交历史

来自:Natarajan Shankar
[v1] 2020年1月13日 星期一 18:45:14 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.LO
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-01
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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