0 votes 0 votes The given answer is A) but option A) produces the string "ab" which is not produced by the above grammar so how can the answer be A) ? Compiler Design gateforum-test-series compiler-design + – Harsh181996 asked Feb 5, 2017 Harsh181996 361 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply pkb commented Feb 5, 2017 reply Follow Share Both are generating the ab infect genrating the same language. 1 votes 1 votes Abhishek Bhandari commented Feb 5, 2017 reply Follow Share S-->SaSbS S-->ab is the question, Both Question and Ans Genrate "ab". 0 votes 0 votes Harsh181996 commented Feb 5, 2017 reply Follow Share Ahh , got my mistake :) 0 votes 0 votes Please log in or register to add a comment.