Hello
Is LALR(2) able to handle the dangling else case naturally (without any special rules, as with LALR(1))?
Thanks
Hello
Is LALR(2) able to handle the dangling else case naturally (without any special rules, as with LALR(1))?
Thanks
No, the dangling else problem is an ambiguity, so no amount of lookahead helps.