pub fn parse_file<B: ParseBackend>(
input: &str,
file_id: FileId,
backend: &B,
) -> ParseResultExpand description
Parse a single file with the given backend, using default ParseOptions.
This is a thin convenience wrapper over parse_with_backend for the
common case where the caller does not need to customize parse options
(Oracle 19c target, statement-boundary recovery).
A backend is supplied explicitly: this crate is the backend-independent parsing surface (R2 / R20) and intentionally has no knowledge of any concrete backend. Callers that need a zero-configuration entry point construct their chosen backend once and pass it here.
let result = parse_file("BEGIN NULL; END;", FileId::new(1), &MyBackend);
assert!(result.is_clean());