views:

111

answers:

1

Hello

Is LALR(2) able to handle the dangling else case naturally (without any special rules, as with LALR(1))?

Thanks

+4  A: 

No, the dangling else problem is an ambiguity, so no amount of lookahead helps.

Chris Dodd