add parser for defines
Add support for enum