Skip to main content

parse

Function parse 

Source
pub fn parse<'a>(tokens: &'a Tokens, cx: Context<'a>) -> Parsed
Expand description

Parses a translation unit.

Always gives back a tree. A file that does not parse produces poisoned nodes where the productions gave up, so that everything after a mistake is still parsed and reported on, and Parsed::failed is what says whether to carry on with it.