parser: Parse named enums.