3,473 views

2 Answers

0 votes
0 votes
  First Follow
S->AS | b a, b a, b, $
A->SA | a a, b a,b,$

Few observations: 

Follow of Starting symbol always contains $ since, input is followed by $ and 

if Start symbol is present in RHS of any production then follow of that production also contains $. 

Related questions

2 votes
2 votes
2 answers
2
s_dr_13 asked Jan 3, 2022
491 views
if a grammar is CLR(1) with no mergeable states, then it is LALR(1) ? I suppose it is “yes”, am I right?
0 votes
0 votes
1 answer
3
0 votes
0 votes
1 answer
4
Hirak asked Jun 1, 2019
2,089 views
S → aSbS /bSaS / ϵS → aABb A→ c/ ϵ B → d/ ϵWhich of the following is LL1. Explain in details.