Syntax directed translation schema


#1

Consider the following syntax directed translation schema,with non terminals {S,A} and terminals {a,b}.
S->aA {print 1}
S->a {print 2}
A->Sb {print 3}

Using the above STDS ,the output printed by a bottom up parser for the input “aab” is: