News for hackers. Stuff that matters.
Re:Show HN: Transductive regular expressions for text editing by c0nstantine on Saturday February 08, 2025 @05:59AM (#42982090)
The right side is a normal regex language syntactically. Semantically it is a generator instead of a parser (consumer).

But I got your point. Maybe there could be some ways to do it in consistent way. Just straight tr-like syntax won't work, e.g I really want it something like this to be valid:

[a-b]:(x|y) (pairs a:x, b:x, a:y, b:y)

and I prefer not handle these in some ad-hoc way.

Re:Show HN: Transductive regular expressions for text editing by kazinator on Saturday February 08, 2025 @01:53PM (#42985189)
I also go your point. The right side is a regular expression because it denotes a regular set.