implements enum generation
Merge pull request #8 from ouaibsky/patch-8

implements enum generation