Use an std::map to map Lua names to enum values.