edited by
1,002 views
2 votes
2 votes

Check whether this grammar is LL(1) or not?

edited by

3 Answers

0 votes
0 votes
This grammar is not LL(1) as first of both non-terminals A and B are same
0 votes
0 votes
The above Grammar is LL(1) only perform intersection of first(AaAb) and first(BbBa). It will result in phi ie a intersection b phi.. hence Grammar is LL(1)

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
3
Ebrahim asked Jan 12
167 views
Q1. For the following grammar N - AB | BA A - a | CAC B - b | CBC C - a | b Find the FIRST and FOLLOW
0 votes
0 votes
0 answers
4
Ebrahim asked Jan 11
103 views
Find the FIRST and FOLLOW of the grammar to check whether it is LL (1) parser or not. N → AB | BA A → a | CAC B → b | CBC C → a | b