Skip to main content

parse

Function parse 

Source
pub fn parse(s: LocatedSpan<&'_ str, String>) -> ParseResult
Expand description

Parse source code and return a ParseResult containing the AST and any syntax errors

This function collects syntax errors instead of panicking, allowing the caller to handle errors appropriately (e.g., display all errors, continue with partial AST)