Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement deepcopy for parsed nodes #36

Open
demianw opened this issue Jul 6, 2017 · 2 comments
Open

Implement deepcopy for parsed nodes #36

demianw opened this issue Jul 6, 2017 · 2 comments

Comments

@demianw
Copy link

demianw commented Jul 6, 2017

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
Copy link
Member

@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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants