pub fn parse_recovering_multi(
source: &str,
max_errors: usize,
) -> Result<ParseOutput, RecoverMultiResult>Expand description
Parse in multi-error recovery mode: on statement failures, skip to the next sync point
(e.g. ;, }, or statement-start keyword) and continue, collecting up to max_errors errors.
Requires the program grammar to use recover_until
(used for program and block). Returns Ok(output) on full success; Err(RecoverMultiResult { partial, errors })
when at least one parse error was collected. Use the partial output’s syntax root for a best-effort
tree and convert each error to diagnostics for IDE or batch reporting.