Skip to main content

parse_program

Function parse_program 

Source
pub fn parse_program(source: &str) -> (Program, Vec<CompileError>)
Expand description

Parse an entire source string into a Program.

Each line is parsed independently. Lines that fail to parse produce a CompileError in the error list but do not prevent other lines from being parsed (best-effort / error-recovery).