1.

Which Grammar is it?(a) Right Linear(b) Left Linear(c) None of the mentioned(d) Right & Left LinearThe question was posed to me by my school teacher while I was bunking the class.This is a very interesting question from Right Left Linear Grammar in section Contextfree Grammar and Syntax Analysis of Compiler

Answer»

Right option is (B) Left Linear

For EXPLANATION: In Left-Linear GRAMMARS, all productions have the form: A→Bx or A→ x where x is some string of terminals.



Discussion

No Comment Found

Related InterviewSolutions