in Others edited by
5,860 views
0 votes
0 votes

The parsing technique that avoids back tracking is:

  1. Top-down parsing
  2. Recursive-descent parsing
  3. Predicative
  4. Syntax tree
in Others edited by
5.9k views

1 Answer

0 votes
0 votes

 Backtracking : It means, if one derivation of a production fails, the syntax analyzer restarts the process using different rules of same production. This technique may process the input string more than once to determine the right production.

Compiler Design - Top-Down Parser - Tutorialspoint

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.

so option c

Answer:

Related questions