More in general:programs that write programs or part of it (code generators) are probably just a week "younger" than the programming language: most professionals of us have written code generators to solve repetitive tasks may times. Or use compiler generators, which is the same in a more advanced way. See the calculator example in the wiki. Other examples in the same family are the RegEx engines. And the compiler itself. A self-hosting compiler is a compiler that writes itself...
Another example, predating AI, are the rule based languages, where you define rules in almost natural language and the compiler obeys.