Someone plz solve the doubt for this question
Why ans is not 2?
Why would it be 2 ?
Standard definition of GOTO(I, X) for LR(0) (Aho-Ullman) is:
Based on your reasoning, how many entries should the GOTO in this example have ?
Question is clearly asking what is the return (output) of the standard GOTO function.
Question is NOT asking you about the goto/action entries of hte LR(0) parse table.
If you are familiar with the standard texts - you would recognize the GOTO (I, X) syntax.
Can u then plz. tell me, For same question, what is number of items for 'Action'??