Awesome q2a theme
0 votes
21 views

Someone plz solve the doubt for this question

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

Why ans is not 2?

ago in Compiler Design by (635 points) | 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'??

1 Answer

0 votes
why di you think answer should be 2 as I0 on < will produce S-> <.L>   due to which we will take closure of L which will produce L-> .L,S/.S and due to  .S we will take closure of S which will further produce S-> .<L>/.id . Hence total 5 items.
ago by (45 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Jan 2020
  1. shashin

    1163 Points

  2. Vimal Patel

    307 Points

  3. Deepakk Poonia (Dee)

    305 Points

  4. Debapaul

    237 Points

  5. Satbir

    192 Points

  6. SuvasishDutta

    137 Points

  7. Pratyush Priyam Kuan

    118 Points

  8. tp21

    108 Points

  9. DukeThunders

    96 Points

  10. pranay562

    95 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 75.
2,988 questions
1,509 answers
8,936 comments
89,814 users