首页> 外文会议>International symposium on functional and logic programming >POSIX Regular Expression Parsing with Derivatives
【24h】

POSIX Regular Expression Parsing with Derivatives

机译:带有衍生物的POSIX正则表达式解析

获取原文

摘要

We adapt the POSIX policy to the setting of regular expression parsing. POSIX favors longest left-most parse trees. Compared to other policies such as greedy left-most, the POSIX policy is more intuitive but much harder to implement. Almost all POSIX implementations are buggy as observed by Kuklewicz. We show how to obtain a POSIX algorithm for the general parsing problem based on Brzozowski's regular expression derivatives. Correctness is fairly straightforward to establish and our benchmark results show that our approach is promising.
机译:我们使POSIX策略适应正则表达式解析的设置。 POSIX支持最长的最左边的分析树。与诸如最左边的贪婪之类的其他策略相比,POSIX策略更直观,但更难以实现。 Kuklewicz观察到,几乎所有POSIX实现都是错误的。我们展示了如何基于Brzozowski正则表达式导数为一般解析问题获得POSIX算法。建立正确性非常简单,我们的基准测试结果表明我们的方法很有希望。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号