Open demianw opened 7 years ago
@demianw Well it took me a while to get to this. Sorry about that. Here is the first implementation of parse tree nodes deep copying with test. It is on branch issue36-deepcopy
. Please test with your use case.
Just for the reference, here is the discussion from SO.
Being able to deep copy nodes will enable implementing strategies requiring parse tree transformations such as syntactic sugar or static analyses of the language. Hence, it would be good to be able to copy nodes.