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

Rename bound variables #1295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amorphedstar
Copy link
Collaborator

This fixes #1293

The codegen assumes that each variable only appears with one meaning, and in particular can never be bound in a context where it is already bound. When recursively unrolling functions with node-let, this was no longer true. This PR adds bound-variable renaming as an option as a part of apply-ast-substitution.

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.

Recursive definition failing to compile with inlining enabled
1 participant