xFunc icon indicating copy to clipboard operation
xFunc copied to clipboard

[Parser] Reuse expressions in syntax tree

Open sys27 opened this issue 4 years ago • 0 comments

2 + 2 is parsed as

   +
 /   \
2     2

but it can be parsed as

   +
 /   \
 \   /
   2

Because expressions are immutable (#331) it can be applied to all types of expressions, but probably we can use simpler approach, apply it only for numbers and variables.

Related #146.

sys27 avatar Sep 26 '20 13:09 sys27