edited by
418 views
0 votes
0 votes

edited by

1 Answer

Best answer
3 votes
3 votes
S` - > .S, dollar
S - > .Aa, dollar [Because of .S] ---------------------1
A  - > .Ab, a [Because of A at 1, and lookahead symbol will be first ( a, dollar) i.e a] ------ 2
A - > .c, a [Because of A at 1, and lookahead symbol will be first ( a, dollar ) i.e a]
A -> .Ab,b [Because of A at 2, and lookahead symbol will be first ( b, a ) i.e b]
A -> .c, b [Because of A at 2, and lookahead symbol will be first ( b, a ) i.e b]

So we can also write it as

S` -> .S, dollar
S -> .Aa, dollar
A - > .Ab, a/b
A - > .c, a/b

Option c is correct here
selected by

Related questions

0 votes
0 votes
1 answer
3
1 votes
1 votes
1 answer
4
mehul vaidya asked Mar 10, 2018
292 views
ANSWER IS CORRECT BU I HAVE DOUBT IN A - .Ab, a/bI think it must be A - .Ab ,a