This is so reminiscent of doing web development in smalltalk with seaside.
> I've been maintaining a Smalltalk compiler, <URL>
But alas. I wonder how hard it is to get a copy of the spec...
Download and search !Compiler in:
./Cuis7-0-main/CuisImage/Cuis7.0.sources
:and you'll see the commented Compiler class source code:"The compiler accepts Smalltalk source code and compiles it with respect to a given class. The user of the compiler supplies a context so that temporary variables are accessible during compilation."
It would be easier to install Cuis Smalltalk and use the Smalltalk browsers to explore the Compiler code.