@{import("parsimonyLibrary/boot.mc");} enum foo { Closed = 0, ReadOnly = 1, WriteOnly = 2 }; @{ idToString(x) {{ __proto__: C_string, value: "\"" + string(x.name.identifier) + "\"" }} nil; } static char *stateNames[] = { @(map(idToString, program.last.enumList, notToken)) };