retagged by
1,990 views
1 votes
1 votes
A shift-reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of the grammar.

S --> x x W [ print “1”]
S --> y [print “2”]
W --> S2 [print “3”],

what is the translation of “x x x x y z z” ?
(A) 1 1 2 3 1

(B) 1 1 2 3 3

(C) 2 3 1 3 1

(D) 2 3 3 2 1
retagged by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
rishu_darkshadow asked Sep 17, 2017
1,272 views
Synthesized attribute can be easily simulated by a(A) LL grammar(B) Ambiguous grammar(C) LR grammar(D) None of the above
1 votes
1 votes
0 answers
2
0 votes
0 votes
1 answer
3
rishu_darkshadow asked Sep 17, 2017
1,431 views
The unlicensed National Information Infrastructure band operates at the _________ frequency(A) 2.4 GHz(B) 5 GHz(C) 33 MHz(D) 5 MHz
2 votes
2 votes
3 answers
4