We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Instructions

Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

 

o        Assignment is submitted after due date.

o        Submitted assignment does not open or file is corrupt.

o        Assignment is copied (From internet/ to from students).

 

Software (s) Used to develop Assignment

-          MS Word

-          MS Paint

 

Assignment Submission Instructions

Microsoft Word file is required to submit on LMS.

 

Assignment

Marks 20

Question:

 

S ® A S | y S | e

A ® B | C w | v B

B ®  x C

C ® z

 

The symbols S, A, B and C are non-terminals with S as the start symbol while v, w, x, y, z are terminal symbols.

 

Use the context-free grammar given above to answer the following questions.

 

 

 

a)      Give the FOLLOW and FIRST sets for each non-terminal symbol in above grammar

b)     Construct the parsing table for a non-recursive predictive parser for above grammar.

 

 

 

 

Deadline:

Your assignment must be uploaded on or before the due date. We shall not accept your solution through email after the due date.

 kindly share solution


+ 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)


Views: 373

Replies to This Discussion

Fist Sets:

S = {v, x, y, z, ε}

A = {v, x, z}

B = {x}

C = {z}

 

Follow Sets:

S = {$}

A = {v, x, y, z, $}

B = {v, x, y, z, $}

C = {w, v, x, y, z, $}

RSS

Latest Activity

+M.Tariq Malik liked Miss. Churhail's discussion cs101 assignmnt solution
11 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS101 Assignment 01 Fall 2020 Solution / Discussion in the group CS101 Introduction to Computing
12 minutes ago
Profile IconBS MATH and Ata Ur Rehman joined +M.Tariq Malik's group
16 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MCD401 Assignment 01 Fall 2020 Solution / Discussion in the group MCD401 Camera basics, principles and practices
18 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS702 Advanced Algorithms Analysis and Design Assignment 01 Fall 2020 Solution / Discussion in the group CS702 Advanced Algorithms Analysis and Design
24 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion CS702 Advanced Algorithms Analysis and Design Assignment 01 Fall 2020 Solution / Discussion
24 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
24 minutes ago
+M.Tariq Malik added a discussion to the group CS702 Advanced Algorithms Analysis and Design
25 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH302 Business Mathematics & Statistics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH302 Business Mathematics & Statistics
28 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ENG201 Online Quiz No 01 Fall 2020 Solution Discussion Last Date: 27-11-2020 in the group ENG201 Business and Technical English Writing
31 minutes ago
Fatima replied to +M.Tariq Malik's discussion ECO401 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group ECO401 Economics
31 minutes ago
Profile IconFatima, Eiman Kanwar and ■ T̲h̲e̲ ̲J̲o̲k̲e̲r̲ ■ joined +M.Tariq Malik's group
31 minutes ago

Looking For Something? Search Here

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

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

.