...
Question 11158 – Engineering-Mathematics
December 3, 2023
Question 7685 – UGC-NET DEC-2019 Part-2
December 3, 2023
Question 11158 – Engineering-Mathematics
December 3, 2023
Question 7685 – UGC-NET DEC-2019 Part-2
December 3, 2023

Question 6004 – Compiler-Design

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” ?

Correct Answer: B

Question 282 Explanation: 

⇒ 23131
SR is bottom up parser.
Note : Instead of Sz they given S2 and what operation will perform they are not mentioned
A
1 1 2 3 1
B
1 1 2 3 3
C
2 3 1 3 1
D
2 3 3 2 1
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!