...
Question 9594 – Compiler-Design
January 26, 2024
Question 10479 – Compiler-Design
January 26, 2024
Question 9594 – Compiler-Design
January 26, 2024
Question 10479 – Compiler-Design
January 26, 2024

Compiler-Design

Question 42

(a) Construct all the parse trees corresponding to i + j * k for the grammar

      E → E+E
      E → E*E
      E → id  
    (b) In this grammar, what is the precedence of the two operators * and +?
    (c) If only one parse tree is desired for any string in the same language, what
    changes are to be made so that the resulting LALR(1) grammar is non-ambiguous?
A
Theory Explanation is given below.
Correct Answer: A
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!!