GATEverse
← GATE CSE 1999

Q9

NATMarks unknown

Let synthesized attribute val give the value of the binary number generated by S in the following grammar. For example, on input 101.101, S.val = 5.625. S→L.L∣LS \rightarrow L.L \mid L L→LB∣BL \rightarrow LB \mid B B→0∣1B \rightarrow 0 \mid 1 Write S-attributed values corresponding to each of the productions to find S.val.

Sign in to save attempts.

Loading…