Computer Sciences > Gate 2016 Set-1 > SDT
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals {S, A} and terminals {a, b}.

S −→ aA { print 1 }
S −→ a { print 2 }
A −→ Sb { print 3 }


Using the above SDTS, the output printed by a bottom-up parser, for the input aab is:
A
1 3 2
B
2 2 3
C
2 3 1
D
Syntax Error

Correct : SDT

Similar Questions

Consider the productions A → PQ and A → XY. Each of the five non-terminals A,P,Q,X, and Y has two attributes: s is a synthesized attribute, and i is an inherite...
#278 MCQ
Consider the productions A → PQ and A → XY. Each of the five non-terminals A,P,Q,X, and Y has two attributes: s is a synthesized attribute, and i is an inherite...
#278 MCQ
Consider the productions A → PQ and A → XY. Each of the five non-terminals A,P,Q,X, and Y has two attributes: s is a synthesized attribute, and i is an inherite...
#278 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......