- Should be an accurate representation of the users input
- Should be easy to convert to a human friendly representation (text, latex, images, etc)
Node Type | Description | Examples / Purposed Syntax |
---|---|---|
MathExpression | Equivelent of "Program" in Spidermonkey JS AST, container for all other Nodes | |
AssignmentExpression | Expression assigning a value to a variable |
x := 1; y := 3; y += 5; x -= 3 |
FunctionDeclaration | Declares a callable function |
f(x) := x+3 |