1 votes 1 votes Compiler Design compiler-design parsing first-and-follow descriptive + – learner_geek asked Jul 21, 2017 • retagged Jun 21, 2022 by Lakshman Bhaiya learner_geek 210 views answer comment Share Follow See 1 comment See all 1 1 comment reply joshi_nitish commented Jul 21, 2017 reply Follow Share 1- {b,c,d} 2- {a,c,d} 1 votes 1 votes Please log in or register to add a comment.
Best answer 0 votes 0 votes 1- {b,c,d} 2- {a,c,d} For follow start from beginning RHS and see what is next to it if any terminal write /if non terminal write that non terminal first /if nothing found follow parent learner_geek answered Jul 23, 2017 learner_geek comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes $follow(A)=first(b)\cup first(c)\cup first(d)=(b,c,d)$ $follow(B)=first(B) \cup first(a)=(c,d,a)$ Hira Thakur answered Sep 7, 2022 Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.