0 votes 0 votes First(P) = {+, *, t, epsilon, id} AND Follow(P) = {dollar,id} according to me. In that case M[P, DOLLAR] should have P -> QR Compiler Design made-easy-test-series compiler-design parsing ll-parser + – sidsunny asked Jan 26, 2017 edited Mar 5, 2019 by adeebafatima1 sidsunny 374 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes First (P) = First(QR) = First(Q) = + , * , t , id ( epsilon will give chance to R, therefore we will also consider First(R) ) First (R) = id targate2018 answered Jan 26, 2017 selected Jan 26, 2017 by sidsunny targate2018 comment Share Follow See all 2 Comments See all 2 2 Comments reply sidsunny commented Jan 26, 2017 reply Follow Share and epsilon will be in FIRST(P) only if epsilon is both in FIRST (Q) and FIRST(R). Am I right? 0 votes 0 votes targate2018 commented Jan 26, 2017 reply Follow Share Yes, right 0 votes 0 votes Please log in or register to add a comment.