Re:ECMAScript regular expressions are getting better (2017)
by ken on Wednesday November 28, 2018 @04:35PM
(#18555885)
Yup! There's performance reasons not to write a regular expression engine in a language like Python or Ruby. I'm not surprised that other natively compiled languages like Go and Rust are the ones that come closest.
I don't think I know of one either. But Go's regexp library provides access to the syntax[1], and so does rust/regex[2]. In the case of [2], it provides both an AST and a high level IR for regexes. It's not as convenience to build expressions as in your Lisp example, though, there's nothing stopping someone from building such a convenience. :-)
[1] https://golang.org/pkg/regexp/syntax/
[2] https://docs.rs/regex-syntax