C compiler with embedded metalanguage.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

19 行
374 B

@{
nTimes = `constant 10;
forLoop = (`statement for (int i = 0; i < 10; ++i) printf("%d\n", i););
whileLoop = `statement while (i < 10) { printf("%d\n", i); ++il; };
useForLoop = 1;
}
int main()
{
@{
if (useForLoop) {
@@.append(forLoop);
} else {
@@.append(whileLoop);
}
@@;
};
return 0;
}