Compiler-Design
December 7, 2023Question 3393 – Communication
December 7, 2023Compiler-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.
Theory Explanation. |
Correct Answer: A