C compiler with embedded metalanguage.
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
@{
|
|
mapast(f, seq)
|
|
{
|
|
out = {};
|
|
for (i in seq) {
|
|
e = seq[i];
|
|
out[length(out)] = e.__proto__ != Token ? f(e) : e ;
|
|
}
|
|
out;
|
|
}
|
|
|
|
idToString(x) { { __proto__: C_string, value: "\"" + string(x.name.identifier) + "\"" } }
|
|
|
|
nil;
|
|
}
|
|
|
|
enum foo { Closed = 0, ReadOnly = 1, WriteOnly = 2 };
|
|
|
|
static char *stateNames[] = { @(mapast(idToString, program.last.enumList)) };
|