Main menu

Media Coverage

<div class="small-4 columns">media 1</div>

<div class="small-4 columns">media 2</div>

<div class="small-4 columns">media 3</div>

Reach to Us

syntax directed translation : GATE 1995

by Pritam on 25 Jan 2016

A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar

S --> xxW   {print "1"}

S --> y        {print "2"}

W --> Sz    {print "3" }

S = start state

what is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules?

a) 23131

b) 11233

c) 11231

d) 33211

Answer:  a) 23131