Add nested loops to the template processor. The syntax is to separate the nested loops with lines containing strings like
Add nested loops to the template processor.
The syntax is to separate the nested loops with lines containing strings
like

#repeat = 1#
#repeat = 2#
...

The number doesn't really matter, but it helps document the depth.

Example:

The file containing

/**begin repeat
 * # a = 1,2,3#
 * # b = 1,2,3#
 * # repeat = 1#
 * # c = 1,2#
 * # d = 1,2#
 */
@a@@b@@c@@d@
/**end repeat**/

produces


#line 1 "template.c.src"

/*
 *****************************************************************************
 **       This file was autogenerated from a template  DO NOT EDIT!!!!      **
 **       Changes should be made to the original source (.src) file         **
 *****************************************************************************
 */

#line 8
1111

#line 8
1122

#line 8
2211

#line 8
2222

#line 8
3311

#line 8
3322



empeeu/numpy,groutr/numpy,nguyentu1602/numpy,GrimDerp/numpy,chatcannon/numpy,tdsmith/numpy,sinhrks/numpy,CMartelLML/numpy,empeeu/numpy,dch312/numpy,Dapid/numpy,leifdenby/numpy,ssanderson/numpy,argriffing/numpy,mortada/numpy,MaPePeR/numpy,numpy/numpy-refactor,naritta/numpy,mathdd/numpy,rudimeier/numpy,brandon-rhodes/numpy,pbrod/numpy,GaZ3ll3/numpy,stefanv/numpy,mattip/numpy,jakirkham/numpy,rajathkumarmp/numpy,ekalosak/numpy,ESSS/numpy,pyparallel/numpy,grlee77/numpy,Anwesh43/numpy,cowlicks/numpy,jschueller/numpy,SiccarPoint/numpy,jonathanunderwood/numpy,githubmlai/numpy,chiffa/numpy,mhvk/numpy,mhvk/numpy,matthew-brett/numpy,abalkin/numpy,naritta/numpy,dato-code/numpy,ViralLeadership/numpy,jankoslavic/numpy,ContinuumIO/numpy,rherault-insa/numpy,Yusa95/numpy,GaZ3ll3/numpy,skymanaditya1/numpy,tdsmith/numpy,sonnyhu/numpy,leifdenby/numpy,madphysicist/numpy,yiakwy/numpy,githubmlai/numpy,jorisvandenbossche/numpy,numpy/numpy-refactor,skwbc/numpy,shoyer/numpy,WarrenWeckesser/numpy,ddasilva/numpy,solarjoe/numpy,stefanv/numpy,ddasilva/numpy,dimasad/numpy,embray/numpy,bmorris3/numpy,mathdd/numpy,NextThought/pypy-numpy,MichaelAquilina/numpy,cowlicks/numpy,madphysicist/numpy,ChanderG/numpy,Anwesh43/numpy,gmcastil/numpy,charris/numpy,argriffing/numpy,Linkid/numpy,abalkin/numpy,Srisai85/numpy,dch312/numpy,kirillzhuravlev/numpy,larsmans/numpy,pizzathief/numpy,MaPePeR/numpy,ajdawson/numpy,bertrand-l/numpy,ogrisel/numpy,drasmuss/numpy,madphysicist/numpy,gmcastil/numpy,grlee77/numpy,matthew-brett/numpy,tdsmith/numpy,empeeu/numpy,dwf/numpy,gmcastil/numpy,ahaldane/numpy,skymanaditya1/numpy,sigma-random/numpy,rajathkumarmp/numpy,ekalosak/numpy,pbrod/numpy,charris/numpy,madphysicist/numpy,andsor/numpy,b-carter/numpy,njase/numpy,ESSS/numpy,numpy/numpy,mortada/numpy,dato-code/numpy,nguyentu1602/numpy,rmcgibbo/numpy,tacaswell/numpy,rudimeier/numpy,sinhrks/numpy,stefanv/numpy,mhvk/numpy,mindw/numpy,rherault-insa/numpy,Srisai85/numpy,sonnyhu/numpy,Dapid/numpy,pelson/numpy,dwillmer/numpy,MichaelAquilina/numpy,dwf/numpy,andsor/numpy,Linkid/numpy,pyparallel/numpy,MSeifert04/numpy,nbeaver/numpy,sonnyhu/numpy,numpy/numpy,BabeNovelty/numpy,skwbc/numpy,utke1/numpy,bmorris3/numpy,ViralLeadership/numpy,astrofrog/numpy,sinhrks/numpy,joferkington/numpy,joferkington/numpy,Dapid/numpy,skwbc/numpy,ajdawson/numpy,seberg/numpy,ddasilva/numpy,hainm/numpy,rudimeier/numpy,NextThought/pypy-numpy,endolith/numpy,ewmoore/numpy,BMJHayward/numpy,ewmoore/numpy,mattip/numpy,seberg/numpy,yiakwy/numpy,larsmans/numpy,MaPePeR/numpy,Yusa95/numpy,grlee77/numpy,seberg/numpy,tynn/numpy,pelson/numpy,dwillmer/numpy,ahaldane/numpy,pdebuyl/numpy,simongibbons/numpy,embray/numpy,Eric89GXL/numpy,seberg/numpy,Yusa95/numpy,Yusa95/numpy,abalkin/numpy,drasmuss/numpy,jorisvandenbossche/numpy,solarjoe/numpy,rmcgibbo/numpy,mattip/numpy,mhvk/numpy,pizzathief/numpy,grlee77/numpy,felipebetancur/numpy,pelson/numpy,pizzathief/numpy,utke1/numpy,MSeifert04/numpy,pelson/numpy,cjermain/numpy,brandon-rhodes/numpy,mwiebe/numpy,cjermain/numpy,kirillzhuravlev/numpy,musically-ut/numpy,numpy/numpy-refactor,jschueller/numpy,joferkington/numpy,ChristopherHogan/numpy,chiffa/numpy,dwf/numpy,mathdd/numpy,dwillmer/numpy,musically-ut/numpy,kiwifb/numpy,MichaelAquilina/numpy,kirillzhuravlev/numpy,nguyentu1602/numpy,bmorris3/numpy,chatcannon/numpy,argriffing/numpy,dato-code/numpy,WillieMaddox/numpy,brandon-rhodes/numpy,ContinuumIO/numpy,BabeNovelty/numpy,dwf/numpy,kiwifb/numpy,AustereCuriosity/numpy,rudimeier/numpy,pdebuyl/numpy,GrimDerp/numpy,stuarteberg/numpy,rgommers/numpy,ekalosak/numpy,Linkid/numpy,ChanderG/numpy,dwf/numpy,numpy/numpy,charris/numpy,simongibbons/numpy,Srisai85/numpy,rhythmsosad/numpy,nguyentu1602/numpy,trankmichael/numpy,NextThought/pypy-numpy,mwiebe/numpy,bringingheavendown/numpy,mingwpy/numpy,jankoslavic/numpy,jorisvandenbossche/numpy,SiccarPoint/numpy,CMartelLML/numpy,sigma-random/numpy,pyparallel/numpy,kirillzhuravlev/numpy,BMJHayward/numpy,immerrr/numpy,pbrod/numpy,larsmans/numpy,Linkid/numpy,mindw/numpy,dimasad/numpy,chatcannon/numpy,bmorris3/numpy,numpy/numpy-refactor,stuarteberg/numpy,numpy/numpy,MSeifert04/numpy,ssanderson/numpy,tacaswell/numpy,astrofrog/numpy,moreati/numpy,dimasad/numpy,leifdenby/numpy,anntzer/numpy,rajathkumarmp/numpy,chiffa/numpy,jschueller/numpy,mindw/numpy,BabeNovelty/numpy,behzadnouri/numpy,grlee77/numpy,matthew-brett/numpy,rhythmsosad/numpy,sonnyhu/numpy,SiccarPoint/numpy,rgommers/numpy,BabeNovelty/numpy,mingwpy/numpy,ChanderG/numpy,moreati/numpy,trankmichael/numpy,felipebetancur/numpy,SunghanKim/numpy,mortada/numpy,gfyoung/numpy,musically-ut/numpy,ContinuumIO/numpy,mindw/numpy,mathdd/numpy,cjermain/numpy,ogrisel/numpy,dwillmer/numpy,brandon-rhodes/numpy,jakirkham/numpy,WarrenWeckesser/numpy,GaZ3ll3/numpy,ajdawson/numpy,maniteja123/numpy,immerrr/numpy,stuarteberg/numpy,SiccarPoint/numpy,dch312/numpy,KaelChen/numpy,githubmlai/numpy,ewmoore/numpy,rgommers/numpy,Anwesh43/numpy,CMartelLML/numpy,bertrand-l/numpy,hainm/numpy,astrofrog/numpy,cowlicks/numpy,endolith/numpy,ChristopherHogan/numpy,embray/numpy,has2k1/numpy,ESSS/numpy,pbrod/numpy,tacaswell/numpy,WillieMaddox/numpy,MSeifert04/numpy,gfyoung/numpy,ahaldane/numpy,b-carter/numpy,trankmichael/numpy,shoyer/numpy,rmcgibbo/numpy,nbeaver/numpy,BMJHayward/numpy,endolith/numpy,stuarteberg/numpy,SunghanKim/numpy,KaelChen/numpy,ewmoore/numpy,ahaldane/numpy,has2k1/numpy,andsor/numpy,tynn/numpy,Anwesh43/numpy,simongibbons/numpy,GrimDerp/numpy,pdebuyl/numpy,cowlicks/numpy,rgommers/numpy,bertrand-l/numpy,trankmichael/numpy,groutr/numpy,hainm/numpy,mingwpy/numpy,jorisvandenbossche/numpy,kiwifb/numpy,njase/numpy,behzadnouri/numpy,felipebetancur/numpy,rhythmsosad/numpy,ssanderson/numpy,jakirkham/numpy,BMJHayward/numpy,matthew-brett/numpy,naritta/numpy,joferkington/numpy,SunghanKim/numpy,simongibbons/numpy,musically-ut/numpy,yiakwy/numpy,MichaelAquilina/numpy,sigma-random/numpy,immerrr/numpy,charris/numpy,has2k1/numpy,ogrisel/numpy,madphysicist/numpy,MSeifert04/numpy,andsor/numpy,githubmlai/numpy,ewmoore/numpy,b-carter/numpy,MaPePeR/numpy,ogrisel/numpy,sigma-random/numpy,rherault-insa/numpy,yiakwy/numpy,sinhrks/numpy,groutr/numpy,cjermain/numpy,ChristopherHogan/numpy,moreati/numpy,matthew-brett/numpy,jschueller/numpy,dimasad/numpy,rmcgibbo/numpy,Eric89GXL/numpy,dato-code/numpy,anntzer/numpy,tynn/numpy,pizzathief/numpy,felipebetancur/numpy,astrofrog/numpy,jonathanunderwood/numpy,mingwpy/numpy,pbrod/numpy,jonathanunderwood/numpy,embray/numpy,dch312/numpy,shoyer/numpy,pdebuyl/numpy,solarjoe/numpy,embray/numpy,stefanv/numpy,mhvk/numpy,NextThought/pypy-numpy,maniteja123/numpy,ChristopherHogan/numpy,jankoslavic/numpy,AustereCuriosity/numpy,skymanaditya1/numpy,mattip/numpy,ogrisel/numpy,behzadnouri/numpy,Srisai85/numpy,WillieMaddox/numpy,nbeaver/numpy,GrimDerp/numpy,shoyer/numpy,GaZ3ll3/numpy,hainm/numpy,rajathkumarmp/numpy,larsmans/numpy,ViralLeadership/numpy,ahaldane/numpy,tdsmith/numpy,anntzer/numpy,bringingheavendown/numpy,CMartelLML/numpy,jankoslavic/numpy,maniteja123/numpy,gfyoung/numpy,Eric89GXL/numpy,simongibbons/numpy,naritta/numpy,ekalosak/numpy,pelson/numpy,anntzer/numpy,njase/numpy,numpy/numpy-refactor,utke1/numpy,astrofrog/numpy,ajdawson/numpy,rhythmsosad/numpy,endolith/numpy,AustereCuriosity/numpy,stefanv/numpy,WarrenWeckesser/numpy,has2k1/numpy,KaelChen/numpy,empeeu/numpy,bringingheavendown/numpy,skymanaditya1/numpy,drasmuss/numpy,mortada/numpy,mwiebe/numpy,pizzathief/numpy,immerrr/numpy,jakirkham/numpy,ChanderG/numpy,KaelChen/numpy,shoyer/numpy,jakirkham/numpy,jorisvandenbossche/numpy,WarrenWeckesser/numpy,Eric89GXL/numpy,SunghanKim/numpy,WarrenWeckesser/numpy