Envision icon indicating copy to clipboard operation
Envision copied to clipboard

Make expressions persistent across edits

Open dimitar-asenov opened this issue 10 years ago • 0 comments

At the moment, when an expression is edited, its nodes are recreated after every parse. In most cases the new expressions is only minimally different than the old one, and it is desirable to keep the existing nodes, instead of creating new ones. This will help with associating data with expression nodes (i.e. comments).

One approach might be to create the tree corresponding to the new expression and then scan for similarities and only merge the differences.

dimitar-asenov avatar Jan 26 '15 14:01 dimitar-asenov