woolsweater / cocoaenumtostring Goto Github PK
View Code? Open in Web Editor NEWPython script that uses libclang to parse a Cocoa file looking for enums and create a mapping -- either a switch statement or an array -- between the constant values and their names.