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

2nd pass failure on symbol table #1

Open
wcmjunior opened this issue Apr 7, 2016 · 0 comments
Open

2nd pass failure on symbol table #1

wcmjunior opened this issue Apr 7, 2016 · 0 comments
Labels
Milestone

Comments

@wcmjunior
Copy link
Member

There is an error on the compiler second pass. It is caused by the structure of the 2nd pass itself. The 2nd pass listener was developed by extending the ScopeDrivenListener and it is not walking fully based on the provided symbol table, but instead partially on the symbol table that is created during the walk.

Thus, the code must be modified in order to use solely the provided symbol table. It will allow that, for example, class variables declared after a given method can be used successfully inside this method. This is perfectly valid in Java, but is not valid (yet) on our compiler due to the bug described here.

@wcmjunior wcmjunior added the bug label Apr 8, 2016
@wcmjunior wcmjunior added this to the version 0.5 milestone Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant