COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The followings are the goals of syntax analyzer EXCEPT
A
to construct hierarchical structures
B
to detect syntax errors
C
to ignore comment
D
to produce a parse tree
Explanation: 

Detailed explanation-1: -The error handler in a parser has goals that are simple to state but chal-lenging to realize: Report the presence of errors clearly and accurately. Recover from each error quickly enough to detect subsequent errors. Add minimal overhead to the processing of correct programs.

Detailed explanation-2: -Syntax Analyser takes Groups Tokens of source Program into Grammatical Production. Explanation: It Groups Tokens of source Program into Grammatical Production.

There is 1 question to complete.