[WIP] generate enum definitions