No awk at all. Much imitation of 

On Sunday, July 20, 2025, Larry McVoy <lm@mcvoy.com> wrote:
On Sun, Jul 20, 2025 at 07:06:38PM -0700, Larry McVoy wrote:
> On Sun, Jul 20, 2025 at 08:30:45PM -0400, Douglas McIlroy wrote:
> > I just posted the most heavily commented code I have ever written.
> > It's a radical (mis?)application of m4, which is about as inscrutable
> > as any language short of APL. The ratio of comments to code is more
> > than 3:1.
> > It's at www.cs.dartmouth.edu/~doug/barem4.m4. 3:1 may be
> > overkill, but I think 2:1 would not be unreasonable.
> >
> > Doug
>
> Whenever I see something like this, it reminds me of one of my engineers
> who said you couldn't make BK produce json out put.
>
> Hold my beer.
>
> http://mcvoy.com/lm/bkdocs/dspec-changes-json-v.txt
>
> It's a lot less miserable than the m4 (and I'm a fan of m4).

It's pretty awk inspired.
--
---
Larry McVoy           Retired to fishing          http://www.mcvoy.com/lm/boat