Function asciimath_rs::parse [−][src]
pub fn parse(content: String) -> Expression
Parses the contents of a string into an AsciiMath expression.
This function first uses a tokenizer to parse the input string into a sequence of tokens. Then it uses those tokens with the TreeParser to create an Expression tree that can then be converted into MathML.
Example:
fn main() { let expression = asciimath_rs::parse("sin(2x) + 3".to_string()); }