Metaprogramming is the technique that programmers use in order to write code (computer instructions) that, instead of being directly evaluated and executed, produces different code that is in turn evaluated and run by the machine.
Here, the programmer, instead of writing the three for loops (supposedly in many places of her program), can just write LOOPS(1,2,3) and this will be expanded ...