SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
A compiler needs to collect and use information about the names appearing in the source program. This information is entered into a data structure called a ____
|
Symbol table
|
|
Lexical analysis
|
|
Syntactic analysis
|
|
Records
|
Explanation:
Detailed explanation-1: -A compiler needs to collect and use information about the names appearing in the source program. This information is entered into a data structure called a symbol table.
Detailed explanation-2: -Symbol Table Definition • Symbol tables are data structures that are used by compilers to hold information about source-program constructs.
Detailed explanation-3: -compiler needs to collect information about all the data objects that appear in the source program. The information about data objects is collected by the early phases of the compiler-lexical and syntactic analyzers. The data structure used to record this information is called as Symbol Table.
There is 1 question to complete.