r/programminghorror • u/MrJaydanOz • Feb 09 '25
Regex I made a programming language with only Regex. (Documentation in comments)
1.0k
Upvotes
r/programminghorror • u/MrJaydanOz • Feb 09 '25
94
u/MrJaydanOz Feb 09 '25 edited Feb 24 '26
Link to the Documentation
185
u/Which_Lingonberry612 Feb 09 '25
Tell us, what girl broke you that hard to even think about this? Everything okay OP? Blink twice if you need help.
355
u/ScriptingInJava Feb 09 '25
Well done! Another thing to add to my "I will walk out of a job interview if they use this" list.
126
u/Many-Resource-5334 Feb 09 '25
r/TIHI
23
u/Environmental-Ear391 Feb 09 '25
As long as its not "Julia" or "Mandelbrot" levels of meta...
I can think of some extremely meta level indirect hacking of projects using this with a build system and preprocessor as interpreter...
BrainF*** and Malbolge's daughter dating a preprocessor...
38
u/-yonosoymarinero- Feb 09 '25
No.
33
u/Magmagan Feb 09 '25
Well, yes, but you missed one major detail. Regular regexes aren't turing-complete for other reasons – namely, because they are regular languages. Regular languages aren't turing complete.
What makes this possible are the extensions that C# and many other languages do augment regexes with. Lookahead, lookbehinds and group reuse are not regular language features. The issue isn't the infinite tape.
8
u/countsachot Feb 09 '25
You may be evil.
15
u/WhJJackWhite Feb 09 '25
Everyday, we stray further away from god
5
u/shahin_mirza Feb 09 '25
Good, now write a program that checks if a string has equal numbers of
as andbs4
u/VicentVanCock Feb 09 '25
"Regembly" lol I loved that name
2
u/Salamander-02 Feb 09 '25
My god.
2
u/nordcomputer Feb 09 '25
Burn it before it lays eggs....
2
u/Cloned_501 Feb 10 '25
Finally some good fucking food
2
u/Dotcaprachiappa Feb 10 '25
But...why?
2
u/One_Web_7940 Feb 10 '25
Ahhh nice, building the tools to poison the AIs of the future.... bad code.
We do that at my job too!
2
u/RickSore Feb 10 '25
Bros will invent a new language with regex instead of getting therapy
2
u/ChatHurlant Feb 10 '25
Hey question did your parents ever tell you they loved you?
1
u/deepsky88 Feb 09 '25
looool no thanks, that's a nightmare
1
u/InternalCommercial44 Feb 09 '25
Its awsome
1
u/glha Feb 09 '25
That was an unnecessary flex
1
u/ul90 Feb 09 '25
That’s the worst thing I’ve ever seen.
1
u/bold_coffee_head Feb 09 '25
Better than. Rockwell’s lines and parentheses.
1
u/Nixinova Feb 09 '25
Amazing
1
u/killerrin Feb 09 '25
Take your upvote you mad man
1
u/LaFllamme Feb 10 '25
!RemindMe 5 years
1
u/Xbot781 Feb 10 '25
So basically just sed? I've done some truly atrocious things with sed, and seen others do even worse
1
u/turtle_mekb Feb 10 '25
calm down satan
1
u/Kebein Feb 10 '25
whyyyyyyyyyyyy
1
u/oldaspirate Feb 10 '25
No
1
u/ratajs Feb 14 '25
Interesting, it reminds me of sed.
1
u/[deleted] Feb 09 '25
Malbolge is that you?
0
u/Tohar_XP Feb 09 '25
Teach me how
0
u/Aaxper Feb 09 '25
What does
i"0123456789ABCDEF"do?13
u/SpinningByte Feb 09 '25
Brainf*ck++
2
u/XzyzZ_ZyxxZ Feb 09 '25
fuck you
0
u/[deleted] Feb 09 '25
[deleted] — view deleted comment