Question 11158 – Engineering-Mathematics
December 3, 2023Question 7685 – UGC-NET DEC-2019 Part-2
December 3, 2023Question 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
1 1 2 3 1
1 1 2 3 3
2 3 1 3 1
2 3 3 2 1
Subscribe
Login
0 Comments