To be more specific to what araq stated: Make your life very easy and use the `newEnum` proc (which can only be used inside macros) which does exactly what you want to do here - just not in a way that can be called from normal code and needs you to wrap it in a macro.
<https://nim-lang.org/docs/macros.html#lispRepr%2CNimNode>