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”?

The name of the pictureThe name of the pictureThe name of the pictureClash 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







share|cite|improve this question











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














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







share|cite|improve this question











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












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







share|cite|improve this question











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









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









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












  • 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










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).






share|cite|improve this answer





















    Your Answer




    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "419"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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).






    share|cite|improve this answer

























      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).






      share|cite|improve this answer























        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).






        share|cite|improve this answer













        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).







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 23 at 20:51









        D.W.♦

        94.4k11109253




        94.4k11109253






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?