refined parser for partner's test cases: Can now handle empty if/blocks and single statement blocks with no braces.