Tracking Information
A symbol table is a data structure used by the compiler to store information about identifiers β variables, functions, types, etc.
What Symbol Tables Store
Scope Management
0) β β temp
βββββββββββββββββββ
When entering a block: push new scope
When leaving a block: pop scope
Lookup: search from innermost scope outward