generates parse tree based on grammar structures within input sentence