0
44kviews
Eliminate Left recursion in the following grammar (Remove Direct and Indirect recursion)

Eliminate Left recursion in the following grammar (Remove Direct and Indirect recursion)

S->Aa l b $ \ \ \ \ $ A -> Ac | Sd | ɛ

1 Answer
0
3.9kviews

Left Recursion

  • Left Recursion. The production is left-recursive if the leftmost symbol on the right side is the same as the non-terminal on the left side.

  • For example, expr → expr + term. If one were to code this production in a recursive-descent parser, the parser would go …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.