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 scoped variable via proper compile pass #154

Merged
merged 5 commits into from
Dec 19, 2022
Merged

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented Dec 16, 2022

Scoped-variable is now implemented via a proper compile pass. It is enabled by default. But it is not stable enough, you can toggle it off in the sidebar.

The following visual appearance is added to the editor:

  • function definition
  • (global) variable definition
  • function call site
  • variable use
  • unbound variables

Screenshot:

Screenshot 2022-12-16 at 3 38 33 PM

@lihebi
Copy link
Collaborator Author

lihebi commented Dec 19, 2022

UPDATE: hide annotations by default, and add a "show annotations" setting to toggle it.
Screenshot 2022-12-19 at 10 56 10 AM

@lihebi lihebi merged commit 0ca4e06 into main Dec 19, 2022
@lihebi lihebi deleted the compiler_for_scoped_var branch June 30, 2023 16:31
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