The parsed expression in a JSON format.
Whether the expression needs to be wrapped in parentheses.
The string representation of the parsed expression.
Could be clever and remove unnecessary parentheses, for example:
(A + B) + C
-> A + B + C
serializeParsedExprAST(
{ '+': [{ variable: "A" }, { constant: { type: "number", nodeValue: "10" } }] },
true
)
// "(A + 10)"
Generated using TypeDoc
Serialize a parsed expression into its string representation.