pub fn parse_source_file(
source: &str,
errors: Option<&mut Vec<String>>,
) -> ParseResult<usize>Expand description
Parse all top-level declarations from an OxiLean source file.
Returns the count of successfully parsed declarations. Errors within
individual declarations are collected into errors (if provided) and
parsing continues at the next declaration.
ยงErrors
Returns Err only when the source is empty.