C compiler with embedded metalanguage.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

42 Zeilen
724 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;
x = null;
}
@{forLoop = `statement for (int i = 0; i < 10; ++i) printf("%d\n", i);;}
@{
if (useForLoop) {
x = forLoop;
} else {
x = whileLoop;
}
}
int main()
{
@x;
@(`statement for (int i = 0; i < @(nTimes); ++i) printf("%d\n", i););
@{
if (useForLoop) {
forLoop;
} else {
whileLoop;
}
};
@{
useForLoop = 0;
if (useForLoop) {
@forLoop;
} else {
@whileLoop;
}
};
return 0;
}