COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Compiler should report the presence of ____ in the source program, in translation process.
A
Classes
B
Objects
C
Errors
D
Text
Explanation: 

Detailed explanation-1: -Compiler should report the presence of in the source program, in the translation process. Explanation: Compiler should report the presence of errors in the source program, in translation process.

Detailed explanation-2: -A compiler is a special program that translates a programming languageā€™s source code into machine code, bytecode or another programming language.

Detailed explanation-3: -Explanation: Compiler can only check syntax errors.

Detailed explanation-4: -3) Does the compiler program translate the whole source code in one step? Explanation: The compiler is that program which translates the whole high-level code into the machine code at once.

Detailed explanation-5: -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.