Skip to main content

parse

Function parse 

Source
pub fn parse(file: FileId, text: &str) -> ParseOutput
Expand description

Lex then parse text belonging to file.

This is the front-end entry point the CLI threads in after reading a file. It never panics on malformed input; it always returns a tree and as many diagnostics as it could gather.