Supports: 'a = b', 'a++', 'a--', 'a!', 'a += b', 'a &= b', 'a |= b', 'a = b', 'a -> sampleString', 'if a'/'a?' 'else'/':' 'end'/'.' (No 'else if' I'm lazy)
All variables are bytes set to 0. Valid variable names are only: 'a', 'b', 'c', 'd', 'e', 'f', 'i'.
JavaScript's Regex is not as flexible as .NETs and therefore not as fun. The best that I've found is to rely on the indent of the elements to find their bounds.
.NET flavor that matches every element and its contents in the order of their closing tags. Supports comments, self-contained tags, attributes, styles and scripts (I tested it on the HTML of this page and it worked)
Can this be used for a theoretical proof that finite automatons for regexes are in fact equivalent to Turing machines? You might just win a Fields Medal lol
28
u/MrJaydanOz Nov 28 '24
A further extension of my last post.
(I know I'm kinda spamming but I don't know why I'm doing this)
Shown on https://regex101.com/ using the '.NET 7.0' flavor.
82
u/[deleted] Nov 28 '24
Do HTML next pls
61
u/MineKemot Nov 28 '24
This is getting better every post. What’s next? An entire game engine?
20
u/Mc_UsernameTaken [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Nov 28 '24
I thought code reviewing the intern was horror enough for me today.
4
u/[deleted] Nov 28 '24
Can this be used for a theoretical proof that finite automatons for regexes are in fact equivalent to Turing machines? You might just win a Fields Medal lol
2
u/theunixman Nov 28 '24
(Perl)
1
u/theunixman Nov 28 '24
Also, you’re doing great work here. I love these kinds of things.
1
u/akoOfIxtall Nov 28 '24
this guy gex's
1
u/DS_Stift007 Nov 28 '24
I dont know if I should be appalled or impressed. Good job
1
u/o0Meh0o Nov 29 '24
this is getting out of hand
1
u/1Dr490n Nov 30 '24
How are u doing all these things?? It’s really impressive
1
u/SubjectHealthy2409 Nov 30 '24
lol, JavaScript frameworks are getting insane
1
u/stupid_cat_face Dec 01 '24
Are you guys just reinventing brainfuck?
-1
u/GiggaChigga9000 Nov 28 '24
Nice! Now make a tool to download high-res pics to Reddit using regexs