> Thanks a lot. I was trying to write macro that generates: enum type and > procedure to map value of this enum to related string.
It's... a native feature of Nim: [https://nim-lang.org/docs/manual.html#types-enumeration-types](https://nim-lang.org/docs/manual.html#types-enumeration-types)
