in Compiler Design
394 views
0 votes
0 votes

in Compiler Design
394 views

5 Comments

3 is true second is false if it is stint (but true if it stmt and by mistake displayed stint.)  first wil depend on second point.
0
0
How did you solve this?
0
0
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.