MCQOPTIONS
Saved Bookmarks
| 1. |
We have a grammar with not epsilon and unit production (i.e. of type A->ε and A ->a) to parse a string, with n tokens. What is the maximum number of reduces moves that can be taken by a bottom-up parser for this grammar? |
| A. | 2n - 1 |
| B. | 2n |
| C. | n-1 |
| D. | n/2 |
| Answer» B. 2n | |