extracting semantic and parse tree construction