retagged by
1,355 views
1 votes
1 votes
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?
retagged by

2 Answers

0 votes
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.

Related questions

0 votes
0 votes
1 answer
2
Utsav09 asked Jan 31, 2018
352 views
Consider the grammar given$S\rightarrow AA$$A\rightarrow aA / b$How many entries will be blank in the GOTO table for SR(0) items?
2 votes
2 votes
1 answer
3
Kuldeep Pal asked Nov 5, 2017
7,048 views
Choose the correct answer for following grammarS → Aa | bAc | Bc | bBaA → dB → d(A) It is LL(1), LALR(1), and CLR(1)(B) LR(0), LALR(1), and CLR(1), but not SLR(1)(C...