Computer Science EngineeringHard
An operator grammar is one in which no production right-hand side contains
- A. two adjacent non-terminals
- B. a terminal
- C. a non-terminal
- 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.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- An LL(1) grammar has 4 non-terminals and 5 terminals. The predictive parsing table (with the end marker as an extra column) has how many…
- Live variable analysis is a data-flow problem of which type?
- Available expressions analysis is a data-flow problem of which type?
- Moving a computation whose value does not change inside a loop to before the loop is called
- A language accepted by some Turing machine (which may loop on strings outside the language) is called
- Which problem was the first to be proved NP-complete (Cook-Levin theorem)?