Junaid Khan Department of Computer Science University of Peshawar Pakistan
Junaid Khan Department of Computer Science University of Peshawar Pakistan
1
Lexical Analyzer
2
Syntax Analyzer
3
Semantic Analyzer
5
Code Optimizer
6
Code Generator
Target Program
In computer science, a symbol table is a data
structure
used by a language translator such as a compiler or
interpreter, where each identifier in a program's
source code is associated with information relating to
its declaration or appearance in the source, such as
its type, scope level and sometimes its location.
1. It stores all declared names and their
attributes
type
value (for constants)
address (for local variables and method arguments)
parameters (for methods)