GDMO Compiler
One of the most enjoyable pieces of software that I have written was a compiler for the OSI GDMO (Guidelines for the Definition of Managed Objects) language which is used to specify Managed Object classes; a GDMO compiler is akin to a CORBA IDL compiler. The compiler's code generation is controlled by an interpreted script language that provides a flexible environment for incorporating hand-written code and generating code for different platforms.