Function asciimath_rs::parse [−][src]
pub fn parse<S: AsRef<str>>(content: S) -> Expression
Expand description
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:
let expression = asciimath_rs::parse("sin(2x) + 3".to_string());