Computer Science EngineeringHard

An operator grammar is one in which no production right-hand side contains

  1. A. two adjacent non-terminals
  2. B. a terminal
  3. C. a non-terminal
  4. D. more than two symbols

Correct answer: A. two adjacent non-terminals

Operator-precedence parsing needs operators to separate non-terminals and forbids epsilon productions.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic