Discussion of Dangling Else if (x > 0) then if (y > 0) then z = x + y else x = - x This is a real problem languages like C, Java –resolved by saying else binds to innermost if Can we design grammar that allows all programs as before, but only allows parse trees where else binds to innermost if?
{}