better enum handling

separated enumdeclarationsyntax and enummembersyntax