Parse tree data structure construction