The Gateway to Computer Science Excellence
0 votes
Predictive parser and non recursive parser are same or non recursive parser is a type of predictive parser. If sure then answer.
in Compiler Design by | 205 views

1 Answer

0 votes
Best answer

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. This parsing technique recursively parses the input to make a parse tree, which may or may not require back-tracking. But the grammar associated with it (if not left factored) cannot avoid back-tracking. A form of recursive-descent parsing that does not require any back-tracking is known as predictive parsing.

Predictive parser is a recursive descent parser, which has the capability to predict which production is to be used to replace the input string. The predictive parser does not suffer from backtracking.

by Active
selected by
Nice answer but did you notice the tone of the op, warning attached with this question :)
Yes :D :D Such a risk while answering.
If this answer helped you in any way. Please choose it as the best answer :)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,221 questions
59,854 answers
118,095 users