Skip to main content

parse_with_errors

Function parse_with_errors 

Source
pub fn parse_with_errors(source: &str) -> (Option<AgentFile>, Vec<String>)
Expand description

Parse an AgentScript file from source with full error reporting.

Returns both a partial AST (if recovery succeeded) and ALL errors found. This allows collecting multiple errors in a single parse pass.