Having recently played around with sam, I could see some interesting possibilities based on the title of this post, But from the link, it doesn't seem like there are any examples of what this is meant to look like.
I'm not sure, but having eval on the RHS using $1, $2 vars as in Perl seems to be easier to use and remember. You can represent all se commands this way naturally: x a i d c
Structural regular expressions seem to be to me more like dynamic pattern matchers and parsers, such as in raku (perl6).
6 comments
[ 4.7 ms ] story [ 28.0 ms ] threadStructural regular expressions seem to be to me more like dynamic pattern matchers and parsers, such as in raku (perl6).