Finished the code generate
Last issue: endless generation loop (occures when a enumeration type is used in another package)