Minijava

Translate each of these MiniJava statements and expressions into IR trees, but using the Ex, Nx, and Cx constructors as appropriate. In each case, just draw pictures of the trees; an Ex tree will be a Tree Exp, an Nx tree will be a Tree Stm, and a Cx tree will be a Stm with holes labeled true and false into which labels can later be placed.

g.  a+5;

b. b[i+1]=0;

c.  while (a<> a=a+1;

d. amoves a 1 or 0 into some newly defined temporary, and whose right-hand side is the temporary.

e.  a = x+y;

f.   if (a c=b;

 

 

Are you Looking for Quality and Plagiarism-Free Assignment Help? Get Trusted Help From the Most Skilled Writers at Homeworkmaven.com. Hire Your Personal Writer Today and Keep Up Your GPA this Semester.
275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.

12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.

Double line spacing

Your essay will have double spaced text. View our sample essays.

Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.

We Accept
Image 3