ICD3 - Scopes and Symbol Tables Flashcards
Each named object will have ANSWER, where the name is defined as a synonym for the object.
a declaration
The technical term for connecting a name with an object is called ANSWER.
binding
The portion of the program where the name is visible is called its ANSWER.
scope
When the structure of the syntax tree is used to determine which object corresponds to a name, this is called ANSWER.
static scoping
A compiler typically keeps track of which names are associated with which objects by using ANSWER.
a symbol table
ANSWER data structures have the property that no operation on the structure will destroy or modify it.
immutable
ANSWER data structures have the property that there are operations on the structure can destroy or modify it.
mutable
Since a compiler may have to look up what object is associated with a name many times, it is typical to use ANSWER to avoid linear search times.
hash tables