|
| Homework 6Details
- 2.1
- 2.4b
- 2.4c
- 2.4e
- 2.5a
- This problem is too problematic. It doesn't exist.
(Bonus) Prove or disprove that the language generated by the CFG defined as follows is inherently ambiguous.
| S | → | Aa | bB |
| A | → | Ba | Aa | a |
| B | → | bA | bB | b |
(Hint: To prove it is not inherently ambiguous, find another CFG that
describes the same language and show it is not ambiguous.
To prove it is inherently ambiguous, argue that there are certain
strings that will always have two different parse trees, no matter
what grammar is used to generate the language.)
|
|
|