Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Stmt, String>
Expand description

Parses a full input string into a Stmt.

Assignment (name = expr) is detected first. Everything else is treated as an expression whose result will be stored in ans.