added support for simple enum declaration