in Compiler Design edited by
1,554 views
0 votes
0 votes

Top-down parsers are predictive parsers, because :

  1. next tokens are predicted

  2. length of the parse tree is predicted before hand

  3. lowest node in the parse tree is predicted

  4. next lower level of the parse tree is predicted

in Compiler Design edited by
1.6k views

1 Answer

0 votes
0 votes
Top Down parser are of two types => With backtracking and without backtracking. Former isn't predictive parser while later is.

In case of TD predictive parser we guaranteed that the next token selected is correct. (Obviously if done as per rules).

So A is correct.

Related questions