Racket: Parsing propositional logic in 33 lines
micahcantor.xyz
micahcantor.xyz
(Though, granted, the latter does need to separate lexer and parser.)
I don't know any other programming language that implement grammars in such a clean way.
Here you can see my version of the raku parser, it's arguably shorter (I'm not a Prolog expert): https://swish.swi-prolog.org/p/basic_logic_parser.pl
However, though I think raku's reimagination of regexes is probably the best one—and the one that feels the least bound to legacy—there are other developments in that area. For instance, oil's egg expressions - http://www.oilshell.org/preview/doc/eggex.html
I am having trouble finding real world examples right now, but it happens in languages like ALGOL and CPL (tho they predate ASCII)
\/ /\ A
/\ B
\/ /\ C
/\ D
Which represents (A & B) || (C & D). It helps quite a bit for parsing large formulas in your head. In TLA+ the individual expressions are usually much more complicated than a single variable.