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. 03 (Graded)
Semester Fall 2013
Compiler Construction CS606
Total Marks: 20
Due Date: 29/01/2014
Objective:
To learn and understand basic concepts of LR(1) Parser, LL parsing, Shift/ Reduce Conflicts
and Reduce/Reduce conflicts.
Lectures Covered: 23-30
Instructions:
Please read the following instructions carefully before submitting assignment:
You will submit your assignment before or on due date on VU-LMS.
Assignment should be completed by your own efforts it should not be copied from
internet, handouts or books.
You should submit your solution in Word File only via assignment interface at VULMS.
Assignment sent via Email will not be replied and accepted/graded in any case.
If the submitted assignment does not open or file is corrupt, it will not be graded.
For any query about the assignment, contact at cs606@vu.edu.pk
BEST OF LUCK
Question No 1: Marks 20
Consider the following grammar:
S → Sb
S → cS
S → a
(a) Identify all conflicting items, and the types of the conflicts. [10 marks]
(b) Rewrite the grammar in an equivalent form that is suitable for LL parsing and minimizes the
use of stack space. [5 marks]
(c) Rewrite the grammar in an equivalent form that is directly suitable for LR parsing (i.e., does
not result in conflicts) and minimizes the use of stack space. [5 marks]

+ 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: 2646

.

+ 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

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

halooo friends plzzz share ur ideas about this assignment 

Question # 1 at Lecture # 28 at top !

Question # 2 at Lecture # 32 at top !

Question # 3 at Lecture # 32 at middle page !

Please ki to idea solution send karo yar

please anyone upload the solution

kisi ko kuch smj aye to discuss kre..itni tough assignment

Aslamo Alaikum 

Dear VU fellows....!

Please upload solution becasue I dont understand the assignment even a single question so please upload solution .

Plzzzzzzzzzzzzzzzzzzz    Plzzzzzzzzzzzzzzzzzzzzzzz          Plzzzzzzzzzzzzzzzzzz

thanks 

student query about assignment

Dear Sir,, Kindly provide me some examples that how to Rewrite the grammar in an equivalent form that is suitable for LL parsing and LR parsing ?? lectures are not enough to solve the examples..

Instructor's Reply:

Dear Student,

Here are two examples to make you understand the concept.

Example 1:

E -> E '+' T
    -> T
Rewrite the grammar in an equivalent form

E -> T Z
Z -> '+' T
Z -> ε

Example 2:
Before Rewrite
 E -> E + T | T
T -> T * F | F
 F -> ( E ) | Id

After Rewrite

E -> T E`
E’ -> + TE` | 
T -> F T`
T’ -> * F T` | 
F -> ( E ) | id

Aslamo Alaikum

Dear VU Fellows..........!

Anyone for GOD sake help me to solve that assignment please I m much worried.........

Please           Please

          Please          Please

                    Please          Please

Helloooooooooooooo
kahan chaly gy ho sub log help karny waly aj kahn hen
boht pershan hn assignment samj he nai aa rahi koi to guide kar dy
Plzzzzzzzzzzzzzz

yar qasam say question he itnay aountry hay kay samjh he nahe a rahy ! 

and time b kam ha

RSS

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

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

.