...
Compiler-Design
December 7, 2023
Question 3393 – Communication
December 7, 2023
Compiler-Design
December 7, 2023
Question 3393 – Communication
December 7, 2023

Compiler-Design

Question 31

Let synthesized attribute val give the value of the binary number generated by S in the following grammar. For example, on output 101.101, S.val = 5.625.

   S → LL|L 
   L → LB|B 
   B → 0|1 

Write S-attributed values corresponding to each of the productions to find S.val.

A
Theory Explanation.
Correct Answer: A

Leave a Reply

Your email address will not be published. Required fields are marked *