340 views

Suppose we have a computer with single register and only three instructions given below:

Consider the following grammar:

 $A \rightarrow id : =E$ $E \rightarrow E+T\mid T$ $T \rightarrow (E)\mid id$

Write a syntax directed translation to generate code using this grammar for the computer described above.