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 expressions
  • Intermediate - The most complicated single expression, this can be a high level fraction
  • Frac - A high level fraction, often parsed with a /
  • ScriptFunc - A scripted expression that can be a Func or just a simple expression
  • Func - A function like sin that can contain independent super- and subscripts prior to its argument
  • SimpleScript - A simple expression that has super- and subscripts
  • Simple - A simple expression like a Symbol or Identifier

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