The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x

GATE1999-9 [closed]

+2 votes
458 views

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 \rightarrow L.L \mid L$

$L \rightarrow LB \mid B$

$B \rightarrow 0 \mid 1$

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

closed with the note: https://gateoverflow.in//1738/gate1998_23#viewbutton
asked in Compiler Design by Veteran (59.5k points)
closed by | 458 views
+1


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

37,996 questions
45,492 answers
131,517 comments
48,590 users