The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+4 votes
351 views

Suppose we have a computer with 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 \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.

asked in Compiler Design by Veteran (59.7k points) | 351 views

Please log in or register to answer this question.

Related questions

0 votes
0 answers
4


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

44,510 questions
49,964 answers
165,809 comments
65,914 users