Next: Exercise 2.
Up: Quiz1
Previous: Guidelines.
Consider the following grammar G (with terminals a, b and nonterminals S, A)
S |
|
AS | b |
A |
|
SA | a |
Let L be the language generated by G.
Consider the words
w1 = baab,
w2 = abab,
w3 = bbaa.
For i = 1, 2, 3, if wi belongs to L then give a parse
tree for wi with G.
Answer 1
Next: Exercise 2.
Up: Quiz1
Previous: Guidelines.
Marc Moreno Maza
2004-12-02