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

Variables are marked as defined before initialization #1

Closed
Bigjango13 opened this issue Oct 17, 2023 · 0 comments
Closed

Variables are marked as defined before initialization #1

Bigjango13 opened this issue Oct 17, 2023 · 0 comments
Assignees

Comments

@Bigjango13
Copy link
Owner

When let foo is parsed, foo is added to parser.ast.vars so it can be used in the future, this works for functions (as they can be recursive), but it doesn't for variables. The easiest way to reproduce this is burlap - 'let x=x;' which outputs:

Runtime Error at <cli>:1: no variable called "<cli>::x"! This is a bug in burlap and should have been detected earlier on
@Bigjango13 Bigjango13 self-assigned this Oct 17, 2023
Bigjango13 added a commit that referenced this issue Oct 19, 2023
Bigjango13 added a commit that referenced this issue Oct 19, 2023
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