textX / Arpeggio

Parser interpreter based on PEG grammars written in Python http://textx.github.io/Arpeggio/
Other
269 stars 55 forks source link

Implement deepcopy for parsed nodes #36

Open demianw opened 7 years ago

demianw commented 7 years ago

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.

igordejanovic commented 6 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.

igordejanovic commented 6 years ago

Just for the reference, here is the discussion from SO.