21 views

Someone plz solve the doubt for this question

https://gateoverflow.in/302805/gate2019-43

Why ans is not 2?

ago | 21 views
+1

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.

0

@shashin

thank you.

Can u then plz. tell me, For same question, what is number of items for 'Action'??