Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> Result<Option<SyntaxNode>, ParseError>
Expand description

Parse source as a program (Phase 3/4: list of statements).

Returns the program root node (NODE_ROOT with statement children). For token stream only, use parse_tokens.