You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently two entities that track the scope blocks. The
ScopeStack tracks scope blocks explicitly
2.The LoopSwitchStack tracks scope blocks implicitly (each loop or switch is associated with a scope block)
These two entities should be combined into a single class that
A. Tracks scopes for use by variables
B. Tracks the types of scope (if the scope is a function definition or switch or .......)
N.B. It might make sense to add this functionality to the already existing symbol table && symbol table builder
The text was updated successfully, but these errors were encountered:
The body of a loop does not necessarily have to be a scope block.. It could be a simple statement.
Maybe statement semantics are needed. Or maybe we could have different grammar namings for loop body statements
There are currently two entities that track the scope blocks. The
ScopeStack
tracks scope blocks explicitly2.The
LoopSwitchStack
tracks scope blocks implicitly (each loop or switch is associated with a scope block)These two entities should be combined into a single class that
A. Tracks scopes for use by variables
B. Tracks the types of scope (if the scope is a function definition or switch or .......)
N.B. It might make sense to add this functionality to the already existing symbol table && symbol table builder
The text was updated successfully, but these errors were encountered: