engineering recuitment GATE CSE 2023-24 Test Series Compiler Design Syntax Analysis First and Follow
Consider the grammar given below:
X → Px
P → RQ | R
Q → y | w | ε
R → z | ε
Let x, y, z, w, and $ be indexed as follows:
|
X |
y |
Z |
w |
$ |
|
1 |
2 |
3 |
4 |
5 |
Compute the FOLLOW set of the non-terminal R and write the index values for the symbols in the FOLLOW set in the ascending order. (For example, if the FOLLOW set is {x, y, z, w, $}, then the answer should be 12345)
Enter numerical value using the virtual keypad. Round off where necessary.