Crate mathemascii
source ·Expand description
Crate for parsing and rendering of AsciiMath.
Structs
- Iterator that parses AsciiMath input and yields
Expression
s. - Binary operator in Ascii math.
- The main AsciiMath expression.
- AsciiMath grouping expression - any number of
Expression
s grouped between two grouping symbols, such as parentheses, brackets, etc. - Unary operator in Ascii math.
- Variable in Ascii math, meaning a symbol that stands on it’s own.
Enums
- Simple AsciiMath expression that can be one of the following:
- Kinds of “variables” in Ascii math.
Traits
- Trait for writing MathML elements. Each method in this trait has a default implementation that does nothing.
Functions
- Parse asciimath content into an abstract syntax tree. The whole input is interpreted as a single math block. The result is a list of expressions.
- Render the abstract syntax tree into a string of mathml.