Retina: A regex-based recreational programming language
github.com
github.com
[1] https://esolangs.org/wiki/Category:String-rewriting_paradigm
More didactic than a language reference
In the meantime, here is where you can find them:
- Online editor has a "Hello World" button that loads a very basic example
- https://github.com/m-ender/retina/tree/master/Examples has a bunch of more example, linked from the landing page
- https://github.com/m-ender/retina/wiki/The-Language shows the entire language (AFAIK), but it's a reference.
There also a bunch of examples with tutorial-like explanation in the Examples folder.
I'll think about adding one example to the main README though, just to really put people off of looking further into the language. ;)
While I'm here, in case anyone does actually use the language and find it to be useful, I also wrote a VS Code extension that lets you use it as a powerful search-and-replace alternative: https://github.com/m-ender/vscode-retinate
Not sure I’d ever use one, but it’s a useful categorization nonetheless!
https://github.com/m-ender/retina/blob/master/Examples/quine...
So elegant.
A lot of people (including me) have basically only learned the s command in sed and don't usually think about all of the more sophisticated sed features.
K`0¶1
{\G0`
)`(\d+)\n(\d+)
$2$n$.($1_$2*_)
...you got somethin' severely wrong with you, boy.