Assignment No. 02 |
Total Marks: 20
|
|
Objective:
To learn and understand basic concepts of parsing. Instructions:
It should be clear that your assignment will not get any credit (zero marks will be awarded) if:
For any query about the assignment, contact at cs606@vu.edu.pk
|
||
BEST OF LUCK |
||
Question No 1: Marks 10
Consider the following grammar;
S ―> XaYb X ―> bXc | b Y ―> dYa | d
Find the first sets for each non-terminal of the given grammar.
Question No 2: Marks 10
Consider the following grammar and construct the corresponding parse tree for string “aabbabab”.
S ―> aSSb | bSSa | ε
|