COMPILER DESIGN

SEMANTIC ANALYSIS

SYMBOL TABLES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Symbol table is created by
A
Lexical analyzer
B
Syntax analyzer
C
Both lexical and syntax analyzer
D
Neither lexical nor syntax analyzer
Explanation: 

Detailed explanation-1: -Symbol table is accessed only during lexical analysis and syntax analysis.

Detailed explanation-2: -In computer science, a symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier (or symbol), constant, procedure and function in a program’s source code is associated with information relating to its declaration or appearance in the source.

Detailed explanation-3: -Nearly all compilers separate the task of analyzing syntax into two distinct parts: The lexical analyzer deals with small-scale language constructs, such as names and numeric literals. The syntax analyzer deals with large-scale constructs, such as expressions, state-ments, and program units.

There is 1 question to complete.