-
Notifications
You must be signed in to change notification settings - Fork 2
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
SymbolTable.py Currclass function #1
Comments
We need to insert the class name in the symbol table so that the constructor return type and variables of type class can be checked. And the functions in vm should be named as classname$functionName so we need access to the class name. |
We need currclass function for function calls of method within class subroutine. |
Arent we keeping track of what file we are reading? That will be the current class? We can add currclass as a parameter in the symbol table instead of being a part of symbol table if need be |
Fine. Will do. |
Why do we need a currclass function? And 'class' will never be an element in values since the type is the class name which will be an identifier.
The text was updated successfully, but these errors were encountered: