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

Support some features by rewriting the source AST #38

Open
tchajed opened this issue May 16, 2022 · 0 comments
Open

Support some features by rewriting the source AST #38

tchajed opened this issue May 16, 2022 · 0 comments

Comments

@tchajed
Copy link
Collaborator

tchajed commented May 16, 2022

For control flow and assignments, it would be conceptually clearer if we supported them by rewriting the AST to satisfy some invariant and then translating the result. For example, this would have been the natural implementation of #37 and #25. The main tricky aspect is ensuring source information is preserved, but I believe the ast package is designed to handle this (source information might have to be explicitly set in the newly-generated code to make error locations accurate).

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

No branches or pull requests

1 participant