edited by
1,077 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

91
views
0 answers
0 votes
Ebrahim asked May 5
91 views
Q4. Generate target code for the following source language statements : x = a + b + c * (d-e) 
67
views
0 answers
0 votes
Ebrahim asked May 5
67 views
Q2. Implement the statement a:= -b + c*(d-e) + f * (c*(d-e)) into following Intermediate code representation.  a) Quadrupleb) Triple c) Indirect Triple Solve the abov...
288
views
1 answers
0 votes
Ebrahim asked Jan 31
288 views
6. Generate code for the following C program using any code generation algorithm. [3 Marks] main() { int x, a, b, c, d, e; ...
167
views
1 answers
0 votes
Rohit Chakraborty asked Jan 15
167 views
Please show the procedure for the given question.