GATEverse
← GATE CSE 1998

Q23

NATMarks unknown

Let the attribute ‘valval’ give the value of a binary number generated by SS in the following grammar: S→L.L∣LS \rightarrow L.L \mid L L→LB∣BL \rightarrow LB \mid B B→0∣1B \rightarrow 0 \mid 1 For example, an input 101.101101.101 gives S.val=5.625S.val = 5.625 Construct a syntax directed translation scheme using only synthesized attributes, to determine S.valS.val.

Sign in to save attempts.

Loading…