Verily, it cannot be analyzed by LL (k) or LALR (k) in their pure forms. The problem is that there are two possible interpretations of else; its ambiguity problem (“else” refers to the closest “if” or does not belong).
, , , "else , ".
" "; LL , , , " ". LR - "shift on else", , "" "" .
, , GLR. , , " ".