40 likes | 264 Views
Gradual Implementation of Symbol Table. CSE310: Compiler Sessional Dr. S. M. Farhad CSE, BUET. Symbol Table. The symbol table stores information about the entire source program It is used by all phases of a compiler. Symbol Table Implementations.
E N D
Gradual Implementation of Symbol Table CSE310: Compiler Sessional Dr. S. M. Farhad CSE, BUET
Symbol Table • The symbol table stores information about the entire source program • It is used by all phases of a compiler
Symbol Table Implementations • Symbol table will be used to answer two questions: • Given a use of a name, to which declaration does it correspond is it undeclared? • Given a declaration of a name, is it multiply declared?
What operations do we need? • Look up a name in the symbol table • Insert a new name into the symbol table with its attributes