mathlex 0.4.0

Mathematical expression parser for LaTeX and plain text notation, producing a language-agnostic AST
Documentation
{
  "kind": "Binary",
  "value": {
    "left": {
      "kind": "Binary",
      "value": {
        "left": {
          "kind": "Binary",
          "value": {
            "left": {
              "kind": "Variable",
              "value": "x"
            },
            "op": {
              "kind": "Pow"
            },
            "right": {
              "kind": "Integer",
              "value": 2
            }
          }
        },
        "op": {
          "kind": "Add"
        },
        "right": {
          "kind": "Binary",
          "value": {
            "left": {
              "kind": "Integer",
              "value": 2
            },
            "op": {
              "kind": "Mul"
            },
            "right": {
              "kind": "Variable",
              "value": "x"
            }
          }
        }
      }
    },
    "op": {
      "kind": "Add"
    },
    "right": {
      "kind": "Integer",
      "value": 1
    }
  }
}