COMPILER DESIGN

SYNTAX ANALYSIS

ERROR RECOVERY IN SYNTAX ANALYSIS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In top down parsers the parse tree constructed from ____ [ ]
A
Bottom to top
B
Top to bottom
C
Both A and B
D
None
Explanation: 

Detailed explanation-1: -Recursive descent is a top-down parsing technique that constructs the parse tree from the top and the input is read from left to right. It uses procedures for every terminal and non-terminal entity.

Detailed explanation-2: -In top-down parsing, the parse tree is generated from top to bottom, i.e., from root to leaves & expand till all leaves are generated. It generates the parse tree containing root as the starting symbol of the Grammar. It starts derivation from the start symbol of Grammar & performs leftmost derivation at each step.

There is 1 question to complete.