Skip to main content

parse

Function parse 

Source
pub fn parse(
    tokens: &[Spanned<Token>],
    file: FileId,
) -> (Option<File>, Vec<ParseError>)
Expand description

Parse a token stream into a File AST.

Returns Some(File) even when errors are present: the parser skips to the next item or statement boundary after an error and keeps going. It currently never returns None.