1 votes 1 votes KISHALAY DAS asked Nov 6, 2016 KISHALAY DAS 332 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply mcjoshi commented Nov 9, 2016 reply Follow Share A grammar is both left and right recursive means $A \rightarrow AbA$ (or) $S \rightarrow SaA$ $A \rightarrow bA|a$ ??? 0 votes 0 votes KISHALAY DAS commented Nov 9, 2016 reply Follow Share First one for sure.I guess you can see its ambiguous I think second one too both left and right recursive. 0 votes 0 votes mcjoshi commented Nov 9, 2016 reply Follow Share Well, then Option (1) is false. $S \rightarrow SaA$ $A \rightarrow bA$ Above grammar is both Left and right recursive, but not ambiguous. 0 votes 0 votes KISHALAY DAS commented Nov 10, 2016 reply Follow Share How...first make both S and A terminate. 0 votes 0 votes Please log in or register to add a comment.