Adding parser_error to parse_type.