Very cool! If you want to see a much simpler version of this I wrote an article a few years implementing a stack language in Postgres PL/pgSQL similar to what this one does.
https://notes.eatonphil.com/exploring-plpgsql-forth-like.htm...