We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 04 Semester: Spring 2014 Compiler Construction CS606 Total Marks: 20 Due Date: 24/07/2014

Question No 1:                                                                                                                       Marks 20

Consider the following grammar productions. Suppose you have an attribute E.type which can be set to either INT or BOOL.  Assume that the type of an expression is set to INT if an error is detected and you have a routine msg() similar to printf() that can be used to print error message.

 

E  à   CONST                               {E.type=??}

          | ID                                      {E.type =getType(ID.name);}

          | E1 +E2                              {E.type=??}

          | E1< E2                              {E.type=??}

          | E1= =E2                            {E.type=??}

          | (E1)                                    {E.type=??}

 

Provide the parse tree for the expression (5 < 2) = = (4 + x).

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2125

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

enjoy everyone

ye parse tree to  ni ha tree ka pocha gaya ha wo kasiy banai ha plz help

yeh 2 Questions hain  A.Brain Maker

Uzair Malik kia ap wo file upload kerain ?

parse tree nhi annoted tree bnana hy

agr kisi ne thek solve kr hi kia hy to solution share  kr do plzzzzzzzz.

There is 1 Question in the assignment...How u guys are giving two solutions???

 Jazib Ramzan  bhai is assignmnet ki VU walo ki solution file upload karo pleaes jaldi

RSS

© 2020   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.