pub fn parse(src: &str) -> Result<Program<'_>, Diagnostics>Expand description
Parse a full .vrf source into a Program, collecting every syntax error.
On the first failing statement the parser does not give up: it records a
Diagnostic, resynchronises to the next top-level keyword line, and
continues. A clean parse returns the Program; otherwise it returns all
errors as Diagnostics, whose Display renders each as a caret block with
the keyword’s correct syntax.