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

Blocks AST cloning #81

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

AjayBrahmakshatriya
Copy link
Collaborator

This PR merges a big change. Motivated from some of the bugs uncovered from the fuzzer. Following changes are added -

  1. Adds a clone implementation to all AST nodes.
  2. Immediately post extraction, the entire tree is duplicated. This way none of the nodes (except for vars and labels) are never shared, making the tree an actual AST and not AS-DAG.

This change helps improve #54 where gotos were not duplicated.

@AjayBrahmakshatriya AjayBrahmakshatriya merged commit ea71cf5 into BuildIt-lang:master Sep 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant