We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
您还没有说明您的平台,但假设基于您的其他标签的 C#,您可能需要查看 LINQ 到正则表达式。我不确定这真的是一个好主意,但这是我听说过的最接近您所追求的想法。
You haven't stated your platform, but assuming C# based on your other tags, you might want to look at LINQ to Regex. I'm not sure it's really a good idea, but it's the closest I've heard of to what you're after.
Emacs 有一个用于正则表达式的 sexp DSL: http://repo.or.cz/w/emacs.git/blob/HEAD:/lisp/emacs-lisp/rx.el
Emacs has an sexp DSL for regexps: http://repo.or.cz/w/emacs.git/blob/HEAD:/lisp/emacs-lisp/rx.el
我不知道 DSL,但对于那些不了解正则表达式的人来说,有
正则表达式分析器
I don't know of a DSL, but for those who don't understand regex, there's the
Regular Expression Analyzer
PEG 是比正则表达式更具可读性(也更强大)的替代方案。如果您正在寻找语义上与普通正则表达式等效的东西,那么任何允许注释和空格的实现就足够了。
PEGs are a much more readable (and more powerful) alternative to regular expressions. If you're looking for something semantically equivalent to the normal regexps, then any implementation which allows comments and whitespaces would be sufficient.
我编写了 REL,一个开源正则表达式 DSL。
它是在 scala 中,但您可以将正则表达式导出/翻译为其他 风格如.NET。
I wrote REL, an open-source regex DSL.
It is in scala, but you can export/translate your regexes into other flavors like .NET.
我刚刚遇到了 RegEsp DSL。它似乎很少受到关注。我喜欢这个主意。
I just came across the RegEsp DSL. It seems to have gotten very little attention. I love the idea.