【24h】

Certified Parsing of Regular Languages

机译:认证的常规语言解析

获取原文

摘要

We report on a certified parser generator for regular languages using the Agda programming language. Specifically, we programmed a transformation of regular expressions into a Boolean-matrix based representation of nondeterministic finite automata (NFAs). And we proved (in Agda) that a string matches a regular expression if and only if the NFA accepts it. The proof of the if-part is effectively a function turning acceptance of a string into a parse tree while the only-if part gives a function turning rejection into a proof of impossibility of a parse tree.
机译:我们报告使用Agda编程语言的经过认证的常规语言解析器生成器。具体来说,我们将正则表达式转换为基于布尔矩阵的不确定性自动机(NFA)表示形式。并且我们证明了(在Agda中)只有当NFA接受时,字符串才与正则表达式匹配。 if-部分的证明实际上是将字符串的接受转换为语法树的功能,而if-if的部分则提供了将拒绝变为语法树的不可能性证明的功能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号