in Compiler Design retagged by
1,886 views
2 votes
2 votes

in Compiler Design retagged by
by
1.9k views

1 Answer

2 votes
2 votes
S -> Aa/Sa/c

A -> Ab/Sd/e

after substituting the value of S in terms of A

S -> Aa/Sa/c;

A -> Ab/ Aad/e/Aaa/ca;

after removing left recursion

S -> cS'/ AaS';

S' -> aS'/epsilon;

A -> eA'/caA'

A' -> bA'/adA'/aaA'/epsilon
edited by

1 comment

How did you get Aaa and ca after substituting the value of S in terms of A in the second production?
0
0