GATE 1991
Consider a grammar with 10 production rules. The augmented grammar adds 1 rule. If the canonical collection of LR(0) items has 14 states, how many states are there in the SLR(1) parsing table?
In syntax-directed definitions, inherited attributes are useful for:
Consider a grammar with start symbol S and production S -> a S b | ab. What is the length of the shortest string generated by this…
Which of the following is a bottom-up parser?
Dead code elimination removes instructions that:
Consider the following C statements: char *str1 = "Hello; /* Statement S1 */ char *str2 = "Hello;"; /* Statement S2 …
Which of the following statements is/are true?
Free account benefits
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.