C compiler with embedded metalanguage.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
218 B

enum foo { x, y, z };
@{
toChar(foo) {
"\""+foo+"\"";
}
square(foo) {
foo * foo;
}
c = ["earth", "sky", "water"];
}
@{print(map(square, [100, 2, 3]));}
@{print(map(toChar, c));}