Main Block (B0)
Scope Rules
Block 1 (B1)
Block 2 (B2)
Ent
rance of B2
:
•
Push
a
pointer
to
the ST-stack
top onto AT-stack
Exit
from B2
:
•
The top of B1 Info becomes the ST-stack top
•
Remove the B2 pointer from the
AT-stack
top
Search
in ST:
•
from the top towards the bottom
ST-stack:
B2
B1
B0
Symbol Table=
Auxiliary
Table =
B
1
I
nfo
Top
B2 I
nfo
Top
B
0
I
nfo
Top
AT-stack:
Search
2
6/35