Cog: A Code Generation Tool Written in Python; this is apparently an old tool (blog date 2004), that I had never heard about before. But, the idea of code generation is a useful one, and something Lisps do really well, and is a core part of their identity “code is data”.

nim among other languages also have this “metaprogramming” ability.