replace-attoparsec:使用 Haskell Attoparsec 解析器进行流编辑

时间:2021-05-29 10:40:35
【文件属性】:
文件名称:replace-attoparsec:使用 Haskell Attoparsec 解析器进行流编辑
文件大小:23KB
文件格式:ZIP
更新时间:2021-05-29 10:40:35
haskell haskell-library stream-editor find-and-replace attoparsec 替换-attoparsec replace-attoparsec用于查找文本模式,并替换或拆分找到的模式。 此活动传统上使用正则表达式完成,但replace-attoparsec使用解析器进行模式匹配。 replace-attoparsec可用于相同类型的“模式捕获”或“查找所有”情况,在这种情况下,人们将使用 Python 或 Perl 或 Unix 。 replace-attoparsec可用于相同类型的“流编辑”或“搜索和替换”情况,在这种情况下,人们将使用 Python ,或 Perl ,或 Unix ,或awk 。 replace-attoparsec可用于与使用 Python re.split或 Perl split相同的“字符串拆分”情况。 有关megaparsec版本,请参阅replace-megaparsec 。 我们为什么要使用解析器而不是正则表达式来
【文件预览】:
replace-attoparsec-master
----Setup.hs(46B)
----src()
--------Replace()
----LICENSE(1KB)
----replace-attoparsec.cabal(2KB)
----README.md(14KB)
----tests()
--------TestText.hs(6KB)
--------TestByteString.hs(6KB)
----.gitignore(55B)
----CHANGELOG.md(1KB)

网友评论