why it said the “The left recursion has been removed at the cost of an extra non-terminal symbol(E1) and a little extra complexity�
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
When I read the book "A Practical approach to compiler construction" the chapter4 "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?
(Since my reputation is less than 10, so I just copy the image url. I will change later after the reputation is full.)
https://i.stack.imgur.com/Bd8Zm.png
automata
migrated from math.stackexchange.com Jul 23 at 19:17
This question came from our site for people studying math at any level and professionals in related fields.
add a comment |Â
up vote
0
down vote
favorite
When I read the book "A Practical approach to compiler construction" the chapter4 "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?
(Since my reputation is less than 10, so I just copy the image url. I will change later after the reputation is full.)
https://i.stack.imgur.com/Bd8Zm.png
automata
migrated from math.stackexchange.com Jul 23 at 19:17
This question came from our site for people studying math at any level and professionals in related fields.
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 at 20:50
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When I read the book "A Practical approach to compiler construction" the chapter4 "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?
(Since my reputation is less than 10, so I just copy the image url. I will change later after the reputation is full.)
https://i.stack.imgur.com/Bd8Zm.png
automata
When I read the book "A Practical approach to compiler construction" the chapter4 "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?
(Since my reputation is less than 10, so I just copy the image url. I will change later after the reputation is full.)
https://i.stack.imgur.com/Bd8Zm.png
automata
asked Jul 23 at 14:11
symphony
11
11
migrated from math.stackexchange.com Jul 23 at 19:17
This question came from our site for people studying math at any level and professionals in related fields.
migrated from math.stackexchange.com Jul 23 at 19:17
This question came from our site for people studying math at any level and professionals in related fields.
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 at 20:50
add a comment |Â
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 at 20:50
1
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 at 20:50
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 at 20:50
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
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).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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).
add a comment |Â
up vote
0
down vote
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).
add a comment |Â
up vote
0
down vote
up vote
0
down vote
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).
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).
answered Jul 23 at 20:51


D.W.♦
94.4k11109253
94.4k11109253
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f95552%2fwhy-it-said-the-the-left-recursion-has-been-removed-at-the-cost-of-an-extra-non%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 at 20:50