Skip to main content

parse

Function parse 

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

Parse a textual expression like "x^3 - 2*x^2 + 5" or "sqrt(b^2 - 4*a*c)" into an Expr. Supports + - * / ^, parentheses, sqrt(...), numbers and identifiers.