in reply to Re^2: Programs that write programs
in thread Programs that write programs

One take on this is the "meta-circular evaluator":
  • Structure And Interpretation Of Computer Programs
  • Abelson & Sussman's celebrated sort-of-Scheme-fest. Bill Hails has done something similar from a perl p.o.v:
  • http://www.billhails.net/Book/