Skip to main content

parse_expr

Function parse_expr 

Source
pub fn parse_expr(source: &str) -> Result<Chunk, Vec<Diagnostic>>
Expand description

Parses one expression and wraps it as return <expr> so it goes through the same pipeline as a chunk (REPL / eval_expr).