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;
}