Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> MathExpr
Expand description

Parse a LaTeX math string into a MathExpr tree.

The input must not include the surrounding $ delimiters.

Any unrecognised constructs are wrapped in MathExpr::Error nodes rather than causing a panic.