2 votes 2 votes S --> aA | CB A --> BaA | ϵ B --> bB | Abc | ϵ C --> B What will be first(B)? Compiler Design compiler-design parsing first-and-follow descriptive made-easy-test-series + – Sadique Ul Malik asked Nov 20, 2017 • retagged Jun 21, 2022 by Lakshman Bhaiya Sadique Ul Malik 308 views answer comment Share Follow See 1 comment See all 1 1 comment reply Hira Thakur commented Nov 20, 2017 reply Follow Share first(B)= {a,b,ϵ } 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes S --> aA | CB First(S) ={ a,FIrst(C) }= {a,b,ϵ} A --> BaA | ϵ First(A) = {First(B),ϵ} = {a,b,ϵ} B --> bB | Abc | ϵ First(B) = {b,first(A),ϵ} = {a,b,ϵ} C --> B First(C) = {First(B)} = {a,b,ϵ} Hira Thakur answered Nov 20, 2017 Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.