Building Parse Tree