parse_program

Function parse_program 

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

Parse a full Amarok program (multiple statements).

All spans on the resulting AST will use FileId::DUMMY; for multi-file scenarios use parse_program_with_file_id.

ยงErrors

Returns an error if the source is not valid Amarok syntax for a full program.