in Compiler Design
394 views
0 votes
0 votes

in Compiler Design
394 views

4 Comments

sorry for the error.. 3 is false...it is not left recursive but left factored.

thou second is false for stint but if stmt was misprinted as stint then we do have two parse tree for

 if expr then if expr then stmt else stmt. so ambiguous
0
0

@Deepesh Pai,

Please add question source in title.

0
0
i and ii are true statement, it's an ambiguous grammar, so it wll have S/R conflicts in LR parser.
0
0

Please log in or register to answer this question.