The Gateway to Computer Science Excellence
+1 vote
130 views
Consider the grammar given
S->AA
A->aA / b
How many entries will be blank in the GOTO table for SR(0) items?
What is the meaning of SR(0) items?
in Compiler Design by Active (3.1k points) | 130 views
+1
Is it lr0 table

And is ans 10?
0
@skyby I got the same and VG gave correct ans as 10 too.

2 Answers

0 votes
LR(0) table. what is the answer is it 15?
by Active (1.2k points)
0
i got only 10
0 votes

Grammar mentioned below:

S-> AA

A->aA/b

-------------------------------------

LR(0) items works for,[LR(0) and SLR(1)] parsers have identical GOTO part.

STATES GOTO
0 3 1
1 -- --
2 -- --
3 2 --
4 -- --
5 -- --
6 4 --

Blank entries arel 10 in GOTO.

by Active (1.7k points)

Related questions

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
50,737 questions
57,406 answers
198,629 comments
105,468 users