At January's meeting we tried our hand at code generation using Argent, which is the ruby port of Cog.
ZhonJohansen and JeffGrover were happy to find that argent would work for them to generate a C++ header file given the C++ implementation file.
Additional resources:
Book: "Code Generation in Action" http://codegen.software-acumen.com/cgia/
Website: http://www.codegeneration.net/
