0 votes 0 votes S -> AS | b A -> SA | a Find First and Follow set for folowing grammar Compiler Design compiler-design parsing + – jatin khachane 1 asked Nov 12, 2018 jatin khachane 1 3.5k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes First (s)=a,b First (A)=a,b Follow (s)=$,a,b Follow (A)=a,b Anup dogrial answered Jan 7, 2020 Anup dogrial comment Share Follow See all 0 reply Please log in or register to add a comment.
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 $. PiratedVirus answered Nov 12, 2018 PiratedVirus comment Share Follow See 1 comment See all 1 1 comment reply jatin khachane 1 commented Nov 12, 2018 reply Follow Share How Follow of A contain $ 0 votes 0 votes Please log in or register to add a comment.