Higher-Education-and-Politics
August 3, 2024Subnetting
August 4, 2024Compiler-Design
Question 5 |
Suppose we have a computer with a single register and only three instructions given below:
LOAD addren ; load register ; from addren STORE addren ; store register ; at addren ADD addren ; add register to ; contents of addren ; and place the result ; in the register
Consider the following grammar:
A → id :=E E → E + T|T T → (E)|id
Write a syntax directed translation to generate code using this grammar for the computer described above.
Theory Explanation. |
Correct Answer: A
Subscribe
Login
0 Comments