1

When I read the book "A Practical approach to compiler construction" the chapter 4 "approaches to syntax analysis" and the section 4.2.3.3 Left Recursion, it says:

"The left recursion has been removed at the cost of an extra non-terminal symbol"

I have no idea why say that, since $A_1$ still contain recursion?

https://i.stack.imgur.com/Bd8Zm.png

D.W.
  • 159,275
  • 20
  • 227
  • 470
symphony
  • 19
  • 2
  • 1
    Is there any chance you could use an image that is cropped to contain just the relevant part of the quote, rather than an image of the entire page? Also can you provide a full reference for the book (both title & authors)? – D.W. Jul 23 '18 at 20:50

1 Answers1

1

That grammar has recursion but not left recursion. Check the definition of left recursion (e.g., https://en.wikipedia.org/wiki/Left_recursion, or consult your favorite textbook on formal languages).

D.W.
  • 159,275
  • 20
  • 227
  • 470