Adding parser_error to parse ternary.