WIP: generate enum definitions