What is operator grammar? Check the following grammar is operator or not. Justify your answer.
E -> EOE
E -> id
O -> * | + | -
Operator Grammar : A grammar in which there is no ε in RHS of any production or no adjacent non terminals is called operator grammar.
Justify Your Ans :
- The given grammar is not operator grammar because right side EOE has adjacent non-terminals.
- Because the given grammar is not fulfill the condition of operator grammar.
Follow Us