Module asciimath_parser::tree
source · Expand description
The module containing all of the structures that defined a parsed representation of asciimath
Expression
- A full expression containing a sequence of intermediate expressionsIntermediate
- The most complicated single expression, this can be a high level fractionFrac
- A high level fraction, often parsed with a/
ScriptFunc
- A scripted expression that can be aFunc
or just a simple expressionFunc
- A function likesin
that can contain independent super- and subscripts prior to its argumentSimpleScript
- A simple expression that has super- and subscriptsSimple
- A simple expression like aSymbol
orIdent
ifier
The exceptions to this hierarchy are Group
and Matrix
that “reset” the hierarchy by
wrapping expressions.
Structs
- A full expression
- A high level fraction
- A full function that has complicated arguments and attached scripts
- A bracketd group that allows inserting complicated expressions in simplex contexts
- A matrix e.g. “[[a, b], [x, y]]”
- An iterator over rows of a matrix
- A binary operator like “root”
- A simple func like “sin”
- A simple expressiong with attached scripts
- A unary operator like “sqrt”
Enums
- An intermediate expression
- scripts attached to some other object
- A scripted object or a scripted function
- A simple element of parsing