Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

bottom-up-parsing

GATE CSE & IT · Parsing · 1992-2022

13
PYQs
92%
keyed
0
elite explanations
10
years appeared

Study anchor

Hopcroft-Ullman / Dragon Book

Automata, languages, parsing, syntax-directed translation

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2022 PYQ

Consider the augmented grammar with {+, *, (, ), id} as the set of terminals. S' $$\to$$ S S $$\to$$ S + R | R R $$\to$$ R * P | P P $$\to$$ (S) | id If I 0 is the set of two LR(0)...

mediumbasic explanation
2019 PYQ

Which one of the following kinds of derivation is used by LR parsers?

easyanswer keybasic explanation
2016 PYQ

Consider the following Syntax Directed Translation Scheme $$(SDTS),$$ with non-terminals $$\left\{ {S,A} \right\}$$ and terminals $$\left\{ {A,B} \right\}.$$ $$S \to aA$$ $$\,\,\,\...

mediumanswer key
2015 PYQ

Which one of the following is TRUE at any valid state in shift-reduce parsing?

mediumanswer key
2013 PYQ

What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon and unit-production ( i.e., of type $$A \to \varepsilon $$ and $$A...

mediumanswer key
2008 PYQ

An LALR(1) parser for a grammar G can have shift-reduce (S-R) conflicts if and only if

mediumanswer key
2008 PYQ

Which of the following describes a handle (as applicable to LR-parsing) appropriately?

easyanswer key
2005 PYQ

Consider the grammar $$S \to \left( S \right)\,|\,a$$ Let the number of states in SLR(1), LR(1) and LALR(1) parsers for the grammar be n 1 , n 2 and n 3 respectively. The following...

mediumanswer key
2005 PYQ

Consider the grammar $$E \to E + n\,|\,E \times n\,|\,n$$ For a sentence n + n × n, the handles in the right-sentential form of the reduction are

mediumanswer key
2003 PYQ

Assume that the SLR parser for a grammar G has n 1 states and the LALR parser for G has n 2 states. The relationship between n 1 and n 2 is

easyanswer key
2003 PYQ

In a bottom-up evaluation of a syntax directed definition, inherited attributes can

mediumanswer key
1995 PYQ

A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar. $$\eqalign{ & S \to xxW\,\left\{ {pr{\matho...

mediumanswer key
1992 PYQ

Consider the SLR(1) and LALR (1) parsing tables for a context-free grammar. Which of the following statements is/are true?

mediumanswer key