2,886 views

2 Answers

Best answer
1 votes
1 votes

First (S) = a , b                                 Follow (S) = $

First (A) = epsilon                             Follow (A) = a, b

First(B) = epsilon                               Follow(B) = a, b

there are no common terms between first and follow

First (s) intersection Follow(S) = NULL

First (A) intersection Follow(A) = NULL

First (B) intersection Follow(B) = NULL

Therefore ANS = LL(1)

selected by
0 votes
0 votes
is it LL(1)?

Related questions

0 votes
0 votes
2 answers
1
dhruba asked Jun 5, 2023
314 views
0 votes
0 votes
1 answer
3
Kartheek8899 asked Oct 14, 2022
515 views
S - L = RS - RL - * RL - idR - LIs given CFG LR(0) & SLR(1)?
1 votes
1 votes
2 answers
4
Hirak asked Jun 14, 2019
1,295 views
In operator precedence parsing we have the rule that production cannot have two adjacent non-terminals or an epsilon production, so this production, S ab is allowed but ...