Make functions return ParseResult<T>